Leaflet + Mapquest - move a polygon on map

4 posts / 0 new
Last post
vasavi
Leaflet + Mapquest - move a polygon on map

Hi,

I am using leaflet and mapquest to draw polygons

with inclusion of var duh; i am able to move a rectangle to a different position clicking its center

How do i move a polygon on the map? 

What is Duh, does it come with mapquest?


MQBrianCoakley
The MapQuest plugins include
The MapQuest plugins include tiles along with helper functions for the geocode, directions, and traffic apis. All polygon overlay functionality is handled by Leaflet.   I've used the variable name duh in many samples locally but that name should not have gone out in any samples I've posted (I wouldn't be too surprised if I have by accident). So I'm not sure where the var duh came from.

vasavi
Got it! Thanks for info

Got it! Thanks for info

duh is used in this example https://developer.mapquest.com/sites/default/files/mapquest/demos/DrawEx...


MQBrianCoakley
Ah yes, duh the dummy
Ah yes, duh the dummy variable for troubleshooting. I did leave that in there - sloppy code.