Configuring source, source-layer and filter propertites
See original GitHub issueHi there,
I can’t tell from the examples / documentation if your component supports a tileSet configured like this using the Mapbox GL JS library directly:
map.addLayer({
"id": "my-id",
"type": "fill",
"source": "myMapboxHostedTileSetSource",
"source-layer": "victoriaAustralia",
"layout": {},
"paint": {
"fill-color": "#81D8D0",
"fill-opacity": 0.5
},
"filter": ["==", "sub_region", "Gippsland"]
});
I’m specifically asking about setting the source, source-layer and filter properties. If this is possible could you provide an example and/or clarify in the documentation.
Thanks Charlie
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Set layer properties—ArcGIS Online Help | Documentation
The Properties pane in Map Viewer provides information about the layers in your map as well as quick access to several layer configuration...
Read more >source layer | Help - Mapbox docs
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers. A source...
Read more >ArcGIS Pro Layer Properties configure and change ... - YouTube
Learn how to configure and set your layer properties on ArcGIS Pro. To Learn more.. Join ArcGIS Professional Package now for 15% discount...
Read more >Layers and sources | VueMapbox
For example, if you change content of filter prop in GeojsonLayer, changes will be automatically applied to layer on the map. Not all...
Read more >Filter widget—ArcGIS Experience Builder
Settings · New filter—Create a filter by selecting a data source and adding expressions. The Create new filter panel that opens includes the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @alex3165. Thanks. Very much appreciated.
I would say that I’ll test it tonight, but I’m a bit stuck. I don’t quite get how I define my source. E.g the equivalent of this:
The bit that most matters here is the URL. And I don’t see where / how I define that with your library. Could you show me an example. Thanks kindly
Ok well i would suggest you to have multiple geojson files for every sub-regions of Victoria, I have just added the possibility to update the style property of the map, i would do something like this :
React-mapbox-gl API of the layer functionality is more adapted for creating layers and sources that require user interactions.