kiran kumar
kiran kumar

Reputation: 26

Symbols are not aligned properly with the adjacent features

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. enter image description here

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

Answers (1)

Anatolii Suhanov
Anatolii Suhanov

Reputation: 2702

It should work with line

"layout": {
    "symbol-placement": "line",
    "text-field": 'this is a test',
},

enter image description here

Upvotes: 1

Related Questions