@ppci/google-maps
v1.2.2
Published
Map component based on google maps api
Downloads
8
Readme
Google Maps
Map component based on google maps api
Table of contents
Installation
NPM
npm i @ppci/google-maps
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/google-maps';
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/google-maps/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/google-maps/builds/legacy.min.js" />
<!-- Component -->
<google-maps
apiKey=${String}
.pins=${Array}
@onLoad=${Function}
@onZoomEnd=${Function}
@onDragEnd=${Function}
></google-maps>