umap icon indicating copy to clipboard operation
umap copied to clipboard

Google My Maps to uMap

Open Luen opened this issue 7 years ago • 4 comments

I'm currently in the process of changing from Google My Maps to uMap. When importing from MyMaps (KML file export) the layers and icons are not coming across. Also hidden layers are visible.
Here's an example of a map I've exported and imported into uMap. https://drive.google.com/open?id=1COxEDptfz4uNU3v0BK4UqCACj7Q&usp=sharing

Is this something that will be supported in the future?

Luen avatar Nov 12 '18 02:11 Luen

uMap uses https://github.com/mapbox/togeojson/ to convert KML, so we more or less do what this lib can do. I'll have a look anyway to see what we can do to make this import smoother.

yohanboniface avatar Nov 12 '18 08:11 yohanboniface

@yohanboniface Thank you.

Luen avatar Nov 12 '18 22:11 Luen

I had a look into the output of Google My Maps (GMM) and at least for the layers, it would be necessary to consider the <folder> tags which are not supported by togeojson: https://github.com/mapbox/togeojson/issues/64

For the icons, GMM chooses the style ids in such a way that color and shape can be extracted from it: The id format is icon-<shape_id>-<hexcolor>-labelson. Of course, not all icons in GMM can be expected to have corresponding icons in umap - especially because the set of available icons can differ from instance to instance. We could host a reference collection of icons corresponding to the GMM icons somewhere and link to them via the icon URL feature of umap.

Actually, if you are a developer and you are interested in this issue, I would suggest writing a standalone conversion tool from GMM output to the umap json format. This will already be extremely useful in itself. Moreover, once we have this it should be doable to integrate similar functionality into umap.

tuxor1337 avatar Feb 28 '19 09:02 tuxor1337

I had a similar problem importing a .kml that came from GAFAM MyMaps into Umap and the description wasn't well imported... ex:

in umap it got imported as: [object Object]

(see screnshot) imagen

numeropi avatar Dec 19 '23 16:12 numeropi