Reputation: 26
I have two style layers, one for line and another for symbol. I am trying to align the these features inline but never could so.
I have given the symbols style layer's layout properties as below.
"layout": {
"text-ignore-placement": true,
"text-allow-overlap": true,
"text-pitch-alignment": "map",
"text-rotate": ["*", -1, ["get", "_Rotation"]],
"symbol-placement": "point",
"visibility": "visible",
"text-anchor": "center",
"text-field": "A",
"text-font":["arial"]
}
Tried many things with the properties to get the expected behavior but none are working. Any idea how I can achieve this?
Upvotes: 0
Views: 477
Reputation: 2702
It should work with line
"layout": {
"symbol-placement": "line",
"text-field": 'this is a test',
},
Upvotes: 1