You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
In MGLMapView.mm, the bundledStyleNames method returns an array of filename with the .json extension included. However, the useBundledStyleNamed:(NSString *)styleName expects a filename without the extension.
This makes getting a list of names, selecting one, and call useBundledStyleNamed: more difficult than it needs to be.
I would be happy to make the change, if provided with direction on either including or excluding the filename extension.
Related, but styles for iOS are being loaded from the .app "styles" directory, rather than the MapboxGL.bundle file. The file in MapboxGL.bundle do not appear to be used at all.
Activity
picciano commentedon Mar 10, 2015
Related, but styles for iOS are being loaded from the .app "styles" directory, rather than the MapboxGL.bundle file. The file in MapboxGL.bundle do not appear to be used at all.
incanus commentedon Mar 11, 2015
Good call on both points. Re: your question, I think we should provide strings w/o the
.jsonextension.picciano commentedon Mar 11, 2015
Here is a pull request that removes the file extensions from the bundledStyleNames method. https://github.com/mapbox/mapbox-gl-native/pull/980/files
1ec5 commentedon Mar 12, 2015
Fixed in 28e2893 and 4c7939b.