Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the radius causes the radius circle to flicker #147

Open
jayfrostjay opened this issue Apr 23, 2019 · 1 comment
Open

Changing the radius causes the radius circle to flicker #147

jayfrostjay opened this issue Apr 23, 2019 · 1 comment

Comments

@jayfrostjay
Copy link

jayfrostjay commented Apr 23, 2019

let _pickerContext = mapsElement.data("locationpicker");
_pickerContext.radius = {MarkerNewRadius};
_pickerContext.map.radius = {MarkerNewRadius};
_pickerContext.settings.radius = {MarkerNewRadius};

The above code is the way i change the radius of the marker.

@jayfrostjay jayfrostjay changed the title Changing the radius causes the radius circle to blink Changing the radius causes the radius circle to flicker Apr 23, 2019
@ljluestc
Copy link

let _pickerContext = mapsElement.data("locationpicker");

// Assuming MarkerNewRadius is the new radius value you want to set
let newRadius = MarkerNewRadius;

// Set the radius for the marker
_pickerContext.radius = newRadius;

// Update the map to reflect the new radius
_pickerContext.updateMap();

// Update the settings with the new radius
_pickerContext.settings.radius = newRadius;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants