> let alone the assignment to a new GMap2 object.
>
> When you attempt to add a listener to map, it has never heard of it.
>
> Copy the Javascript from rt3.js and put it just above the last } in
> function initial. Then remove the <script> tag which loads rt3.js.
I tried like this:
==================================================================================
setTimeout("chk()",100);
function chk()
{
if(map.isLoaded()==true)
{GEvent.addListener(map,"click",function(overlay,latlng)
{var marker=new
GMarker(this.latlng,{dragable:true});
map.addOverlay(marker);});}
}
================================================================================
when I click ,report error:lat is null
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---