jquery-locationpicker-plugin icon indicating copy to clipboard operation
jquery-locationpicker-plugin copied to clipboard

Changing the radius causes the radius circle to flicker

Open jayfrostjay opened this issue 6 years ago • 1 comments

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 avatar Apr 23 '19 09:04 jayfrostjay

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;

ljluestc avatar Dec 31 '23 21:12 ljluestc