Description

Displays a Google Map for location or event locations.

Usage

em_display_google_map($args)

Parameters

  • $args | array – an array of parameters (optional)
    • width | string – google map width in pixels or percentage. Defaults to 100%
    • height | string – google map height in pixels or percentage. Defaults to 200px
    • zoom | int – google map zoom level, from 0 to 21. Defaults to 15
    • maptype | string – google map type. Defaults to ‘roadmap’
      • roadmap
      • satellite
      • hybrid
      • terrain
    • maptypecontrol | boolean – enable map type change option. Defaults to TRUE
    • zoomcontrol | boolean – enable zoom. Defaults to TRUE
    • streetviewcontrol | boolean – enable zoom. Defaults to TRUE
    • overviewmapcontrol | boolean – enable map thumbnail. Defaults to FALSE
    • pancontrol | boolean – enable pan change. Defaults to FALSE
    • rotatecontrol | boolean – enable map rotation. Defaults to FALSE
    • scalecontrol | boolean – enable scaling. Defaults to FALSE
    • draggable | boolean – enable dragging. Defaults to TRUE
    • keyboardshortcuts | boolean – enable keyboard controls. Defaults to TRUE
    • scrollzoom | boolean – enable scrolling. Defaults to TRUE

Return

Returns a WP_Post object, or NULL on failure.