question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Placing images along line with "symbol-placement": "line"

See original GitHub issue

Is 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:open
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ahocevarcommented, Nov 30, 2022

No, this has not been added (yet).

0reactions
aprinslo1commented, Dec 1, 2022

Do we understand the effort to make the text symbol-placement frequency change. Who do we contact to get an estimate?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found