Commit Graph

7777 Commits

Author SHA1 Message Date
Tobrun
bdff43ba95 [android] #3276 - hide gl markers 2016-05-20 12:00:03 +02:00
Tobrun
a8352dadde [android] #3276 - remove annotations was not calling removeMarkerView 2016-05-20 12:00:03 +02:00
Tobrun
b32c44ce73 [android] #3276 - remove Marker View implementation 2016-05-20 12:00:02 +02:00
Tobrun
d5c63e6c82 [android] #3276 - Marker view becomes selected when clicked 2016-05-20 12:00:02 +02:00
Tobrun
69ae499a88 [android] #3276 - View Marker click listener integration 2016-05-20 12:00:02 +02:00
Tobrun
d8dfc921b4 [android] #3276 - fix unit tests on MapboxMapTest related to Marker/BaseMarker 2016-05-20 12:00:02 +02:00
Tobrun
20e7b140b7 [android] #3276 - make view marker only visible after first x,y update 2016-05-20 12:00:02 +02:00
Tobrun
b7d47d4c3f [android] #3276 - using a pool to do view reuse 2016-05-20 12:00:02 +02:00
Tobrun
c53533270b [android] #3276 - introduced rate limited discovery for view markers 2016-05-20 12:00:02 +02:00
Tobrun
16a2765adc [android] #3276 - android view annotations adapter approach 2016-05-20 12:00:01 +02:00
Tobrun
1d912a409a [android] #3276 - add event listener on REGION_IS_CHANGING to determine the annotations in bounds of the viewport. 2016-05-20 12:00:01 +02:00
Tobrun
028ef7a323 [android] #3276 - WIP Android View Annotations, showing an Android SDK view on the screen 2016-05-20 12:00:01 +02:00
Brad Leege
ef257c257d [android] #5068 - Switching to Mapbox Locale Constant 2016-05-18 18:58:13 -07:00
John Firebaugh
5864c8fc4c [core] Include geometry in queryRenderedFeatures results 2016-05-18 17:29:16 -07:00
John Firebaugh
1b1df9e354 [core] Add classifyRings 2016-05-18 17:29:16 -07:00
frederoni
a220efcae6 [ios] Allow annotation views to be flattened (#5067)
* [ios] wip flatten annotation view

* [ios] wip flatten annotation view

* [ios] naming conventions

* [ios] removed unused property
2016-05-18 17:03:08 -07:00
Tobrun
5fe43e43f2 [android] - using deprecate annotation for access token javadoc 2016-05-18 14:45:04 -07:00
frederoni
e8ea7483a7 [ios] Added centerOffset to MGLAnnotationView (#5062)
* [ios] Added centerOffset to MGLAnnotationView

* [ios] Reposition immediately after changing the centerOffset

closes #5059
2016-05-18 09:47:54 -07:00
Konstantin Käfer
8ee222c45e [core] allow creating optional requests
Introduces "optional" requests. These should be fulfilled by the FileSource only there's a low-cost/easy way to obtain the data (e.g. from a local cache). If the data for an optional request cannot be found, it *must* return a Response object with a NotFound error.

Traditional "required" requests still work the same way, with one change: If you set any prior* field in the Resource (i.e. priorModified, priorEtag, or priorExpires), the DefaultFileSource assumes that you already have the cache value and will not consult the cache before performing the request. If a prior cache lookup didn't turn up any data, and you therefore don't have an Etag or Modified value, you can still skip the cache by setting priorExpires. This will of course always result in a non-conditional HTTP request.
2016-05-18 12:40:22 +02:00
Konstantin Käfer
c5fc7f1980 [core] use rapidjson's dtoa implementation to stringify floating point numbers 2016-05-18 12:26:51 +02:00
Konstantin Käfer
002393bdea [core] remove MockView and View dependency in Transform 2016-05-18 12:07:21 +02:00
Tobrun
1d84a8964e [android] #4942 - using Android SDK Compass example 2016-05-18 12:02:04 +02:00
Tobrun
73bf8b6ef6 [android] #4942 - removes jumpiness from compass updates, removes old way of rotating via canvas rotation, streamlines updates through setCompass 2016-05-18 12:02:04 +02:00
Cameron Mace
cdda083a6f [android] Animate MylocationView direction
Fixes #4942
2016-05-18 12:02:03 +02:00
Brad Leege
56979500d8 [android] #5060 - Adding Reset functionality to menu 2016-05-17 18:12:30 -07:00
Brad Leege
7390ec833f [android] #5060 - Restoring rotation support for markers 2016-05-17 18:00:01 -07:00
Brad Leege
dd5af9e901 [android] #5060 - Initial setup of PressForMarkerActivity 2016-05-17 17:51:00 -07:00
John Firebaugh
d399de01b8 [tests] Update test-suite 2016-05-17 13:20:25 -07:00
John Firebaugh
e66f9b2830 [core] Simplify parameters 2016-05-17 13:20:25 -07:00
John Firebaugh
3173b46418 [core] Less auto 2016-05-17 13:20:25 -07:00
John Firebaugh
3c49fdc99d [core] Feature IDs are always integers 2016-05-17 13:20:25 -07:00
John Firebaugh
b7d395fcf6 [core] Simplify and fix query logic across the antimeridian 2016-05-17 13:20:25 -07:00
John Firebaugh
7f6944f617 [core] Fix properties of GeoJSON layers in queryRenderedFeatures 2016-05-17 13:20:25 -07:00
John Firebaugh
fbb074a089 [core] Eliminate temporary vector in Style::queryRenderedFeatures 2016-05-17 13:20:25 -07:00
John Firebaugh
db74459990 [core] Use mapbox::geometry::envelope in Source::queryRenderedFeatures 2016-05-17 13:20:25 -07:00
John Firebaugh
7e5d0ff49e [core] Rewrite TileCoordinate in terms of geometry.hpp point 2016-05-17 13:20:25 -07:00
John Firebaugh
3e21e3887a [core] Introduce StyleQueryParameters; push coordinate calculations into Source 2016-05-17 13:20:25 -07:00
Brad Leege
0c9c524912 [android] #5045 - Adding Async Location Permissions Approval Check 2016-05-17 12:03:59 -07:00
Jason Wray
22447373ae [ios] Make MGLCoordinateInCoordinateBounds() public (#5053)
Bounds should always be in NE, SW order — any other coordinate order (e.g., NW, SE) will give false results.
2016-05-17 11:02:22 -04:00
Brad Leege
4434c0438a [android] #5049 - Updating LOST To Version 1.1.0 2016-05-16 17:55:05 -07:00
Brad Leege
047263d40c [android] #5043 - Updating Support Library 2016-05-15 17:33:46 -07:00
Minh Nguyễn
54381d20a0 [ios] Updated changelog for #4801 2016-05-15 11:07:29 -07:00
Brad Leege
635993b4b6 [android] #5004 - Introducing MapboxAccountManager 2016-05-15 10:25:43 -05:00
Jason Wray
0d5d2a923b [ios] Improve telemetry server URL validation (#5022)
- Validate that test server URL actually has a reasonable value.
- Refactor `baseURL` and `testServerURL` to use NSURL.
2016-05-13 21:46:13 -04:00
Jesse Bounds
1ee14915f8 [ios] Add method documentation for view based annotations. 2016-05-13 15:53:04 -07:00
Jesse Bounds
fb759e8475 [ios] Refactor of annotation view updates
This change eliminates the call to the problematic
`annotationTagsInRect:` by using the annotation views themselves
and the map view to check if a view is visible or not.
2016-05-13 15:52:53 -07:00
Jesse Bounds
39669243b7 [ios] Introduce MGLAnnotationView and support for view annotations
Add an UIView subclass that can be used as the base class for all
client provided UIViews for annotations.

Teach MGLMapView to be able to display annotation views over the map if provided by the client delegate. For now, if the delegate provides a UIView then it will be used. If not, the map view will fall back to the old strategy of using GL annotations with an image provided by the delegate or a default image if not.
The map keeps a reuse queue and will store annotation views that are panned
offscreen in the queue if the application developer supplied a reuse queue identifer. The views in the queue are reused when more annotation
views are required. This view reuse provides a performance gain when many
annotations are shown and most of them are offscreen.

iosapp now implements the new delegate method to supply
a native view.

Add a playground to the workspace to facilitate experimentation
with new features. A playground is capable of importing frameworks if it
exists in the same workspace that builds the imported framework. The
initial playground demonstrates annotation views.

This also fixes a crash due to nullptr in annotations array If the `annotations` method is called while the user dot's callout view was showing, the userdot annotation is represented as null in the annotation context map. This
caused a crash when the null pointer was attempted to be converted
into an NSArray via C array. This protects against this bug by filtering out such a null annotation.
2016-05-13 15:51:40 -07:00
Tobrun
a6ca18f23c [android] - move OnMapReady callback for offline bug 2016-05-13 19:23:24 +02:00
Brad Leege
a3ff4d132c [android] #5014 - Updating 4.0.1 Changelog 2016-05-13 11:08:31 -05:00
John Firebaugh
8ec0b70722 [core] Use mapbox::geometry::box in queryRenderedFeatures 2016-05-13 09:01:32 -07:00