Skip to content

Draw circle with static radius? #885

Discussion options

You must be logged in to vote

Use map.pm.Draw.Circle._finishShape(e)

map.on('pm:drawstart', ({ workingLayer }) => {
	workingLayer.on('pm:centerplaced', e => {
		workingLayer.setRadius(500);
   	        map.pm.Draw.Circle._finishShape(e)
	});
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mackiavelly
Comment options

Answer selected by Mackiavelly
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 #883 on April 30, 2021 12:23.