bmcbride / leaflet-users-map

Map showing users of the Leaflet mapping library
http://users.leafletjs.com
70 stars 22 forks source link

Added drag functionality; update lat/lng on marker "dragend" event. #5

Open rhewitt22 opened 11 years ago

rhewitt22 commented 11 years ago

After the user clicks "Add me to the map" her or she can add a marker to the map. I've modified the code slightly to allow the user to drag that if it needs to move slightly to a more exact position. The hidden lat/lng text input fields on the marker popup form are automatically updated with the marker's new position.

I'm relatively new to GitHub; this is my first pull request!

bmcbride commented 11 years ago

Nice addition! I'm hoping to update this to the current versions of Leaflet & Bootstrap and do some general cleanup sometime in the near future. I will definitely incorporate this.

bmcbride commented 11 years ago

Not silly at all! I'm still figuring all this stuff out as well and contributions like this are perfect- adding bits of functionality here and there without massive changes to the codebase. Thanks again!

On Tue, Aug 27, 2013 at 1:23 PM, Roy Hewitt notifications@github.comwrote:

As silly as it seems even a small contribution gets me all jacked up!

— Reply to this email directly or view it on GitHubhttps://github.com/bmcbride/leaflet-users-map/pull/5#issuecomment-23354382 .

Bryan R. McBride, GISP bryanmcbride.com