| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
These categories need to be loaded explicitly so that they’re linked into the application binary. In the dynamic framework, they’re loaded inside the InitializeMapbox() framework initializer; for static frameworks, we recommend setting the -ObjC flag. Fabric uses the static framework without setting the -ObjC flag, so these redundant calls are needed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The addLocationListener method didn't check if the LocationListener was
already in the list.
From MapView, if we call setMyLocationEnabled(true), it adds a
LocationListener and onResume adds the same LocationListener again, but
is just removed by onPause.
So LocationListener is added twice but removed just once, so
LocationServices singleton keeps an instance of the the LocationListener
that is never released.
|
| |
|
|
|
|
|
|
|
|
| |
Creating a v8::Function with
Nan::GetFunction(Nan::New<v8::FunctionTemplate>) can leak, use
Nan::New<v8::Function> instead.
https://code.google.com/p/chromium/issues/detail?id=272579
|
|
|
| |
Show how to point a podspec at an officially tagged pre-release.
|
|
|
|
| |
There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
|
| |
|
| |
|
|
|
|
| |
[android] #3758 - add VisibleRegion + unit tests, removed boundingbox, cleanup jni, cleanup test app, renamed CoordinateSpan to LatLng.
|
|
|
|
| |
Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime.
|
|
|
|
| |
Turn the Shows User Location inspectable into a no-op when running in the designables agent. Otherwise, we complain that the agent lacks Location Services permissions.
|
|
|
|
|
|
| |
CameraUpdateType, introduced caching system for invalidating CameraPosition, general cleanup, readded getLatLng in MapView, ..
[android] #3752 - correctly invalidating cameraposition
|
|
|
|
|
|
|
| |
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
|
|
|
|
| |
InfoWindowAdapter is supplied by end developer.
|
|
|
|
|
|
|
|
|
|
| |
builder pattern + refactoring.
[android] #3754 - Working version using the underlying VisibleCoorindateBounds
[android] #3754 - refactor Camera api inside maps package, correctly use factory pattern, LatLngBounds hooks into camera API
[android] #3754 - cleanup old API
|
|
|
|
| |
fragment implementation
|
|
|
|
| |
Renamed -showAnnotations:withEdgeInsets:animated: to -showAnnotations:edgePadding:animated: for consistency with other methods. Reworded documentation comments to avoid hard-coding too many specifics that are prone to getting outdated.
|
|
|
|
| |
Keeps sensible defaults already in place, but allows callers to override.
|
|
|
|
| |
dependency. Cleanup obsolete methods MapboxMap/MapView, Renaming convention Google Maps SDK, Update tests, Some minor fixes in state management
|
|
|
|
| |
[android] #3753 - removed old zoom methods from MapView
|
|
|
|
|
|
| |
[android] #3760 - added missing methods for UiSettings, updated tests and test app to reflect this change
[android] #3760 - typo fix
|
| |
|
|
|
| |
Also copied some further setup steps from the IB page on the project wiki.
|
|
|
|
| |
Restored (but deprecated) a method removed in #3100 to avoid a major version bump.
|
|
|
|
| |
Ported MGLMapDebugMaskOptions from the OS X SDK. Deprecated debugActive and -cycleDebugOptions.
|
|
|
|
|
|
| |
Avoid resetting user tracking state when going from location or course tracking mode to heading tracking mode.
Fixes #3710.
|
|
|
|
|
|
|
|
| |
adds:
setMaximumZoomLevel
setMinimumZoomLevel
and makes `maximumZoomLevel` and `minimumZoomLevel` not readonly
|
|
|
|
|
|
|
|
| |
adds:
minimumZoomLevel
setMinimumZoomLevel
maximumZoomLevel
setMaximumZoomLevel
|
|
|
|
|
|
|
|
| |
adds:
map.getMminZoom();
map.setMminZoom(double);
map.getMaxZoom();
map.setMaxZoom(double);
|
| |
|
|\ |
|
| | |
|
| |
| |
| | |
Fixes #3725.
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This just removes some whitespace that made the implementation of
`pushTurnstileEvent` in `MGLMapboxEvents` look a little strange.
The indentation was right below an early return conditional
(with no braces) so it felt like the right thing to do (for
readability) to clean it up. Choosing and enforcing a consistent style
for conditionals with one line might be a good idea, too, but this
small change does not go there.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
|
|
|
|
|
|
| |
Entering user tracking mode at launch now zooms in and shows the user dot or user puck. The user dot’s heading indicator now points in the correct direction during the animation to the initial location. Course changes are reflected immediately even in the absence of location changes.
Fixes #1145.
|
|
|
|
|
|
| |
Broke out -locationManager:didUpdateLocations:animated: into multiple self-contained methods, simplifying the logic considerably.
Eliminated a jump after device rotation in non-centered tracking mode.
|
|
|
|
| |
When a targetCoordinate is specified in course tracking mode, the map automatically resizes the viewport to show both the user puck and the target, one at the top and the other at the bottom. The user puck now rotates its arrow in the course direction, no longer assuming that the viewport is facing the same way as the course.
|
|
|
|
| |
Also fixed top- and bottom-aligned user dot center points to account for the content inset’s offset within the map view bounds.
|
|
|
|
|
|
|
|
| |
Account for the user dot’s alignment when flying to the initial user location. Previously, during incremental location updates, we relied on a hack in which the edge insets resulted in a 0×0 viewport, forcing the center upward or downward. But flyTo() relies on the viewport’s size to control the trajectory. So instead, all location updates now use a correctly-sized viewport centered on the offset user dot.
Pushed the user dot farther away from the view edges.
Programmatic rotation and compass rotation are now centered on the user dot even if it’s aligned at the top or bottom. Previously, pressing the compass would trigger a rotation centered on the center of the view.
|
|
|
|
|
|
|
|
|
|
| |
Setting the user tracking mode without animation now works. Previously, it kept the user dot from ever updating.
Just as a zoom gesture no longer kicks the user out of user tracking mode, programmatically zooming shouldn’t either.
Setting a camera with an invalid center coordinate no longer attempts to change the center coordinate but still changes any other valid properties.
Made animation to new user dot vertical alignment optional.
|