Minh Nguyễn
256b748458
Merge branch '1ec5-plist-1535'
2015-05-20 14:38:36 -07:00
Minh Nguyễn
9a57464f82
Removed accessToken from MGLMapView public API
...
With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
2015-05-20 10:45:26 -07:00
Minh Nguyễn
245823e474
Removed “private” header
...
Instead of exposing these methods in a private header that winds up triggering warnings publicly, just redeclare the methods in a category. Since this is a test app, we’ll catch any issues that arise from refactoring simply by testing.
Fixes #1579 .
2015-05-18 11:55:54 -07:00
Minh Nguyễn
2c7d0567fa
Privatized MGLMapboxEvents
...
`-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.
2015-05-18 11:55:54 -07:00
Minh Nguyễn
27e5d18c42
Merge pull request #1573 from mapbox/1ec5-designable-redux-1568
...
Restore IB designable support
2015-05-16 21:36:24 -07:00
Minh Nguyễn
563fed5ca9
Properly fail to load the map
...
A typo in a selector literal meant that `-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:]` would never be sent to delegates even if `MGLMapView` had called it. Along for the ride, create a proper `NSError` to pass into that callback, and an error domain for that error.
2015-05-16 20:26:28 -07:00
Minh Nguyễn
b6a4ee0615
Revert "refs #1568 : remove IBDesignable support for now"
...
This reverts commit 5a918cbb2c . The designable works fine because of #1469 .
Fixes #1568 .
2015-05-16 15:34:31 -07:00
Justin R. Miller
5a918cbb2c
refs #1568 : remove IBDesignable support for now
2015-05-15 14:59:19 -07:00
Minh Nguyễn
0ad76c95d2
Obsoleted +setMapboxMetricsEnabledSettingShownInApp:
...
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.
2015-05-13 22:33:03 -07:00
Minh Nguyễn
2529baa62b
Grab access token and other app-wide data from Info.plist
...
That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place.
Fixes #1535 .
2015-05-13 15:33:28 -07:00
Justin R. Miller
6519d23611
Merge pull request #1491 from mapbox/1ec5-metrics-opt-way-out
...
refactor metrics system to immediately jettison data & tracking when users opt out
2015-05-12 18:48:10 -07:00
Minh Nguyễn
f140733414
Merge pull request #1528 from mapbox/1516-getter
...
Adding Getter Method
2015-05-12 18:45:11 -07:00
Brad Leege
0a1e89a9ca
Merge pull request #1520 from mapbox/1516-opt-out-checking
...
Explicit Opt Out Checking
2015-05-12 18:44:49 -07:00
Justin R. Miller
efc4bb4ef6
add header docs for new MGLAccountManager; reorg
2015-05-12 16:44:26 -07:00
Justin R. Miller
18b96ec4fd
fix spacing, ordering, imports
2015-05-12 16:33:32 -07:00
Minh Nguyễn
b1992a4516
Merge branch 'master' into 1ec5-metrics-opt-way-out
2015-05-12 16:09:10 -07:00
Brad Leege
8548ab0346
#1516 - Adding public setter method to MGLAccountManager.h. Fixing example signal opt out in MBXAppDelegate.
2015-05-12 11:37:40 -05:00
Brad Leege
87551c6d0e
#1516 - Renaming setShowsOptOutInApp to setMapboxMetricsEnabledSettingShownInApp for app consistency. Implementing wordsmith edits to NSAssert text. Removing technical debt.
2015-05-12 10:50:46 -05:00
Minh Nguyễn
54a703bcb2
Consolidated logic for pausing/resuming MGLMapboxEvents
...
`MGLMapboxEvents` automatically recreates its location manager when the host app is reauthorized for Location Services. Added some redundancy to ensure that there is no location manager when either Location Services or Mapbox Metrics is off.
2015-05-12 01:38:04 -07:00
Minh Nguyễn
2f02a6538e
Folded MGLMetricsLocationManager into MGLMapboxEvents
...
`MGLMetricsLocationManager` was nothing but overhead for `CLLocationManager`. Also removed an unused method.
2015-05-12 01:36:56 -07:00
Minh Nguyễn
f860169f35
Refactored MGLMapboxEvents for better data management
...
The shared `MGLMapboxEvents` now owns the only instance of `MGLMetricsLocationManager`. It also owns a `MGLMapboxEventsData` object, to which all user-specific data has been relegated. This object can be built up and torn down on the fly, whenever the opt-out preference is toggled. `MGLMapboxEvents` has also given up knowledge of the access token and now queries `MGLAccountManager` for that information, which `MGLMapView` keeps up-to-date.
2015-05-12 01:36:56 -07:00
Brad Leege
48e21ae6e9
#1516 - Adding explicit checks for developer implementation of user Opt Out functionality
2015-05-11 23:31:22 -05:00
Justin R. Miller
8cb146fa02
don't doc or package private headers
2015-05-05 15:13:39 -07:00
Brad Leege
acd27fc386
Merge pull request #1329 from mapbox/1225-start-token
...
MapboxGL Startup Infrastructure
2015-05-05 13:00:25 -05:00
Brad Leege
804c092c81
#1225 - Simplifying MGLAccountManager for initial setup and access to AccessToken
2015-05-05 11:50:01 -05:00
Konstantin Käfer
691c305467
add Map::isFullyLoaded()
...
returns whether the Map is still loading/parsing any assets or whether everything is there and a render will likely be complete
2015-05-05 11:47:23 +02:00
Konstantin Käfer
307ad680ba
[iOS] allow calling invalidate() on MGLMapView
2015-05-05 11:47:16 +02:00
Justin R. Miller
af8f060a0d
missing docs tuneups
2015-05-04 16:07:16 -07:00
Brad Leege
4ce4e979ff
Updating from master
2015-05-04 17:04:46 -05:00
Brad Leege
7f6cc6cc6d
#1225 - Renaming getAccessToken method to sharedAccessToken to avoid any iOS get naming conventions
2015-05-04 16:52:41 -05:00
Brad Leege
0e36bf1c8d
#1225 - Restoring MapboxGL.h as an Umbrella header file by splitting the singleton code into MGLAccountManager.h and .m
2015-05-04 16:13:18 -05:00
Minh Nguyễn
6790a09a08
Turned class methods into instance methods
...
Avoids unnecessary steps to access singletons. Now `MGLMapboxEvents` and `MGLMetricsLocationManager` instances can message themselves directly.
2015-04-30 11:48:56 -04:00
Minh Nguyễn
67fdfbadb3
Merge pull request #1357 from mapbox/1ec5-view-controller
...
Automatically find view controller for layout guides
2015-04-27 22:28:06 -07:00
Minh Nguyễn
5ffa52cab5
Automatically find view controller for layout guides
...
Find the managing view controller by traversing the responder chain.
2015-04-27 15:52:30 -07:00
Brad Leege
16bcdb10b8
#1352 - Adding visit event with data attributes
2015-04-27 18:00:31 -04:00
Brad Leege
5092d72599
#1352 - Adding start / stop visit monitoring infrastructure and integrating it with pause / resume metrics api
2015-04-27 17:37:39 -04:00
Brad Leege
50fecb916d
#1345 - Adding app build number to user agent. Updating gl test app build number to be different from build version.
2015-04-27 11:43:23 -04:00
Brad Leege
591c63286b
#1225 - Converting id to instancetype
2015-04-24 15:41:21 -05:00
Brad Leege
317be34708
#1225 - Removing unavailable block on MGLMapView.initWithFrame
2015-04-24 15:29:34 -05:00
Brad Leege
7e145780eb
#1225 - Initial conversion of Mapbox GL app to set access token in AppDelegate and exposing MGLMapView.initWithFrame to support it
2015-04-23 18:15:01 -05:00
Brad Leege
578d48b303
#1225 - Initial setup of MapboxGL as a singleton object with access token
2015-04-22 17:19:59 -05:00
Brad Leege
1a43b773af
#1166 - Initial conversion from NSURLConnection to NSURLSession
2015-04-21 17:13:23 -05:00
Brad Leege
a2883dddc0
#1306 - Adding api_mapbox_com.der (public key) and nsurlconnection checking infrastructure
2015-04-20 14:28:32 -05:00
Justin R. Miller
190709c6b1
fixes #1157 , #1255 : cache parsed tiles in memory
2015-04-16 01:15:41 -07:00
Brad Leege
21685caa2a
#1268 - Adding horizontalAccuracy to location event
2015-04-14 18:03:59 -05:00
Brad Leege
19e4bc7541
#1247 - Adding Altitude and Vertical Accuracy attributes to location events
2015-04-09 18:08:15 -05: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
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
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