Skip to content

PathLayer style doesn't change #1123

Answered by moiatto
moiatto asked this question in Q&A
May 11, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

For those who have the same problem as me, this is the solution:

PathLayer newPathLayer = new PathLayer(map, newStyle));
newPathLayer.setPoints(pathLayer.getPoints());
map.layers().set(map.layers().indexOf(pathLayer), newPathLayer);

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@moiatto
Comment options

@moiatto
Comment options

Answer selected by moiatto
Comment options

You must be logged in to vote
2 replies
@devemux86
Comment options

@moiatto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants