Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Closed
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
34a9445
add link to styles
Mar 9, 2015
13d701a
revert
Mar 9, 2015
5b8b7c2
switch map style from UI
Mar 10, 2015
89e7741
revert change
Mar 11, 2015
218a554
Merge pull request #1 from mapbox/master
picciano Mar 11, 2015
0d0962d
Merge pull request #2 from mapbox/master
picciano Mar 11, 2015
0f061e6
Fix for issue 969
Mar 11, 2015
6218d13
combine for loops
Mar 11, 2015
5bd4f6c
Alias hybrid to satellite
1ec5 Mar 5, 2015
d53e968
Fix satellite style contour rendering
jfirebaugh Mar 8, 2015
081dccd
Fix satellite style label rendering
jfirebaugh Mar 8, 2015
30a8e1e
refs #935: remove dispatch_once, favor property use, and return immut…
incanus Mar 9, 2015
72e84f0
refs #928: 90% of way to genericizing VectorTile
incanus Mar 3, 2015
f50637d
refs #928: bookmarking working build of refactor
incanus Mar 4, 2015
f43d188
move to abstract base classes & shared pointers
incanus Mar 6, 2015
4d6def4
fix reference
incanus Mar 6, 2015
7c20a01
iterate through fresh copy of layer data
incanus Mar 6, 2015
61495d7
proper move
incanus Mar 6, 2015
642a0fc
no need for while loop
incanus Mar 6, 2015
b040c04
pass actual feature pbf when filtering layer features
incanus Mar 7, 2015
39c37e7
parse geometry collections from the pbfs; iterate geometries in buckets
incanus Mar 7, 2015
6e432df
get rid of unused member
incanus Mar 7, 2015
ec81799
increment feature filter on creation
incanus Mar 7, 2015
223c6d6
properly iterate geometries
incanus Mar 7, 2015
fe56998
refactor vars
incanus Mar 7, 2015
da2f1d2
safely check points
incanus Mar 7, 2015
f0f80a4
doesn't make sense to move shared pointers
incanus Mar 8, 2015
485bc45
move to abstract interfaces to more be in line with original API
incanus Mar 8, 2015
d518bc1
fix iterator comparator
incanus Mar 8, 2015
d7f050b
move from range-based for loop to iterator for to be clearer
incanus Mar 8, 2015
23b5292
move to shared pointers for queried layers passed to buckets
incanus Mar 8, 2015
c2e7fdf
reference cleanups
incanus Mar 8, 2015
c8b61a3
unique -> shared ptr
incanus Mar 8, 2015
f046f2e
Rework GeometryTile* interface
jfirebaugh Mar 9, 2015
1cced8c
Use single geometry format
jfirebaugh Mar 10, 2015
99dc318
Revert FeatureType rename
jfirebaugh Mar 10, 2015
198a6a8
Inline PBFGeometry
jfirebaugh Mar 10, 2015
104dd4f
Don't use const on value-type returns
jfirebaugh Mar 10, 2015
48d2fc8
virtual ⇢ override in derived class
jfirebaugh Mar 10, 2015
201a461
Remove unused header
jfirebaugh Mar 10, 2015
295ca5b
Move parseValue(pbf) to vector_tile.cpp
jfirebaugh Mar 10, 2015
ae855d3
Fix build warnings on GCC
tmpsantos Mar 11, 2015
8e7a715
Trivial build fix, do not call private method
tmpsantos Mar 11, 2015
6714704
Update the docs
tmpsantos Mar 11, 2015
0cc80ef
More include fixes
jfirebaugh Mar 10, 2015
af20ae7
Don't copy VT keys / values into each feature
jfirebaugh Mar 10, 2015
814c85a
#978 - Changing `gradle build` to `gradle assembleRelease` for `make…
bleege Mar 11, 2015
f7fea2b
#978 - Creating `android-project` task as an alias for `android-lib`…
bleege Mar 11, 2015
be44bc7
Relax sqlite version check to major version only
jfirebaugh Mar 11, 2015
5fb9684
Fix for issue 969
Mar 11, 2015
2d6f6ee
Merge branch 'master' of https://github.com/tallygo/mapbox-gl-native
Mar 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions platform/ios/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -944,15 +944,19 @@ - (NSArray *)bundledStyleNames
if (!_bundledStyleNames) {
NSString *stylesPath = [[MGLMapView resourceBundlePath] stringByAppendingString:@"/styles"];

_bundledStyleNames = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath:stylesPath error:nil] mutableCopy];

_bundledStyleNames = [NSMutableArray array];

NSArray *bundledStyleNamesWithExtensions = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:stylesPath error:nil];
// Remove file extension for issue 969
// Add satellite raster & "hybrid" (satellite raster + vector contours & labels)
NSString *hybridStylePrefix = @"hybrid-";
NSString *satelliteStylePrefix = @"satellite-";
NSMutableArray *hybridStyleNames = [NSMutableArray array];
for (NSString *styleName in _bundledStyleNames) {
for (NSString *styleName in bundledStyleNamesWithExtensions) {
[_bundledStyleNames addObject:[styleName stringByDeletingPathExtension]];

if ([styleName hasPrefix:satelliteStylePrefix]) {
[hybridStyleNames addObject:[hybridStylePrefix stringByAppendingString:[styleName substringFromIndex:[satelliteStylePrefix length]]]];
[hybridStyleNames addObject:[hybridStylePrefix stringByAppendingString:[[styleName substringFromIndex:[satelliteStylePrefix length]] stringByDeletingPathExtension]]];
}
}
[_bundledStyleNames addObjectsFromArray:hybridStyleNames];
Expand Down