summaryrefslogtreecommitdiff
path: root/ios/app
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Converted iOS SDK into dynamic frameworkMinh Nguyễn2016-01-225-21/+34
| | | | | | | | | | make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework. The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework. Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks. Fixes #828.
* [ios] add telemetry debug loggingJason Wray2016-01-201-17/+42
| | | | | | You SHOULD NOT be using telemetry logging on any persons' devices who do not explicitly understand the privacy implications of handling location data.
* [ios] Make demo app's build number more realisticJason Wray2016-01-201-1/+1
| | | | [skipci]
* [ios] Add telemetry setting directly to attribution button action sheetJason Wray2016-01-092-2/+2
| | | | | - Deprecate and no-op `+[MGLAccountManager mapboxMetricsEnabledSettingShownInApp]` - Check for attribution button hiding and make sure ToS are understood
* [ios] Refined custom callout view supportMinh Nguyễn2016-01-063-15/+24
| | | | Renamed MGLCalloutView to MGLCompactCalloutView and MGLCalloutViewProtocol to MGLCalloutView to avoid an awkward workaround for a Swift name collision. Replaced individual title and subtitle properties with a single representedObject property that lets you use custom annotation properties in the custom callout view. Overrode a problematic SMCalloutView method. Added lots more documentation.
* [ios] basic custom callout view on demo appRomain Quidet2016-01-064-2/+137
|
* Happy new year!Minh Nguyễn2016-01-051-1/+1
|
* [core] Merge SQLiteCache into the platform libraryJohn Firebaugh2015-12-221-1/+0
| | | | OfflineFileSource will depend on SQLite too.
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-171-2/+18
|
* [ios] Fixed off-by-one error due to mergeMinh Nguyễn2015-12-161-1/+1
| | | This needs to be converted into a giant switch statement, but that wouldn’t prevent issues like this cropping up in a merge anyways.
* Revert "Revert "[ios] Custom style layer""Minh Nguyễn2015-12-161-0/+59
| | | | This reverts commit 081e4e44516937a6139fad5823dd5ec3200cc343.
* Revert "[ios] Custom style layer"John Firebaugh2015-12-161-59/+0
| | | | ec9a4cd3285da280d43c7ddd0ca96fe37d9c5278
* [ios] Custom style layerMinh Nguyễn2015-12-161-0/+59
| | | | | | Exposed Map::addCustomLayer() publicly as an undocumented, block-based API. This change avoids the terms “layer”, “initialize”, “render”, and “altitude” because they overload existing terminology in the SDK, UIKit, or MapKit. (“Layer” is qualified as “style layer”.) There are outstanding questions about ARC memory management, but this approach works in both Objective-C and Swift for pure OpenGL programming. Added a demo to iosapp that draws a green layer below any labels in Mapbox Streets.
* [ios, osx] Added flyToCamera: variation that uses default durationMinh Nguyễn2015-12-151-1/+1
|
* [ios] World tour on iOSMinh Nguyễn2015-12-151-0/+56
|
* [osx] Rewrote platform-osx and osxappMinh Nguyễn2015-12-131-3/+3
| | | | | | | | | | | | | | 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.
* [core] Added MapDebugOptionsBruno de Oliveira Abinader2015-11-271-2/+2
| | | | | Map debug options are now cycled up to all debug options enabled, then back to none.
* Demonstrate show annotations in iosappMinh Nguyễn2015-11-241-6/+1
| | | | ref #3110
* [core] move mbgl.gyp to gyp directoryMike Morris2015-11-041-5/+5
| | | | | So npm won't clobber binding.gyp, refs https://github.com/npm/npm/issues/10243
* [core][iOS] Source iOS styles from default_stylesMinh Nguyễn2015-10-301-21/+5
| | | | | | | | | | Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles. Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs. Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles. /ref #1462
* [core] Remove bundled styles.Leith Bade2015-10-302-2/+1
| | | | Fixes #2239
* More natural style names in iosappMinh Nguyễn2015-10-261-23/+18
| | | | ref #2740
* [android] Add missing satellite streets style to Android and iOS.Leith Bade2015-10-231-4/+5
| | | | | | As well as default_styles.cpp Fixes #2739 Fixes #2740
* fixes #2611: iOS test app long press drops debug markerJustin R. Miller2015-10-151-0/+18
|
* [ios] fixes #2490: add annotation image enabled propertyJustin R. Miller2015-10-021-1/+13
|
* Fix up of some naming issues, etc.Adam Hunter2015-09-291-2/+0
|
* Added GL logging utilityAdam Hunter2015-09-291-0/+2
|
* [iOS] Give iosapp the option to use `always` location permissionsJason Wray2015-09-221-0/+2
| | | | | Useful in testing metrics and background location. Default is still `whenInUse`, user must switch in `Settings.app`.
* Prefix user defaults in iosappMinh Nguyễn2015-09-161-11/+11
| | | | We technically don’t need to, but the demo app should practice good hygiene since we expect developers to copy from it.
* Fix build, only ask for location permission on user's instigationJason Wray2015-09-081-7/+0
| | | | | | | | Previously in #2265 we would ask for location permission at app startup if `!settings->showsUserLocation`. #2193 0a172a21fdc2a87473560fd7d45f4d495d95de91 changed the way we used `NSUserDefaults` and mostly removed the `settings` object, which broke #2265. Rather than fix our pestering location permissions ask at startup, this commit now only asks for location permissions when the user hits the locate-me button. Once a user grants permission, the user dot appears because a `userTrackingMode` is set, `showsUserLocation` is permanently set to `YES` in `NSUserDefaults` and is restored at launch.
* CameraOptionsMinh Nguyễn2015-09-072-30/+39
| | | | | | | | | | | | Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level. Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course. Support customizable timing functions on iOS. iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation. Fixes #1643, fixes #1834. Ref #1581.
* Update NSLocationWhenInUseUsageDescription stringJason Wray2015-09-041-1/+1
| | | | Fixes #1930
* Fix location permissions ask, add delay for map to loadJason Wray2015-09-041-1/+7
|
* iOS perspective gesture supportJason Wray2015-08-261-0/+2
| | | | | | Drag two fingers upward to tilt the map. Implements #2116
* remove Bright, Basic, and Outdoors from iOS testingJustin R. Miller2015-08-241-3/+0
|
* iOS app/framework fixes for v8Justin R. Miller2015-08-241-5/+5
| | | | | | - Mapbox Streets -> Streets - style version from string to integer - 7 -> 8
* GL is the library, SDK is the productJustin R. Miller2015-08-213-5/+2
|
* Added UI for course trackingMinh Nguyễn2015-08-141-1/+8
|
* MGLUserTrackingModeFollowWithCourseMinh Nguyễn2015-08-141-11/+14
| | | | | | Added course-tracking. However, rotation has to happen atomically without animation until #1834 is fixed. Fixes #1605.
* Include app-info.plist in demo app projectJason Wray2015-07-281-1/+2
| | | | [skip ci]
* Exempt Metrics staging server from PFS requirementMinh Nguyễn2015-07-271-2/+13
| | | | | This server should not used in actual production code anyways. Fixes #1937.
* remove loggingJustin R. Miller2015-07-081-6/+0
|
* runtime imagery based on annotation titleJustin R. Miller2015-07-081-14/+26
|
* fixes for runtime Cocoa imageryJustin R. Miller2015-07-081-1/+1
|
* Cocoa custom marker imagery APIJustin R. Miller2015-07-081-0/+33
|
* squash of #1655: shape annotations support for core & iOSJustin R. Miller2015-06-157-52/+15890
|
* Merge branch '1ec5-plist-1535'Minh Nguyễn2015-05-201-17/+15
|\
| * Obsoleted +setMapboxMetricsEnabledSettingShownInApp:Minh Nguyễn2015-05-131-17/+15
| | | | | | | | 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.
* | Merge pull request #1589 from mapbox/1396-info-plist-onlyBrad Leege2015-05-181-0/+2
|\ \ | | | | | | Manage Metrics TEST URL Via Info.plist
| * | #1396 - Refactoring Metrics Test Server URL configuration to be drive via ↵Brad Leege2015-05-181-0/+2
| | | | | | | | | | | | Info.plist