diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-12-16 09:29:54 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-16 11:03:54 -0800 |
commit | ec9a4cd3285da280d43c7ddd0ca96fe37d9c5278 (patch) | |
tree | 1ae0849e18c6c42f42e453d641279d43a0a62367 /gyp | |
parent | 8a17d30c50f46b5c702807a840bbfb6395eb456e (diff) | |
download | qtlocation-mapboxgl-ec9a4cd3285da280d43c7ddd0ca96fe37d9c5278.tar.gz |
[ios] Custom style layer
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.
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/platform-ios.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/platform-ios.gypi b/gyp/platform-ios.gypi index d510d25c03..22a44dd31a 100644 --- a/gyp/platform-ios.gypi +++ b/gyp/platform-ios.gypi @@ -50,6 +50,7 @@ '../platform/ios/MGLMapboxEvents.m', '../include/mbgl/ios/MGLMapView.h', '../include/mbgl/ios/MGLMapView+IBAdditions.h', + '../include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h', '../platform/ios/MGLMapView.mm', '../include/mbgl/ios/MGLAccountManager.h', '../platform/ios/MGLAccountManager_Private.h', |