Commit Graph

19 Commits

Author SHA1 Message Date
John Firebaugh
13d5b18eba [android] Move into platform subdirectory 2015-12-16 14:52:29 -08:00
Tom MacWright
999447587c Expand DEVELOP_ANDROID_OSX with more gotchas.
Fixes #3266
2015-12-15 11:10:18 -05:00
Minh Nguyễn
d2d722a575 [osx] Corrected build documentation
build/pkg/osx/ probably won’t be used until #3183 lands.
2015-12-13 21:54:54 -08:00
Minh Nguyễn
a01dd8ade1 [osx] Corrected documentation
Corrected the path to the build output. Also added a missing inline comment.
2015-12-13 17:26:53 -08:00
Minh Nguyễn
bab3935431 [osx] Fixed standalone launch of osxapp (and run-xosx)
Mapbox.framework needs to be embedded in the application bundle.
2015-12-13 17:26:53 -08:00
Minh Nguyễn
df0511af18 [osx] Build framework based on static library 2015-12-13 17:26:53 -08:00
Minh Nguyễn
0cab7809eb [osx] Rewrote platform-osx and osxapp
platform-osx now vends a real NSView subclass, MGLMapView, that is readily embedded inside a Cocoa application for OS X. MGLMapView is backed by an NSOpenGLLayer for optimal performance and integration with other layer-backed views. It supports keyboard shortcuts and several gestures and hosts attribution, zooming, and rotation controls as subviews. osxapp is now a bona fide Cocoa application that embeds MGLMapView inside a XIB. osxapp has preferences and a share button for tight integration with custom styles.

Enabling asynchronous rendering would be more consistent with iOS but increases CPU usage so much, even when idle, that it isn’t worth any performance gain. The bigger issue is that VAOs aren’t being used.

make xpackage creates a static library similar to the one created by make ipackage. make clean cleans additional places where build output ends up.

The OS X minimum deployment target has been increased from 10.9 to 10.10. osxapp’s window has a full size content view, which requires 10.10. Lightweight generics require iOS 9+ and OS X 10.11 regardless, because it was only in that release that Foundation collection classes started adopting lightweight generics.

Shuffled files around and refactored annotations so that iOS and OS X share a good chunk of the annotations code, which now takes advantage of polymorphism. MGLMapView can now display annotations but cannot yet select them. In osxapp, a long press drops a pin, and so does the map view’s context menu.

Annotations have NSPopovers as callouts, and their view controllers can be customized. Annotation image alignment rects are respected for hit testing purposes and for positioning the callout anchor. Callouts in osxapp demonstrate the use of bindings to keep callouts in sync with underlying model objects.
2015-12-13 17:17:35 -08:00
Jason Wray
e5f136a16a [ios] fix CoreTelephony crash (by removing it)
Fix #3112, ref #2581
2015-12-02 20:00:59 -05:00
Minh Nguyễn
4240dfb0a8 Updated links to access token manager
The old URL redirects to a Mapbox Studio page not specifically about access tokens.
2015-11-29 01:39:29 -08:00
Bruno de Oliveira Abinader
1f0820c8e8 [core] Added MapDebugOptions
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Justin R. Miller
b07d4c8ff6 clarify how to run individual tests
[skip ci]
2015-11-17 15:21:33 -08:00
Justin R. Miller
ac10cc1ecd fixes #3054: move desktop test app keybindings output to startup log 2015-11-17 12:00:51 -08:00
Justin R. Miller
3293f32fef re-add OS X desktop usage hotkeys (refs #2800 @tmcw)
[skip ci]
2015-11-13 12:14:58 -08:00
Tobrun
f4de4a799c [android] #3023 - reactive token generation
[android] #3023 - update documentation to reflect change
2015-11-13 11:21:41 +01:00
Brad Leege
b918b51672 [android] #2369 - Adding Developing and Running Instructions 2015-11-12 10:48:02 -06:00
Brad Leege
83ea5be413 [android] #2369 - Updating Android setup instructions for OS X 2015-11-09 16:11:50 -06:00
Tobrun
30cac4ff00 [android] #2974 - Update documentation token.txt
Update documentation due to migration of the token from testapp to SDK
2015-11-08 18:39:00 +01:00
Brad Leege
162ad67802 [android] #2953 - Removing old path to project 2015-11-06 10:43:31 -06:00
Tom MacWright
3fca2455ad [docs] Recreate structure of documentation 2015-10-27 16:43:54 -04:00