<!-- 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>
Name |
Description |
Payload |
@onLoad |
On map ready |
```
{
...,
detail: {
zoom: Number,
topRight: { lat: Coordinate, lng: Coordinate },
bottomLeft: { lat: Coordinate, lng: Coordinate },
},
}
```
|
@onZoomEnd |
On zooming finished |
```
{
...,
detail: {
zoom: Number,
topRight: { lat: Coordinate, lng: Coordinate },
bottomLeft: { lat: Coordinate, lng: Coordinate },
},
}
```
|
@onDragEnd |
On dragging finished |
```
{
...,
detail: {
zoom: Number,
topRight: { lat: Coordinate, lng: Coordinate },
bottomLeft: { lat: Coordinate, lng: Coordinate },
},
}
```
|