diff --git a/docs/src/components/map.md b/docs/src/components/map.md index 08cc3cc..45992f7 100644 --- a/docs/src/components/map.md +++ b/docs/src/components/map.md @@ -13,7 +13,7 @@ You can create a Google Map component using `GMapMap`: ``` -Example on [stackblitz](https://stackblitz.com/edit/vue-google-maps-basic-example) +Example on [Playcode](https://playcode.io/1041241) ## Styling your Google Maps component @@ -22,15 +22,16 @@ You can generate custom map styles at [https://mapstyle.withgoogle.com/](https:/ You can provide custom styles by providing `style` property to the `options` prop: ```html + + - - ``` -Example on [stackblitz](https://stackblitz.com/edit/vue-google-maps-marker-ssnfbn?file=src/components/ComponentWithMap.vue) +Example on [Playcode](https://playcode.io/1041245) ### Cloud-based styles with Map ID diff --git a/docs/src/examples/how-to-access-google-maps-object.md b/docs/src/examples/how-to-access-google-maps-object.md index 98028c4..404f9de 100644 --- a/docs/src/examples/how-to-access-google-maps-object.md +++ b/docs/src/examples/how-to-access-google-maps-object.md @@ -1,21 +1,26 @@ # How to access Google Maps object -[Interactive example on CodeSandbox](https://stackblitz.com/edit/vue-google-maps-marker-khyhfk?file=src/components/ComponentWithMap.vue) +[Interactive example on Playcode](https://playcode.io/1041251) To access Google maps object, or do something when map is loaded, use a ref on the `GMapMap` object. ## Example ```html + + - - - - ``` diff --git a/docs/src/examples/how-to-add-custom-controls.md b/docs/src/examples/how-to-add-custom-controls.md index ba0f319..a237e46 100644 --- a/docs/src/examples/how-to-add-custom-controls.md +++ b/docs/src/examples/how-to-add-custom-controls.md @@ -1,6 +1,6 @@ # How to add custom controls -[Interactive example on CodeSandbox](https://stackblitz.com/edit/vue-google-maps-marker-ry3zf7?file=src/components/ComponentWithMap.vue) +[Interactive example on Playcode](https://playcode.io/1041257) To add custom controls, you can access google maps object and add controls to it, look at this example or follow the interactive example on CodeSandbox above. @@ -92,10 +92,4 @@ To add custom controls, you can access google maps object and add controls to it }, } - - ``` diff --git a/docs/src/examples/how-to-open-or-close-info-window-on-event.md b/docs/src/examples/how-to-open-or-close-info-window-on-event.md index 94dd9c3..3c755ec 100644 --- a/docs/src/examples/how-to-open-or-close-info-window-on-event.md +++ b/docs/src/examples/how-to-open-or-close-info-window-on-event.md @@ -1,12 +1,39 @@ # How to open or close an info window on event -[Interactive example on CodeSandbox](https://stackblitz.com/edit/vue-google-maps-marker-w4hxvd?file=src/components/ComponentWithMap.vue). +[Interactive example on Playcode](https://playcode.io/1041264). To open or close info windows after marker click, you can modify the `:opened` prop and maintain a state variable containing ID of the opened marker. ```html + + - - -