Skip to content

Warpsmith/wp-pronamic-google-maps

 
 

Repository files navigation

This plugin makes it easy to add Google Maps to your WordPress post, pages or other custom post types.

Shortcode - [googlemaps] [googlemapsmashup]

Attributes

width

Type: int|string
Default: WordPress default embed width

height

Type: int|string
Default: WordPress default embed height

marker_options

Type: array|json
Default: array()

map_options

Type: array|json
Default: array()

new_design

Type: boolean
Default: false

Shortcode - [googlemaps]

Attributes

static

Type: boolean
Default: false

label

Type: char
Default: null

color

Type: string
Default: null

Shortcode - [googlemapsmashup]

Attributes

query

Type: string
Default: null

map_type_id

Type: string
Default: roadmap

Map style, can be: roadmap, satellite, hybrid, terrain.

latitude

Type: float
Default: 0

Latitude value for the map center, only works if fit_bounds is set to false.

longitude

Type: float
Default: 0

Longitude value for the map center, only works if fit_bounds is set to false.

zoom

Type: int
Default: 8

fit_bounds

Type: boolean
Default: true

marker_clusterer_options

Type: string|array
Default: array

For all cluster marker options see the MarkerClustererOptions section on the MarkerClustererPlus documentation page.

Example: maxZoom=15&gridSize=30

Function - pronamic_google_maps()

Parameters

width

Type: int|string
Default: WordPress default embed width

height

Type: int|string
Default: WordPress default embed height

static

Type: boolean
Default: false

label

Type: string
Default: null

The label parameter is only available for Static Maps, for more information see the Marker Styles section of the Static Maps documentation page.

color

Type: string
Default: null

echo

Type: boolean
Default: true

marker_options

Type: array
Default: array()

For all marker options see the MarkerOptions section on the Google Maps JavaScript API documentation page.

map_options

Type: array
Default: array()

For all map options see the MapOptions section on the Google Maps JavaScript API documentation page.

About

This plugin makes it easy to add Google Maps to your WordPress post, pages or other custom post types.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 71.5%
  • JavaScript 28.1%
  • CSS 0.4%