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.
I got rid of the styleJSON API for now, per #1147 (comment) and #900. We'll eventually need some way to interact with styles with that kind of granularity for #837.
Just to close the loop, if you pass a relative URL into -setStyleURL:, we’ll treat that as a local file relative to the main bundle. Absolute file URLs still lead to an error; see #3505.
Activity
kkaefer commentedon Apr 20, 2015
You can use
asset://...to load from disk, or use.setStyleJSON()to load styles directly from memory.robipresotto commentedon Apr 20, 2015
the setStyleJSON is private on master branch... as some reason for that?
kkaefer commentedon Apr 20, 2015
I don't think it's private:
mapbox-gl-native/include/mbgl/map/map.hpp
Line 105 in 2831073
Maybe you're running an outdated version?
robipresotto commentedon Apr 20, 2015
yeah, i know... but nothing on MGLMapView.h
1ec5 commentedon Apr 20, 2015
I got rid of the
styleJSONAPI for now, per #1147 (comment) and #900. We'll eventually need some way to interact with styles with that kind of granularity for #837./cc @incanus
1ec5 commentedon Jan 21, 2016
Just to close the loop, if you pass a relative URL into
-setStyleURL:, we’ll treat that as a local file relative to the main bundle. Absolute file URLs still lead to an error; see #3505.