You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`id`| The id of the script tag |`__googleMapsScriptId`|
20
-
|`language`| Force language, see [list of supported languages](https://developers.google.com/maps/faq#languagesupport) specified in the browser | The user's preferred language |
21
-
|`region`| Unicode region subtag identifiers compatible with [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)||
22
-
|`nonce`| Use a cryptographic nonce attribute ||
23
-
|`retries`| The number of script load retries | 3 |
24
-
|`url`| Custom url to load the Google Maps API script |`https://maps.googleapis.com/maps/api/js`|
25
-
|`version`| The release channels or version numbers |`weekly`|
|`id`| The id of the script tag |`__googleMapsScriptId`|
21
+
|`language`| Force language, see [list of supported languages](https://developers.google.com/maps/faq#languagesupport) specified in the browser | The user's preferred language |
22
+
|`region`| Unicode region subtag identifiers compatible with [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)||
23
+
|`nonce`| Use a cryptographic nonce attribute ||
24
+
|`retries`| The number of script load retries | 3 |
25
+
|`url`| Custom url to load the Google Maps API script |`https://maps.googleapis.com/maps/api/js`|
26
+
|`version`| The release channels or version numbers |`weekly`|
27
+
|`libraries`| The additional libraries to load, see [list of supported libraries](https://googlemaps.github.io/js-api-loader/types/Library.html)|`['maps', 'marker']`, those two libraries are always loaded |
26
28
27
29
## Map options
28
30
@@ -78,6 +80,60 @@ $googleOptions = (new GoogleOptions())
78
80
// Add the custom options to the map
79
81
$map->options($googleOptions);
80
82
```
83
+
## Use cases
84
+
85
+
Below are some common or advanced use cases when using a map.
86
+
87
+
### Customize the marker
88
+
89
+
A common use case is to customize the marker. You can listen to the `ux:map:marker:before-create` event to customize the marker before it is created.
0 commit comments