| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
So npm won't clobber binding.gyp, refs
https://github.com/npm/npm/issues/10243
|
|
|
|
|
|
|
|
|
|
| |
Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles.
Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs.
Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles.
/ref #1462
|
|
|
|
| |
Fixes #2239
|
|
|
|
| |
ref #2740
|
|
|
|
|
|
| |
As well as default_styles.cpp
Fixes #2739
Fixes #2740
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Useful in testing metrics and background location. Default is still
`whenInUse`, user must switch in `Settings.app`.
|
|
|
|
| |
We technically don’t need to, but the demo app should practice good hygiene since we expect developers to copy from it.
|
|
|
|
|
|
|
|
| |
Previously in #2265 we would ask for location permission at app startup if `!settings->showsUserLocation`. #2193 0a172a21fdc2a87473560fd7d45f4d495d95de91 changed the way we used `NSUserDefaults` and mostly removed the `settings` object, which broke #2265.
Rather than fix our pestering location permissions ask at startup, this commit now only asks for location permissions when the user hits the locate-me button.
Once a user grants permission, the user dot appears because a `userTrackingMode` is set, `showsUserLocation` is permanently set to `YES` in `NSUserDefaults` and is restored at launch.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.
Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.
Support customizable timing functions on iOS.
iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.
Fixes #1643, fixes #1834. Ref #1581.
|
|
|
|
| |
Fixes #1930
|
| |
|
|
|
|
|
|
| |
Drag two fingers upward to tilt the map.
Implements #2116
|
| |
|
|
|
|
|
|
| |
- Mapbox Streets -> Streets
- style version from string to integer
- 7 -> 8
|
| |
|
| |
|
|
|
|
|
|
| |
Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed.
Fixes #1605.
|
|
|
|
| |
[skip ci]
|
|
|
|
|
| |
This server should not used in actual production code anyways.
Fixes #1937.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
Made `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]` unavailable, with a message explaining what to do instead. Removed a commented-out call to that method. Only the environment for an access token if one hasn’t already been set in Info.plist.
|
|\ \
| | |
| | | |
Manage Metrics TEST URL Via Info.plist
|
| | |
| | |
| | |
| | | |
Info.plist
|
|/ /
| |
| |
| | |
Replaced haphazard usage of pragmas and `(void)` expressions with the `__unused` keyword.
|
|/
|
|
| |
`-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
|
|
|
|
| |
signal opt out in MBXAppDelegate.
|
|
|
|
| |
functionality
|
|
|
|
| |
The new keys fit the standard naming convention for Info.plist keys and more clearly communicate how they’re to be used.
|
|
|
|
| |
AccessToken
|
|\ |
|
| |
| |
| |
| | |
this will make it easier to add more targets to iOS builds in the future. It'll also help by having Xcode files named after the platform they're for, so it's easier to distinguish windows
|
| |
| |
| |
| | |
Find the managing view controller by traversing the responder chain.
|
| |
| |
| |
| | |
number to be different from build version.
|
| |
| |
| |
| | |
singleton code into MGLAccountManager.h and .m
|
|/
|
|
| |
AppDelegate and exposing MGLMapView.initWithFrame to support it
|
| |
|
| |
|
|
|
|
|
|
|
| |
Mapbox Streets has stock naming again; reverting. Easier
to ensure we name properly than build in logic.
This reverts commit 0b35a887085cebc4dac99aac6e870504ae24b8e5.
|
| |
|
|\
| |
| | |
Add simple tracking mode button to demo app
|
| | |
|