schlunsen / nuxt-leaflet

Nuxt module for leafletjs - https://schlunsen.github.io/nuxt-leaflet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nuxt-leaflet documentation

vkatsar opened this issue · comments

Your example at the documentation is this one.

<div id="map-wrap" style="height: 100%">
 <no-ssr>
   <l-map :zoom=13 :center="[47.413220, -1.219482]">
     <l-tilelayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></l-tilelayer>
     <l-marker :lat-lng="[47.413220, -1.219482]"></l-marker>
   </l-map>
 </no-ssr>
</div>

Please make a correction to the documentation. The working one is this

<div id="map-wrap" style="height: 100%">
 <no-ssr>
   <l-map :zoom=13 :center="[47.413220, -1.219482]">
     <l-tile-layer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></l-tile-layer>
     <l-marker :lat-lng="[47.413220, -1.219482]"></l-marker>
   </l-map>
 </no-ssr>
</div>

Thanks, fixed