[OpenLayers-Users] Re: Max size KML description content

Peter Peterse peter at peterse-uithuizen.com
Wed May 11 16:54:42 EDT 2011


Hello Rossko and all the rest,

I've cleaned up my KML. No errors anymore in
<http://kmlvalidator.com/validate.htm> with my KML url
<http://osm.peterse-uithuizen.com/~peter/info.kml>

Still FF will only read the first 4096 characters of the description
tag. IE will read all 5566 characters.

I'll hope someone can give me a clue whats going wrong in FF.

Thanks,
Peter

Op 10-5-2011 11:05, Rossko schreef:
>> But if I insert the html tags in the description than the size of the 
>> content will only be bigger.
> You may have missed my point ; your map is displayed in a webpage wrapped in
> <html></html> tags.  It will upset the browser if you invalidly put more
> <html>content</html> tags in the middle of the page ; it is not allowed. 
> Different browsers will get upset in different ways.
>
> Your KML <description> includes <html>content</html>, so when this is
> displayed on your page it wil be invalid.  Results are unpredictable.
>
> Make your <description> into HTML snippets that remain valid when added to
> an existing page ; remove <html>,<head>,<body> tags.
>
> It may or may not fix your problem, but no-one will want to look into your
> problem if you are starting out with garbage data.
>



More information about the Users mailing list