thomersch / scapegoat

0 stars 0 forks source link

Open issue for legend for sources/world/OpenStreetMap-GPS.geojson html in iD - hardcode it in iD? #2

Open grischard opened 4 years ago

grischard commented 4 years ago

The GPS traces layer's attribution uses a hack to display a legend:

"html": "<span style='display: inline-block; padding: 0 8px; background-color: rgba(0,0,0,0.5);'><span style='color: #eee;'>GPS Direction:</span> <span style='font-size: 15px; padding-left: 2px; font-weight: bold;'> <span style='color: #0ee;'>&larr;</span> <span style='color: #96f;'>&darr;</span> <span style='color: #6e0;'>&uarr;</span> <span style='color: #f63;'>&rarr;</span> </span></span> \u00a9 <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>."

It's the only layer that uses the 'html' attribution. JOSM doesn't have html attributions:

https://josm.openstreetmap.de/wiki/Maps/Worldwide#OpenStreetMapGPSTraces

We should instead ask iD to hardcode this if the layer id is "osm-gps" or the url contains "gps-tile.openstreetmap.org" or something like that.

Another hack could be to use an icon? It might get shrunk into unreadability.