Hi,
I have three county and I want to put county boudries and its name in
google map.
My problem is county boudries shows perfectly but label is only shows
for third county name.Tow county label disapear.
I know I am doing some wrong inside code but know know fix.It would be
great if some one put some focus.
Here is my code.
var county=new Array(3);
county[0]="Adams_IL";
county[1]="Cook_IL";
county[2]="Lake_IL";
for(var i=0;i<county.length;i++){
var name=county[i].split("_");
var geoXml = new GGeoXml("http://mysitename/"+county[i]
+".kml", function() {
if (geoXml.loadedCorrectly()) {
geoXml.gotoDefaultViewport(map);
var label = new ELabel(geoXml.getDefaultCenter(),name
[0], "style1");
map.addOverlay(label); }
});
map.addOverlay(geoXml);
}
Could you please let meknow how to pass county name[0] in funtion so
that I can palce all three county name on middle of county boudry.
-In ablove code only 'Lake' lable shows and rest of two disapper or
may be overlapping.
-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
-~----------~----~----~----~------~----~------~--~---