Glodenox / wme-om

Waze Map Editor - Open Maps userscript
GNU General Public License v2.0
8 stars 7 forks source link

Automatically apply new default map layers on update #102

Open Glodenox opened 2 years ago

Glodenox commented 2 years ago

There are some aerial imagery sources that do not have a "latest map" layer available. For those, I tend to add new layers to the corresponding map, but any existing maps will not automatically apply these new defaults. It would be best to copy over the default values whenever a map gets updated.

Possible approaches:

Glodenox commented 3 months ago

Alternative approach variant of option 1: adjust the visible map layer if it was the default one and another has now become the default one. It would require storing some sort of indication that the map layer configuration has remained untouched though.

Options 2 and 3 wouldn't have sufficient information to decide on what to do.

Either way, the logic is being changed that if no old map layers exist, a fresh map with the new default layers will be created, instead of the current logic where all new layers are added, but not made visible. The current logic almost always requires the removal and addition of the map layer again, as configuring the layers yourself is just annoying.