validation - IconStyle defintion not accepted by KML validator -
validation - IconStyle defintion not accepted by KML validator -
i have kml file used display correctly in both google maps , google earth. google maps rejects file, while earth still accepts , displays content. here file:
http://www.skiforeningen.no/marka/kml/milorg.kml
the galdos validator @ http://www.kmlvalidator.com/ indicates next error on line 19:
cvc-complex-type.2.4.a: invalid content found starting element 'iconstyle'. 1 of '{"http://www.opengis.net/kml/2.2":polystyle, "http://www.opengis.net/kml/2.2":balloonstyle, "http://www.opengis.net/kml/2.2":liststyle, "http://www.opengis.net/kml/2.2":stylesimpleextensiongroup, "http://www.opengis.net/kml/2.2":styleobjectextensiongroup}' expected.
but when reading documentation at
https://developers.google.com/kml/documentation/kmlreference#style
i can't see why iconstyle not allowed her? also, validator @ http://feedvalidator.org/ validates file no errors , says valid kml 2.2 feed.
any help highly appreciated, thanks.
http://feedvalidator.org/ says kml valid.
kml content isn't available in google maps anymore.
from link above:
while using google maps, might have received notification saying "some custom on-map content not displayed."
that’s because type of content isn’t available anymore in classic version of google maps or in maps embedded on other websites classic version of maps. content type that’s no longer available kml, file format google earth uses exchange of geographic information.
if you're owner of custom map kml content, need update content. or, can import kml content maps.
one workaround: works google maps javascript api v3 kmllayer
validation kml
Comments
Post a Comment