How can I remove GeoXml Layer In map

1,209 views
Skip to first unread message

Raju M

unread,
May 18, 2011, 8:38:20 AM5/18/11
to Google Maps JavaScript API v3
please check this code

var geoXmlLayer;
var doc = [];
function toggleGeoXML(id,checked) {
if (checked) {
geoXmlLayer = new geoXML3.parser({
map: map,
singleInfoWindow: true,
afterParse: useTheData
});
geoXmlLayer.parse("http://localhost:49169/mapv2/readKMLs.ashx?
query=" + id, {map:map});
} else {
geoXmlLayer.hideDocument(geoXml.docs[0]);
}
}

I checkd
geoXmlLayer.setMap(null);
geoXmlLayer.hideDocument(geoXml.docs);
geoXmlLayer.geoXml.setMap(null);


if any one have please send some replay..

geoco...@gmail.com

unread,
May 18, 2011, 9:08:06 AM5/18/11
to Google Maps JavaScript API v3
This doesn't work for you?
http://www.geocodezip.com/geoxml3_test/geoxml3_test.html

-- Larry

Raju M

unread,
May 18, 2011, 9:23:46 AM5/18/11
to Google Maps JavaScript API v3
Thanks mate...
http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js this
script helped me...
before I have one more problem in my one of the KML file. its not
displying very well. but that same file works very well with google
earth. anyway thats for the help

On May 18, 2:08 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
Message has been deleted

Rossko

unread,
May 18, 2011, 10:33:59 AM5/18/11
to Google Maps JavaScript API v3
>         geoXmlLayer.hideDocument(geoXml.docs[0]);

What is 'geoXml'? Did you mean your geoXmlLayer object, that should
have a .docs[0] array property.
I expect your browser error messages should have helped point to this
Reply all
Reply to author
Forward
0 new messages