Commit Graph

3243 Commits

Author SHA1 Message Date
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
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
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
Minh Nguyễn
1be8e6327b Prepared podspec for beta 1
This podspec was originally lifted from mapbox/mapbox-ios-sdk, which was structured and built quite differently. We could have the podspec build this repo as is, using scripts/package_ios.sh, but that would require developers to install the same version of Xcode as Travis is using (see #977). So this podspec instead pulls a prebuilt library. Much simpler.

Also package a LICENSE with the archive to satisfy a CocoaPods warning.

Fixes #829.
2015-03-19 14:40:44 -07:00
Minh Nguyễn
0cdf21c62d Merge pull request #1020 from mapbox/init-bundled-style
API for initializing with bundled style
2015-03-19 13:39:05 -07:00
Justin R. Miller
b4dbba93f8 bump iOS app version 2015-03-19 12:41:59 -07:00
Minh Nguyễn
3d195b467a Added API for initializing with bundled style
As a best practice for the beta and a workaround for #1014.

Also reversed the argument order of the existing init method. Reads better this way, but you’ll likely have to change your initialization to match the new signatures.
2015-03-19 10:29:04 -07:00
Mike Morris
ae7bd9ac6a Merge pull request #946 from friedbunny/931-fullwidth-block
Fix end of acceptable glyph/unicode range
2015-03-18 11:47:47 -04:00
Konstantin Käfer
1c276cbb76 Merge pull request #1015 from mapbox/log_scope
Scope threads to an Environment
2015-03-18 13:53:19 +01:00
Thiago Marcos P. Santos
3254cdc85c Log the Environment ID and the Thread name
To make it easier to debug, add the Environment ID and the Thread name
to the log messages. For instance log messages from the TileParser will look like:

[WARNING] {0}{TileWorker_15/18653/9486}[ParseTile]: some relevant warning message
   |       |             |                  |
   |       |             |                  +-> Component
   |       |             +--------------------> Thread name
   |       +----------------------------------> Environment ID
   +------------------------------------------> Severity level

Log messages that are not inside an Environment::Scope will work
normally and will look like:

[WARNING] [JNI]: some relevant warning message

Fixes #882.
2015-03-18 12:51:33 +01:00