The Google Maps plugin provides the Google Maps Javascript API as shortcode.
Typically a plugin should be installed via GPM (Grav Package Manager):
$ bin/gpm install google-maps
Alternatively it can be installed via the Admin Plugin
There is currently only one main plugin option for Google Maps and that is to set a Google API Key.
enabled: true
google_api_key:
[google-maps width='100%' lat=44.540 lng=-78.546 zoom=13 scrollwheel=true panControl=true iconurl='/absolute/path/to/marker/icon.png']
***My Place***
This is my place
[/google-maps]
width
- map width in px or % | default 600pxheight
- map height in px or % | default 400pxlat
- center of map and marker latitude | default 44.540lng
- center of map and marker longitude | default -78.546zoom
- map zoom | default 8scrollwheel
- if false, disables scrollwheel zooming on the map | default truedraggable
- if false, prevents the map from being dragged | default truepanControl
- the enabled/disabled state of the pan control. | default trueiconurl
- absolute path to a custom marker icon
the optional wrapped content is the infowindow content