Commit Graph

3454 Commits

Author SHA1 Message Date
Brad Leege
482275f978 Merge branch 'master' of github.com:mapbox/mapbox-gl-native into 1216-pause 2015-04-07 15:11:26 -05:00
Justin R. Miller
778925a96a refs #1219: move iOS CocoaPods spec to root of project
This is only temporary, until such time that we release Mapbox GL
on CocoaPods directly, when they will host the Podspec. For now,
it needs to be in the repository root to be usable as a non-main
CocoaPods source.
2015-04-07 13:05:38 -07:00
Justin R. Miller
6efbda6755 [publish ios-v0.2.8] 2015-04-07 11:19:49 -07:00
Justin R. Miller
e4228f7a0f prep CocoaPods for new deploy setup 2015-04-07 11:18:52 -07:00
Justin R. Miller
d424c09f03 Merge pull request #1219 from mapbox/ios-deploy
fixes #1189, #880: split OS X/iOS builds & deploy iOS to S3
2015-04-06 22:51:54 -07:00
Justin R. Miller
4e86e2c62a fixes #1189, #880: split OS X/iOS builds & deploy iOS to S3 2015-04-06 22:33:40 -07:00
Brad Leege
def309ba24 #1216 - Adding start and stop location manager update to pause and resume functions. 2015-04-06 23:15:00 -05:00
Brad Leege
4092e46982 #1216 - Add pause and resume methods with corresponding isPaused boolean flag property 2015-04-06 23:03:27 -05:00
Brad Leege
0a2ee766db Merge pull request #1218 from mapbox/1215-metrics
Changes To Metrics Data
2015-04-06 19:47:19 -05:00
Brad Leege
86d05d7ece #1217 - Changing date format to ISO 8601 2015-04-06 19:12:05 -05:00
John Firebaugh
6262172034 Merge pull request #1200 from mapbox/source
Eliminate StyleSource
2015-04-06 17:09:21 -07:00
John Firebaugh
c73309ef5f Remove unused 2015-04-06 15:55:28 -07:00
Brad Leege
efdcdfb70d #1217 - Documenting why [NSTimeZone resetSystemTimeZone] is called 2015-04-06 17:51:24 -05:00
Brad Leege
67ce07cada #1217 - Changing date formatter to use device's system timezone and to give both timezone abbreviation as well as hour offset 2015-04-06 17:50:02 -05:00
Brad Leege
17ded82d87 #1215 - Refactoring cellularNetworkType and wifi to support nil data if no cell type or wifi is found. 2015-04-06 17:36:54 -05:00
Minh Nguyễn
760c0f0f19 Merge pull request #1214 from mapbox/1ec5-classes
Expose style class API publicly
2015-04-06 14:36:10 -07:00
John Firebaugh
872cf07683 Move tileCover to its own file 2015-04-06 13:58:56 -07:00
John Firebaugh
d8411f26d2 Tile::ID ⇢ TileID
This allows making both Tile and TileID private.
2015-04-06 13:58:56 -07:00
Minh Nguyễn
a525038d14 Merge pull request #1211 from mapbox/1ec5-nil-token
Accept nil access token
2015-04-06 13:25:34 -07:00
John Firebaugh
c5292b7536 Remove always-true conditional 2015-04-06 12:59:47 -07:00
John Firebaugh
5ec04c0474 Bounds-check array access at source 2015-04-06 12:59:46 -07:00
John Firebaugh
d2314aedc6 Extract SourceInfo::tileURL 2015-04-06 12:58:52 -07:00
Brad Leege
01d892a152 Merge pull request #1213 from mapbox/1212-locationmanager-defaults
LocationManager Defaults
2015-04-06 14:45:59 -05:00
Minh Nguyễn
af09fd599a Expose style class API publicly
Also added some convenience methods to match the underlying C++ API.
2015-04-06 12:26:26 -07:00
Brad Leege
2153cd29f7 #1212 - Distance filter to 10 and defaults for accuracy and automatic pause 2015-04-06 14:22:50 -05:00
Minh Nguyễn
a406f9121f Accept nil access token 2015-04-06 11:28:30 -07:00
John Firebaugh
15969f1369 Remove Map dependency from Source::invalidateTiles 2015-04-06 10:30:02 -07:00
John Firebaugh
750cfb6f58 Remove Map dependency from Source::load 2015-04-06 10:30:01 -07:00
John Firebaugh
e72ee04482 Move SourceInfo into source.hpp/cpp 2015-04-06 10:30:01 -07:00
John Firebaugh
7e0e55e542 Eliminate StyleSource
Fixes #695
2015-04-06 10:30:01 -07:00
Minh Nguyễn
87d9507854 Merge pull request #1204 from friedbunny/location-shadow
Smooth edges of user location annotation icon's shadow
2015-04-03 21:40:10 -07:00
Jason Wray
9cdd2b1c56 Smooth edges of user location annotation icon's shadow 2015-04-03 19:52:41 -07:00
Justin R. Miller
5f94ee532c update docs for umbrella header 2015-04-03 15:56:52 -07:00
Minh Nguyễn
b9eb3e7147 Merge pull request #1201 from mapbox/1ec5-objc
iOS projects require -ObjC in OTHER_LDFLAGS
2015-04-03 15:05:44 -07:00
Minh Nguyễn
db4b6bd510 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`.
2015-04-03 14:51:15 -07:00
John Firebaugh
41c4d50f8a Remove unused 2015-04-03 13:51:33 -07:00
John Firebaugh
cca7f6978a Remove unused 2015-04-03 13:51:33 -07:00
Minh Nguyễn
e6e340afd1 Merge pull request #1184 from mapbox/1070-kvo
Style API cleanup, designables, inspectables
2015-04-03 13:22:35 -07:00
Minh Nguyễn
d1fb43e371 Inspectable toggles
Added inspectables for toggling zooming, panning, rotating, and showing the user location for parity with `MKMapView`.
2015-04-03 12:41:38 -07:00
Justin R. Miller
6eb79338f3 allow setting nil mapID for default style 2015-04-03 12:41:37 -07:00
Justin R. Miller
2916ae2735 formatting & docs changes
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.
2015-04-03 12:40:51 -07:00
Minh Nguyễn
836de8bc1c Made lat/lon/zoom inspectable
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
2015-04-03 12:34:36 -07:00
Minh Nguyễn
da13225a81 Made MGLMapView designable in IB
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.
2015-04-03 12:16:00 -07:00
Minh Nguyễn
e18e4b0de5 Removed redundant initializers and setters
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”.
2015-04-03 12:14:51 -07:00
Minh Nguyễn
6a1e7d5707 Fixed race condition after setting access token
`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
2015-04-03 12:07:53 -07:00
Justin R. Miller
999ebb371e Merge pull request #1194 from mapbox/fix-lat-lon-zoom-order
fixes #1181: fix lat/lng & zoom ordering problems
2015-04-03 09:38:47 -07:00
Brad Leege
841fba352b Merge pull request #1196 from mapbox/1195-speed-course
Speed And Course Attributes
2015-04-03 11:36:30 -05:00
Brad Leege
8413da0d68 #1195 - Adding speed and course attributes to location event 2015-04-03 11:10:35 -05:00
Justin R. Miller
c253232473 account for GL-level min zoom 2015-04-03 09:06:20 -07:00
Minh Nguyễn
6a04f3d51d Merge pull request #1187 from mapbox/1ec5-settings
Polished privacy settings
2015-04-03 02:27:08 -07:00