polyBoom, These messages might be relevant:
http://groups.google.com/group/simile-widgets/search?group=simile-widgets&q=mapConstructor&qt_g=Search+this+group David polyBoom wrote: > Hello Friends and Developers, > > first i want to congrat you guys for this outstanding framework. I am > new to exhibit and maybe u guys can help me out with a little > problem / question: > > I wonder if it is possible to get the LAT/LON of a mouseclick on the > googlemap. > > There already exists already a little script for the "normal" google- > map: > > ----------------------- > <script type="text/javascript"> > //<![CDATA[ > > var map = new GMap(document.getElementById("Map")); > map.centerAndZoom(new GPoint(50.257771,10.966031), 14); > > var point = new GPoint(50.257771,10.966031); > var marker = new GMarker(point); > map.addOverlay(marker); > > GEvent.addListener(map, 'click', function(overlay, point) { > > if (overlay) { > map.removeOverlay(overlay); > > } else if (point) { > > map.recenterOrPanToLatLng(point); > var marker = new GMarker(point); > map.addOverlay(marker); > //var message = "<HTML><HEAD></HEAD><BODY><FORM><b>Lat</b>: > <INPUT TYPE='TEXT' SIZE='12' ID='latbox' VALUE=''><b>Lon</b>:<INPUT > TYPE='TEXT' ID='lonbox' SIZE='12' VALUE=''></FORM><br><br><br><br></ > BODY></HTML>"; > // marker.openInfoWindowHtml(message); > > } > > }); > > // Recenter Map and add Coords by clicking the map > GEvent.addListener(map, 'click', function(overlay, point) { > document.getElementById("latbox").value=point.y; > document.getElementById("lonbox").value=point.x; > }); > //]]> > </script> > <table> > <FORM><TR><TD ALIGN="left"> Lat: </TD><TD><INPUT SIZE=13 TYPE="TEXT" > ID="latbox" NAME="lat" value="" ></TD></TR> > <TR><TD ALIGN="left">Lon: </TD><TD><INPUT SIZE=13 TYPE="TEXT" > ID="lonbox" NAME="lon" value="" ></TD></TR> > <TR><TD ALIGN="left"></TD><TD> Click map to get coordinates</TD></TR> > > </TABLE> > </FORM> > ----------------------- > > I would be very happy if this would be possible. > > Thank you for reading (; > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
