Thank you very much!!!! You were right!!! I changed it and it worked!!!
On 11 oct, 22:02, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Oct 11, 6:44 pm, estatio <[EMAIL PROTECTED]> wrote: > > > Ok. Sorry, this is my first time here and I didn't read that. > > > This is the URL I hope you can help me > > >http://www.yv5fih.org.ve/sammet/sammet4.html > > The problem with the overlay map is a problem of scope. Your map > variable is local to the load function. The routines that try to add > the overlay run in the global context. For it to work, remove the > "var" from in front of the map variable in the load function and add a > new var map; declaration just before it. > > This example does what you are trying to > do:http://www.geocodezip.com/Georgia_egroundoverlay.html > > Mike Williams has an explanation of scope in his tutorial: > Part 1 Scopehttp://econym.org.uk/gmap/scope.htm > > -- Larry > > > > > On 11 oct, 18:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On Oct 11, 5:57 pm, estatio <[EMAIL PROTECTED]> wrote: > > > > > I tried this, but It didn't work > > > > Please don't post code to the group. Please post a link to a page that > > > demonstrates the issue you are asking about. > > > > If you have questions why, read the posting > > > guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > > > See the section: "Why post a link". > > > > -- Larry > > > > > On 11 oct, 17:38, estatio <[EMAIL PROTECTED]> wrote: > > > > > > Thanks for your answer. > > > > > > The truth is that I don't have idea how to do it. I just want to > > > > > toggle on and off the following overlay with a checkbox. > > > > > > var boundaries = new GLatLngBounds(new GLatLng(-15.0,-100), > > > > > newGLatLng(15.0,-60.0)); > > > > > omap = new GGroundOverlay("../ds/a.png", boundaries); > > > > > map.addOverlay(omap); > > > > > > On 11 oct, 15:44, Rossko <[EMAIL PROTECTED]> wrote: > > > > > > > It's often pretty useless posting a code snippet. For one example > > > > > > -> ... > > > > > > > alert(obj.cheked) > > > > > > > > if(obj.checked){ > > > > > > > Is that a typo in your code or in your posting?? > > > > > > For another example, we've no idea what objects and functions of > > > > > > yours > > > > > > may or may not be in global scope. > > > > > > Best all round to give a link to your example page. > > > > > > > > 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. > > > > > > > Try searching this group. A recent post > > > > > > -http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6... > > > > > > > cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
