Hello Guys,
I am making a simple web map application using google api through javascript housed in a HTMLViewer. The pin locator is draggable. I already created an event listener but I don’t know how to update the coordinate boxes on top after the marker is dragged.
The code should be on the lines where I commented them.
xMap = xMap + "google.maps.event.addListener(vMarker, 'dragend', function (evt) {"
//xMap = xMap + "document.getElementById('" + TextFieldLat.ControlID + "').Val(evt.latLng.lat().toFixed(6));"
//xMap = xMap + "document.getElementById('" + TextFieldLong.ControlID + "').Val(evt.latLng.lat().toFixed(6));"
xMap = xMap + "map.panTo(evt.latLng);"
xMap = xMap + "});"
Links to past sample projects in this forum are all dead so I cannot find a a good guide. The WebSDK is a bit heavy for me now although I am eager to learn it in the near future.
I am attaching mine but you cannot run this from the get go as it needs your own google API key. If you have, please, enter yours in mobContainerMap APIKey property default value. Thank you so much.
https://drive.google.com/file/d/15z-ciXesPTwRC3RsuKU0DjMoluKdkg8m/view?usp=sharing