Apply style.json to data entry in config.json #2010
Unanswered
MichaelBuchardt
asked this question in
Q&A
Replies: 1 comment
-
|
The data section is not supposed to show styles; it is designed specifically to view or inspect the raw data source. The style you added is mapped to those data sources. If you look at the GL Style in the styles section, you will see your data sources are included within the style as sources. If you were using your style with a MapLibre GL JS or MapLibre Native based application, you would use the GL Style URL. If you were using a Leaflet map or another raster-based map, you would use the style’s TileJSON endpoint. In that case, MapLibre Native reads the GL Style in the background and renders it to a raster image. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
my config.json contains one element in the styles section and two elements in the data section. The style is applied in the styles section when I open the browser but not to one of the the two elements in the data section. How can I achieve, that the style is applied to the data elements?
Thanks in advance, the used config.json and myStyle.json are attached.
config.json
myStyle.json
Beta Was this translation helpful? Give feedback.
All reactions