| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Expose style class API publicly
|
| |
| |
| |
| | |
Also added some convenience methods to match the underlying C++ API.
|
|\ \
| | |
| | | |
Accept nil access token
|
| |/ |
|
|\ \
| |/
|/| |
LocationManager Defaults
|
|/ |
|
|\
| |
| | |
Smooth edges of user location annotation icon's shadow
|
| | |
|
| | |
|
|\ \
| | |
| | | |
iOS projects require -ObjC in OTHER_LDFLAGS
|
|/ /
| |
| | |
#1184 added `-[NSProcessInfo(MGLAdditions) mgl_isInterfaceBuilderDesignablesAgent]`, which only gets pulled in if you add `-ObjC` to `OTHER_LDFLAGS`.
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Style API cleanup, designables, inspectables
|
| |
| |
| |
| | |
Added inspectables for toggling zooming, panning, rotating, and showing the user location for parity with `MKMapView`.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Ran this through `./ios/docs/install_docs.sh` to double-check things.
* Less-specific initializers above more-specific per Apple convention.
* Shores up `accessToken` docs as property, not a method.
* Edited comments for consistency and/or to keep them out of the docs.
|
| |
| |
| |
| |
| |
| | |
Declared these IB-specific inspectables in a separate category that developers are not expected to import. Currently these inspectables are order-dependent due to #1181.
Ref #929
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When an access token is set in the Attributes inspector (or as a user-defined runtime attribute), we draw some lovely Mapbox branding so the view shows up. (Manipulating invisible rectangles is a frustrating exercise, I’m told.) In the absence of an access token, the view displays a helpful message with directions for obtaining and setting the access token.
Along the way, completely opt out of `MGLMapboxEvents` when targeting Interface Builder, because touching Core Location throws an exception in that environment and it doesn’t make sense to record any metrics when designing on the Interface Builder canvas. Also, don’t start `mbgl::Map` at all (and don’t update it) because none of the runtime drawing code should ever be run in the designable. Normally these chunks of code would be excluded in IB using the TARGET_INTERFACE_BUILDER preprocessor macro. However, Mapbox GL is being packaged as a static library, so the macro is only evaluated when the library is prebuilt, even if the library eventually makes its way into the CocoaPods-generated framework. Instead, we detect that we’re being run by the IBDesignablesAgentCocoaTouch process.
Overrode `-[MGLMapView initWithFrame:]` to call `-commonInit`. We’ve marked this initializer unavailable in the header, but IB still calls it regardless.
Fixes #929.
|
| |
| |
| |
| | |
This change removes most of the ways you used to be able to apply a style to the map. Building on #1163, `styleURL` (HTTP(S), mapbox:, asset:) is the canonical way to apply a style, and `mapID` is a convenient shorthand for Mapbox-hosted styles. A relative style URL is interpreted as a path relative to the app’s main bundle. We now construct asset: URLs in lieu of “bundled style names”.
|
|/
|
|
|
|
|
|
| |
`Map` should be able to deal with having no access token or JSON even while it’s running. Most of `Map` accounts for this situation, but `reloadStyle()` incorrectly assumes that one or the other is set. This change corrects the assumption in `reloadStyle()`.
Also expose the access token and style name to clients as ordinary KVO-compliant properties. Actually, they’re not so ordinary because they’re inspectable!
Ref #1070, #1147
|
|\
| |
| | |
fixes #1181: fix lat/lng & zoom ordering problems
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Speed And Course Attributes
|
|/ / |
|
|\ \
| |/
|/| |
Polished privacy settings
|
| |
| |
| |
| | |
Added footer text to explain the purpose of the Mapbox Metrics setting. Added strings from the plist to an existing unused .strings file and converted that .strings file to UTF-8 for diffability.
|
|\ \
| | |
| | | |
fix compilation error with private category property
|
|/ / |
|
|\ \
| | |
| | | |
improvements to iOS docs & user location framework
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Cleans up & documents more APIs, especially in location.
* Moves `coordinate` internal and makes use of `location` to retrieve it.
* Moves `title` & `subtitle` internal since part of `MGLAnnotation` protocol.
* Enables `isUpdating` by privately associating weakly with a map view.
|
|\ \ \
| |/ /
|/| | |
Only run Style::updateProperties when required
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This brings the easing transition code a bit closer to how easings work
in gl-js. Instead of having an array of individual transitions for scale,
rotate, and pan, there is a single transition function that does all the
required calculations. This permits us to:
* Eliminate the "timeout" transition. (Fixes #126)
* Replace start/stopPanning() et al with setGestureInProgress(). Apps or
SDKs are expected to make paired calls to setGestureInProgress(). This
state will be ORed with the active easing state to determine when to
use texture interpolation. (Fixes #79)
* Run style recalculations only when an ease transition that affects the
zoom is in progress. (Fixes #1155)
|
| | | |
|
|/ / |
|
|\ \
| |/
|/| |
Events = True
|
|/
|
|
| |
if metrics are not disabled
|
|\
| |
| | |
Changing "Location" to "location"
|
|/ |
|
|\
| |
| | |
Some minor cleanups
|
|/ |
|
|\
| |
| | |
Make std::chrono use less painful
|
|/ |
|
|\ |
|
| |\
| | |
| | | |
Style code cleanup
|
| | | |
|
| | | |
|
| | | |
|