|
|
@ -27,11 +27,11 @@ or |
|
|
|
|
|
|
|
|
|
|
|
`yarn add @googlemaps/markerwithlabel` |
|
|
|
`yarn add @googlemaps/markerwithlabel` |
|
|
|
|
|
|
|
|
|
|
|
Alternativly you may add the umd package directly to the html document using the unpkg link. |
|
|
|
Alternatively you may add the umd package directly to the html document using the unpkg link. |
|
|
|
|
|
|
|
|
|
|
|
`<script src="https://unpkg.com/@googlemaps/markerwithlabel/dist/index.min.js"></script>` |
|
|
|
`<script src="https://unpkg.com/@googlemaps/markerwithlabel/dist/index.min.js"></script>` |
|
|
|
|
|
|
|
|
|
|
|
When adding via unpkg, the marker with labels can be accessed at `MarkerWithLabel`. |
|
|
|
When adding via unpkg, the marker with labels can be accessed at `new markerWithLabel.MarkerWithLabel()`. |
|
|
|
|
|
|
|
|
|
|
|
A version can be specified by using `https://unpkg.com/@googlemaps/markerwithlabel@VERSION/dist/...`. |
|
|
|
A version can be specified by using `https://unpkg.com/@googlemaps/markerwithlabel@VERSION/dist/...`. |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,8 @@ The reference documentation can be found at this [link](https://googlemaps.githu |
|
|
|
## Example |
|
|
|
## Example |
|
|
|
|
|
|
|
|
|
|
|
```js |
|
|
|
```js |
|
|
|
|
|
|
|
import { MarkerWithLabel } from '@googlemaps/markerwithlabel'; |
|
|
|
|
|
|
|
|
|
|
|
new MarkerWithLabel({ |
|
|
|
new MarkerWithLabel({ |
|
|
|
position: new google.maps.LatLng(49.475, -123.84), |
|
|
|
position: new google.maps.LatLng(49.475, -123.84), |
|
|
|
clickable: true, |
|
|
|
clickable: true, |
|
|
|