We have a route editor which allows us to draw routes on the network with a snap function. We can export the route as a KML file and view it in the mapviewer, which worked perfectly. Since the release of the new mapviewer we have encountered a problem with these KML. When importing them to
map.geo.admin.ch we get the error message: "Invalid file, only KML or GPX file are supported". Testing by importing to e.g. Google Earth works fine.
What we found out is that the problem only occurs when you set control points between the start and end points. These points are saved in the file as a placemark with an embedded PNG (encoded in base64) as the icon style. The PNG is just a 1x1 pixel transparent placeholder, but that seems to be the problem.
The placemark for the start and end point has a link to the actual PNG, so there's no problem.
Is it possible to re-enable KML with embedded images, or was this disabled for a reason?
Thanks for your help. Attached is an example of a KML with the embedded image (4843-detour.kml) and one without (4843-way.kml).