Placing images along line with "symbol-placement": "line"
See original GitHub issueIs the layout property “symbol-placement” to place icon images along a line supported? With “symbol-placement” set to line, I only get a symbol placed at the midpoint of the line.
example of my basic “symbol” layer type:
{ "id": "dir", "type": "symbol", "source": "test", "source-layer": "this-layer-to-test", "minzoom": 12, "layout": { "icon-image": "arrow", "icon-rotation-alignment": "map", "symbol-avoid-edges": false, "symbol-spacing": 10, "icon-allow-overlap": false, "icon-size": 0.7, "icon-padding": 2, "icon-rotate": 90, "symbol-placement": "line" }, "interactive": true }
Regards,
Kevin
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
SymbolPlacement
The label is placed along the line of the geometry. Can only be used on LineString and Polygon geometries. LINE("line").
Read more >Symbol placed with line-center doesn't rotate as the map ...
I'm trying to achieve this behaviour only by the layer's definition. I tried looking for a solution, here on SO and on some...
Read more >Mapbox GL JS max-text-width trick with labels with line ...
Any simple solution for this, if the symbol-placement: line , where i cannot use text-max-width ? labeling · mapbox-gl-js.
Read more >Position and place marker symbol layers—ArcGIS Pro
Marker symbol layers are also used in line and polygon symbols, drawn along lines and outlines, at endpoints, or within polygon interiors.
Read more >Add a line layer to iOS maps - Azure
When using a symbol layer, set the symbolPlacement option to .line . This option will render the symbols along the line and rotate...
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
No, this has not been added (yet).
Do we understand the effort to make the text symbol-placement frequency change. Who do we contact to get an estimate?