Hi.
I'm having a couple of simple problems, but I don't really know how to
solve them. I've searched the possible solutions, but I haven't found
and answer. Here are my question (sorry if this is too simple!!)
First, I want to toggle on/off overlay maps with a checkbox. This is
what I'm trying to do, but maybe it's totally wrong:
// ground overlay
var boundaries = new GLatLngBounds(new GLatLng(-15.0,-100),
newGLatLng(15.0,-60.0));
omap = new GGroundOverlay("../descargas/a.png", boundaries);
function UpdateMap(obj){
alert(obj.cheked)
if(obj.checked){
map.addOverlay(omap);
}
else {
map.removeOverlay(omap);
}
}
<input type="checkbox" onclick="UpdateMap(this)" style="position:
absolute; left: 920px; top: 220px;">
The other question is about getting the latitude and longitude of one
point in the map. I just want to click the map and assign the latitude
to variable and the longitude to another variable. I've tried using
the function .getLatLng() without success.
I'd really appreciated your help, as you can see I'm just learning how
to use google maps api.
Sorry for bothering you. Thanks!!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---