0.2.10 • Published 8 years ago
@custom-element/leaflet v0.2.10
Leaflet Map
Leaflet map implementation in the simplest and the most convenient way.
Examples
Installation
Just add the following script(< 2kb gzipped/polyfill in it) to your website. It will add CSS only once if required.
<script defer src="https://unpkg.com/@custom-element/leaflet"></script>
For npm users
$ npm install @custom-element/leaflet
import '@custom-element/leaflet'; // import and use it
Example
<a-leaflet center="Brampton, Canada">
<a-marker latlng="Brampton, Canada" on-click="openPopup"></a-marker>
</a-leaflet>