Add map data attribution for OpenStreetMap

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-04-24 14:13:52 +02:00
parent cb39dbf02f
commit fc699f12b1
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -6,7 +6,12 @@
class="leaflet-map" class="leaflet-map"
:center="[lat, lon]" :center="[lat, lon]"
> >
<l-tile-layer url="https://{s}.tile.osm.org/{z}/{x}/{y}.png"></l-tile-layer> <l-tile-layer
url="https://{s}.tile.osm.org/{z}/{x}/{y}.png"
attribution="© OpenStreetMap contributors"
>
</l-tile-layer>
<l-marker :lat-lng="[lat, lon]" > <l-marker :lat-lng="[lat, lon]" >
<l-popup v-if="popup">{{ popup }}</l-popup> <l-popup v-if="popup">{{ popup }}</l-popup>
</l-marker> </l-marker>