Commit Graph

5798 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
0603d8f5e3 Fix crash on debug build
styleInfo is being passed to request() by reference but it is stack
allocated and goes out of scope. Pass the bits we are interested by
value instead.
2015-03-24 00:44:07 +02:00
Brad Leege
91cae4f44d #1033 - Renaming LongPress to QuickZoom for gesture event 2015-03-23 17:36:36 -05:00
Brad Leege
26a3ef3c71 #1033 - Adding Push Enabled attribute 2015-03-23 17:31:30 -05:00
Brad Leege
9b6ea52722 #1033 - Adding map.dragend event 2015-03-23 17:13:47 -05:00
Brad Leege
a4332736f7 #1033 - Adding Gesture tracking for all 7 supported gestures. DRYing out code. 2015-03-23 16:42:01 -05:00
Justin R. Miller
77c386251e Merge pull request #1022 from mapbox/1022-annotations-thread-safety
C++ style & safety improvements
2015-03-23 12:36:58 -07:00
Brad Leege
4b5158d0fe #1033 - Add Quick Zoom Event 2015-03-23 13:30:49 -05:00
Brad Leege
8b2d18814e #1033 - Map Zoom out event 2015-03-23 13:25:39 -05:00
Brad Leege
14c4ce75e1 #1033 - First Map Zoom (aka map.click event) 2015-03-23 13:22:06 -05:00
Minh Nguyễn
df437208aa Assume UTF-8–encoded JSON stylesheets
Fixes #1068.
2015-03-23 11:16:49 -07:00
Justin R. Miller
486a385f98 Merge branch 'master' into 1022-annotations-thread-safety 2015-03-23 11:13:51 -07:00
Brad Leege
11eebc498f #1033 - Initial location of map.load event 2015-03-23 11:48:53 -05:00
Brad Leege
de0aaff1f0 #1033 - Adding TODO to location where Opt Out and Metrics Disabled Checking will be implemented. 2015-03-23 11:29:34 -05:00
Brad Leege
044d1fc3c2 Merge branch 'master' of github.com:mapbox/mapbox-gl-native into 1033-metrics
Conflicts:
	gyp/platform-ios.gypi
	platform/ios/MGLMapView.mm
	styles
2015-03-23 10:52:27 -05:00
Konstantin Käfer
9d30d4042c delete the workers in the correct thread
fixes #1066
2015-03-23 12:18:40 +01:00
Konstantin Käfer
84f0f6d526 Merge pull request #1034 from mapbox/1034-separate-data-object
Isolate Map data into separate object
2015-03-23 11:43:50 +01:00
Konstantin Käfer
d2faca1861 move style classes to MapData object and make thread safe 2015-03-23 11:02:21 +01:00
Konstantin Käfer
3d2dcbb6ef move accessToken to MapData 2015-03-23 11:02:21 +01:00
Konstantin Käfer
9637176711 move defaultTransitionDuration to MapData 2015-03-23 11:02:19 +01:00
Konstantin Käfer
268975d4c2 move animationTime to MapData store 2015-03-23 11:01:39 +01:00
Konstantin Käfer
03e400e002 make the debug flag atomic and move to MapData 2015-03-23 11:01:02 +01:00
Konstantin Käfer
ebd2985f78 make style updates a little more threadsafe
- we're now always loading and parsing styles in the map thread
- adds an atomic enum that stores the actual updates we need to perform
- adds a MapData object that mutexes access to variables used from both threads
2015-03-23 11:01:01 +01:00
Justin R. Miller
80beb46c81 Revert "bring in tweaked compass snapping fixes from @friedbunny"
See #1064: problematic & can wait until after beta

This reverts commit 9dd9bd6e9d.
2015-03-22 23:09:30 -07:00
Justin R. Miller
1268c62745 Merge pull request #1060 from mapbox/umbrella-cocoa-header
fixes #1053: umbrella Cocoa header
2015-03-22 13:06:46 -07:00
Justin R. Miller
08c61e524f Merge pull request #1059 from mapbox/compass-snapping
bring in tweaked compass snapping fixes from @friedbunny
2015-03-22 12:43:33 -07:00
Justin R. Miller
0e2d6c8277 fixes #1053: umbrella Cocoa header 2015-03-22 12:25:10 -07:00
Justin R. Miller
9dd9bd6e9d bring in tweaked compass snapping fixes from @friedbunny 2015-03-22 12:14:20 -07:00
Justin R. Miller
eded1d90aa Merge pull request #1055 from mapbox/cocoa-annotations
Cocoa annotations API
2015-03-22 11:44:52 -07:00
Justin R. Miller
8b21104eba more safe return when no selection 2015-03-22 10:45:47 -07:00
Justin R. Miller
fbd90ff48a safety checks & no-op returns 2015-03-22 10:43:10 -07:00
Justin R. Miller
ecb8e2800d Cocoa annotations API 2015-03-22 00:53:36 -07:00
Minh Nguyễn
188331505e Merge pull request #1043 from mapbox/964-emerald-default
Show Emerald by default
2015-03-20 23:44:31 -07:00
Minh Nguyễn
f43661115f Show Emerald by default
a1a7ab62e1 only added an Emerald option to the test app, but `MGLMapView` itself has its own default style.

Fixes #964.
2015-03-20 22:52:21 -07:00
Minh Nguyễn
9ee8bac1fe Updated to latest styles
a1a7ab62e1 requires mapbox/mapbox-gl-styles@26ba1edacd.
2015-03-20 22:40:31 -07:00
Peter Liu
a1a7ab62e1 add emerald 2015-03-20 18:31:12 -07:00
Brad Leege
33f4dfffd2 #1033 - Removing BackgroundStatus analytic 2015-03-20 17:14:25 -05:00
Brad Leege
263ae1a4cd #1033 - Initial integration of anonymous location metrics reporting 2015-03-20 16:50:43 -05:00
Brad Leege
8a73f2186a #1033 - Adding CoreTelephony dependency and fixing access token setting method name. 2015-03-20 16:37:49 -05:00
Brad Leege
c4097fff2d #1033 - Adding MGLMapboxEvents to MGLMapView 2015-03-20 16:30:07 -05:00
Konstantin Käfer
84d472833d Merge pull request #1016 from mapbox/1016-coalesce-opengl-object-deletion
Crash when deleting buffers
2015-03-20 22:06:15 +01:00
Brad Leege
ec304d37ac #1033 - Integrating MapboxEvents class. 2015-03-20 16:01:52 -05:00
Konstantin Käfer
61fa436193 coalesce buffer deletions and run them in bulk during rendering
On iOS, the main thread does framebuffer operations just before it requests a rerender of the view contents. This means that GL operations on the Map thread will interfere with that and cause a crash. While most GL operations happen throughout rendering (which is synchronized with the main thread), deletion of shared_ptrs release in turn their OpenGL objects. This may happen at any time and isn't synced with rendering.

This patch changes this so instead of deleting all objects immediately, we are collecting all abandoned IDs and delete them in bulk once the main thread has given us permission to use OpenGL calls (i.e. during render()).
2015-03-20 19:47:54 +01:00
Minh Nguyễn
8fb1bbca8e Merge pull request #1030 from mapbox/829-pod
CocoaPod podspec for beta 1
2015-03-20 10:02:06 -07:00
Brad Leege
253643f57d #1033 - Renaming MBLocationManager to MGLMetricsLocationManager to better comply with naming scheme. 2015-03-20 11:37:50 -05:00
Brad Leege
c42e83fcc6 #1033 - Moving MBLocationManager to Core GL from app specific instance. 2015-03-20 11:11:06 -05:00
Brad Leege
e083c13f65 #1033 - Instantiating MBLocationManager in MBXViewController 2015-03-20 10:36:22 -05:00
Justin R. Miller
6b1d792f9d add comments to annotation manager; fix vector reserve 2015-03-20 08:28:15 -07:00
Justin R. Miller
897107416b remove now-unused operator 2015-03-20 08:22:53 -07:00
Brad Leege
52ccea7ae8 #1033 - Initial port of MBLocationManager into iOS GL 2015-03-20 10:14:30 -05:00
Thiago Marcos P. Santos
622b331cd5 Merge pull request #1024 from mapbox/mem_leaks
Fix a few memory leaks
2015-03-20 15:42:35 +02:00