Hello.
I have strange problem.
I have map with to controls:
control #1 - it calls the following function on click:
map.clearOverlays();
control #2 calls another function:
function() {
var poly=new GPolygon([map.getCenter()], "#0000ff", 2, 1, "#0000ff",
0.4);
poly.enableDrawing();
map.addOverlay(poly);
}
If I click control 1 and then click control 2 I get a bug - a polygon
is not added to the map. I've discovered that it occurs on line "
poly.enableDrawing(); "
What is the problem?
The error is "Error: a is null
Source: http://maps.google.com/intl/ru_ALL/mapfiles/143c/maps2.api/main.js
Line: 187"
Thank you
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---