Commit Graph

8640 Commits

Author SHA1 Message Date
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
Thiago Marcos P. Santos
1ffe2dd615 Add a reference Valgrind suppresion file
When using Valgrind for debugging memory leaks and access violations, we
often see a lot of false positives, specially when dealing with OpenGL
that does it own buffer management. This file is an attempt to filter
these false positives.

Note that we are only filtering for the open source Radeon driver and
the list will probably grow to accommodate other setups.

To use the Valgrind with the suppression file for hunting memory leaks,
try something like:

valgrind --leak-check=full --track-origins=yes --suppressions=[path/to/valgrind.sup] ./mapbox-gl
2015-03-20 14:38:08 +02:00
Thiago Marcos P. Santos
ceb7049389 Delete the data buffer of LineAtlas
Data buffer is allocated but never deleted.
2015-03-20 14:38:08 +02:00
Thiago Marcos P. Santos
490c172b35 Delete the GLFWView object at exit
Also destroy the glfwWindow we create. This leak was probably harmless
but a nice cleanup helps us debug other serious memory leaks.
2015-03-20 14:38:08 +02:00
Konstantin Käfer
f73dfc73f1 make more things const and refs, and add mutexes 2015-03-20 13:14:00 +01:00
Mike Morris
993d760675 1.0.1 [publish binary] 2015-03-19 22:57:43 -04:00
Mike Morris
b5bc3cbce2 Merge pull request #104 from mapbox/changelog
add changelog
2015-03-19 22:56:56 -04:00
Mike Morris
d9494f7366 add changelog 2015-03-19 22:56:03 -04:00
Mike Morris
1f31518fe8 Merge pull request #103 from mapbox/env
adapt NodeFileSource around mbgl::Environment additions
2015-03-19 22:55:22 -04:00