Cant figure out how to include KML file on OSM map
-
Hello,
I cant figure out how to make OSM show a simple KML file on a map. I have tried and tried, but nonthing works ?? If anybody has any good ideas, I am all ears ??Shortcode used (on https://rauhe.dk/tech/test-osm/):
[*osm_map_v3 mwz="true" map_center="56.16,10.297" zoom="8" width="75%" height="600" file_list="../../../../gpx/test.kml"]
[*osm_map_v3 mwz="true" map_center="56.16,10.297" zoom="8" width="75%" height="600" file_list="www.rauhe.dk/tech/gpx/test.kml"]
I have included the KML file as plain text hereunder. Can it be taht the KML is illegal? Is there any debug possibilities that I can try?
Best regards
Johntest.kml
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="https://www.opengis.net/kml/2.2" xmlns:gx="https://www.google.com/kml/ext/2.2" xmlns:kml="https://www.opengis.net/kml/2.2" xmlns:atom="https://www.w3.org/2005/Atom"> <Document> <name>test.kml</name> <Placemark> <name>Unavngivet Sti</name> <LineString> <tessellate>1</tessellate> <coordinates> 10.29022759908175,56.29902312578815,0 10.28755308816991,56.29607969442895,0 10.28483554783912,56.28724045145268,0 10.28210858898522,56.27692720147167,0 10.28201197854737,56.26366350108141,0 10.27392806811671,56.24452442343772,0 10.24193322606117,56.20777609071376,0 10.18090481505593,56.16368017243307,0 10.12268550766468,56.12399231452702,0 10.1147462526348,56.11369304413181,0 10.10152052267823,56.09456861680729,0 10.09887314837733,56.08868414059639,0 10.1120425922345,56.08426029824148,0 10.23583835733552,56.06942908179109,0 10.32802874905865,56.06336621315845,0 10.42022467845955,56.06016747571363,0 10.42813012745278,56.06014257642377,0 10.49661091171465,56.05696438268575,0 10.54664304428878,56.05382648178471,0 10.57036366219704,56.05372773492167,0 10.55744497915448,56.07144348568404,0 10.53926018755178,56.09065185385295,0 10.51324184848333,56.11725143954,0 10.47931772561962,56.14829245729047,0 10.44271330011977,56.1808143120098,0 10.43745971539538,56.18377704836045,0 10.40347945445105,56.2207083307095,0 10.38534342275432,56.25907148726481,0 10.38282690215626,56.27233954585741,0 10.38284149292239,56.27381257801125,0 </coordinates> </LineString> </Placemark> </Document> </kml>
The page I need help with: [log in to see the link]
- The topic ‘Cant figure out how to include KML file on OSM map’ is closed to new replies.