[google_maps]
With this shortcode you can insert Google Maps into the contents of your pages.
For example:
[google_maps latitude="40.777203" longitude="-73.961475" zoom="17" marker="true" info="My Info" /]
Attributes: | |
---|---|
width | The width of the map, in pixels. |
height | The height of the map, in pixels. |
type | The type of the map. (ROADMAP | SATELLITE | HYBRID | TERRAIN) |
address | The address to show in map. |
latitude | The north-south location's coordinate. (This parameter has effect only if the address is not set) |
longitude | The east-west location's coordinate. (This parameter has effect only if the address is not set) |
zoom | The initial resolution at which to display the map (0 - 20). |
info | The information to show, when the user clicks on the marker. If you want to display more complex content, use the [marker_info] shortcode within the [google_maps] shortcode. |
marker | Specifies whether to identify the specified locations on the map with the standard icon, or not. (true | false) |
pancontrol | Specifies whether to show the pan control, or not (true | false). |
zoomcontrol | Specifies whether to show the zoom control, or not (true | false). |
maptypecontrol | Specifies whether to show the 'Map Type' control, or not (true | false). |
scalecontrol | Specifies whether to show the scale control, or not (true | false). |
showinfooninit | Specifies whether the marker should be shown initially or not (true | false). Default is false. |
streetviewcontrol | Specifies whether to show the 'Street View' control, or not (true | false). |
overviewmapcontrol | Specifies whether to show the 'Overview Map' control, or not (true | false). |
[google_maps]
shortcode:
[marker_info]
You can embed a [marker_info] shortcode within the [google_maps] shortcode to display more complex content within the marker's bubble.
Example:
[google_maps latitude="40.777203" longitude="-73.961475" zoom="17" marker="true"]
[marker_info]Any HTML content[/marker_info]
[/google_maps]
[styles]
This shortcode allows you to specify your google map styles in JSON format (more)
Example:
[google_maps latitude="40.777203" longitude="-73.961475" zoom="17" marker="true"]
[styles]
[
{
featureType: "administrative",
elementType: "all",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "landscape.natural",
elementType: "all",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "poi",
elementType: "all",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "road",
elementType: "all",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "transit",
elementType: "all",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "water",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
]
[/styles]
[/google_maps]