A simple example of what i intend to do is located at my googlepages
http://renatolmsrodrigues.googlepages.com/index.html
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
GEvent.addListener(map, "click", function(overlay, latlng){
alert("hey");
//<a href="index2.html" class="lbOn" >Email This</a><br>
});
}
}
Once again i explain what i want to do. I want to click on the first
map and than open a new window with lightbox and the new map has to be
centered in the coordinates where i clicked in the first map. For
demosntration purposes i put a link saying "email this" that opens the
second window.
I suppose the code has to be in the GEvent.listener function where i
put the alert("hey") and the commented code, but i can't figure out
how to do the rest.
On 13 Out, 00:30, Ralph Ames <[EMAIL PROTECTED]> wrote:
> >The problem is that i open a new window with lightbox with the
> >following command:
> ><a href="email.php" class="lbOn" ">Email This</a>
>
> Can you show us your map?
>
> Ralph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---