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