Skip to content

Is it possible to setRotationCenter on the initialization of a shape? #1453

Discussion options

You must be logged in to vote

1 - Is there a way to set the rotation center when the shape is being created? If not, is this an option that could be added to available options when creating a shape?

if you creating the shape with pmIgnore: true or OptIn then the layer will not get the pm property. This also means that the can't be rotate too. So I don't really understand how you rotate a layer if it has not the pm property of Geoman.

2 - What is currently the most 'correct' way to dynamically set a geoman item to { pmIgnore: true }? I know I can use L.PM.optin to go from true to false. But what about false to true?

Just update the options of a layer layer.options.pmIgnore = true

I do not understand your workflow b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Falke-Design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1449 on February 09, 2024 16:23.