Use other color than blue when CyclOSM default

see also #297
This commit is contained in:
Norbert Renner 2021-03-24 09:16:57 +01:00
parent ccd9fc51cc
commit 127f8e9e5b

View file

@ -194,6 +194,9 @@ BR.LayersConfig = L.Class.extend({
body:
'<table class="overpass-tags">{% for k, v in tags %}{% if k[:5] != "addr:" %}<tr><th>{{ k }}</th><td>{% if k matches "/email/" %}<a href="mailto:{{ v }}">{{ v }}</a>{% elseif v matches "/^http/" %}<a href="{{ v }}">{{ v }}</a>{% elseif v matches "/^www/" %}<a href="http://{{ v }}">{{ v }}</a>{% else %}{{ v }}{% endif %}</td></tr>{% endif %}{% endfor %}</table>',
markerSymbol: null,
style: function (overpassObject) {
return this.defaultBaseLayers?.[0] === 'cyclosm' ? { color: 'darkorange' } : {};
}.bind(this),
},
}),
{