KMLLayer not showing up on map

3,353 views
Skip to first unread message

Lars

unread,
Dec 13, 2010, 4:22:01 AM12/13/10
to kml-support-g...@googlegroups.com

I have an kml-file feeding a map on http://www.posit.se/onmap2.php But no
icons show up (there should be 2). Tried to change name to avoid cache-issues, examined the
kml-syntax, changed the html. Had things working some weeks ago. Added
new pages. Stopped work and can not figure out whats wrong. Any
suggestions is greatly appreciated...


Lars

unread,
Dec 14, 2010, 2:10:51 AM12/14/10
to kml-support-g...@googlegroups.com
after much investigation it seems that swedish chars as ÅÄÖ codet as UTF-8 in name and decription-tags prevent the kml-file from beeing loaded as a layer on the map. I think it shoud as the file-format is stated to be utf-8, CDATA seems to solve this bug(?)

Lars

unread,
Dec 15, 2010, 4:32:56 AM12/15/10
to kml-support-g...@googlegroups.com
strange, got it to work yesterday, today no layers show up on live data http://www.posit.se/onmap.php?cat=1 sometimes when reload the map is resized (korrect) to show the whole of Swden (as there is speedcams allover) the kml-layer is in http://www.posit.se/kml/fartkamera.kml?rev=101215  and the rev is for new cache every day

Lars

unread,
Dec 16, 2010, 8:04:36 AM12/16/10
to kml-support-g...@googlegroups.com
if I use the example (http://code.google.com/intl/sv/apis/maps/documentation/javascript/examples/layer-kml-features.html) and replace with my kml = no icons (infact in IE no map today but it was one yesterday ??, map in Crome)
my page and newyork.kml = icons
 
Is it only my kml that doesn't work?
 

Clubnite

unread,
Dec 20, 2010, 1:20:01 PM12/20/10
to KML Developer Support - Getting Started with KML
Nope! Same issue here. Google Earth shows up but does not draw my
placemarks. kml has been validated too. Dunno if i made a mistake,
forgot something or what else is causing this trouble.

Josh L

unread,
Jan 4, 2011, 1:54:33 PM1/4/11
to KML Developer Support - Getting Started with KML
Hi there,

One easy way to see how your KML will render in Google Maps is to use
the following URL:
http://maps.google.com?q=YOUR_KML

For example, these two maps seem to render correctly for me:
- http://maps.google.com/?q=http://posit.se/kml/gas23.kml
- http://maps.google.com?q=http://www.google.com/url?sa=D&q=http://www.posit.se/kml/fartkamera.kml%3Frev%3D101215

Is it safe to assume you are also able to see these maps? If so, are
they now working everywhere for you?

Cheers,

-Josh
Reply all
Reply to author
Forward
0 new messages