Open ahgera opened 3 years ago
it is rather about KMZ and not KML. KMZ contains icon inside. But anyway good idea. @vshcherb it could be combine with https://github.com/osmandapp/OsmAnd/issues/11210
Icons I found something like workaround for importing/converting icons from google to osmand https://www.mail-archive.com/osmand@googlegroups.com/msg07817.html polygons Workaround - You can convert polygons using Qgis. It is not ideal but possible. Just add vector layer - choose kml file - then generate XYZ tiles and then you see it in Osmand.
You can also try to convert KML -> OSM (https://wiki.openstreetmap.org/wiki/KML) and then generate vector map OSM -> OBF
about KML -> OSM -> OBF OBF can't be underlay or overlay. Should I generate whole new map for county or region in this case?
Today OBF can't be controlled via underlay / overlay they could be controlled only via rendering style parameters on / off. It's much more powerful than just layers.
Though disadvantage you can't quickly enable / disable 1 obf map. We're going to improve it.
@ahgera maybe you will find this script in python useful. It translates google icons (stored in kmz) to known osmand's icons. https://github.com/mariush444/gmapIcons2osmand
KML is a popular format mainly used in Google Earth, but also in other apps. OsmAnd has limited support for importing KML files, but there are room for improvement. The most important features IMO is rendering paths in the correct style, i.e. the right color and width. But there are other features that are important or nice to have, depending on your use case, like correct icons on placemarks, polygons, and image overlays. If supported a single KML file can contain the planning for a whole trip, like bike routes, hiking trails, POIs of different varieties (water, lodging, food, museums, etc).
I made a test KML file with different features, this is what it looks like in various apps: Google Earth on desktop: Locus Map on Android: And finally, OsmAnd:
If this feature gets implemented, please consider also supporting .kmz which are KML files and other files in a zip archive. This makes them work fully offline, which is the preferred way of bringing maps with you in remote areas.
KML test.zip