Draggable Marker Google Maps Demo August 30
So you’ve been checking out my previous posts on Google Maps and Draggable Markers, and it would be nice to have a demo so you can see the draggable markers in action.
Check this out:
And the code as well? Here is the source for the Google Maps Demo
');
If you liked this, then subscribe to my RSS feed
Jim Dec 16
Hi,
Your Draggable Marker Google Maps Demo is almost perfect. You NEED to include zoom scale slider to make it more user friendly.
Seriously, if that were included, you could set this up as a separate web page and sell advertising. Lots of people would use it because I’ve been searching all over for a Google map with that feature and it simply can’t be found.
Thanks,
J.B.
Jorre Jul 6
Great piece of code! But, I’m getting errors because my lat/lon values are displayed with a comma in my text boxes. Do you know why they are displayed with a ‘.’ in yours?
Nick Bird Jul 22
Just a quick note … if this is used inside a master page you need to change the field names for the hidden fields. This is because the Master Page renames the fields like this:
So the code that reads the hidden fields needs to be changed as follows:
GMap.addListener(New Subgurim.Controles.GListener(oMarker.ID, Subgurim.Controles.GListener.Event.dragend, _
“function(){ document.getElementById(’ctl00$ContentPlaceHolder1$hidLat’).value=” & oMarker.ID & “.getPoint().lat();document.getElementById(’ctl00$ContentPlaceHolder1$hidLng’).value=” & oMarker.ID & “.getPoint().lng() }”))
This bugged me for ages!!
Good work