Shortcodes for management of google maps

Superb comes with a handful of google maps shortcodes, that were designed to make the use of google maps in your pages and posts as easy as possible, without the need of working with the google maps api itself. The basic structure of google map shortcode is following:

[gmap]

Supported parameters

  • lat: the latitude of your location, e.g 51.507222
  • lng: the longitude of your location, e.g -0.1275
  • zoom: the level of default zoom, e.g 13
  • type: the type of your map, roadmap, satellite, hybrid or terrain
  • width: the width of your map ( in pixels or % total width), default is 100%
  • height: the height of your map ( in pixels or % total height), default is 300px
  • marker: shows an marker at your location, value can be true or false
  • wheel: Enables/disables mousewheel zooming, value can be true or false
  • scale_control: Enables/disables the default scale control, value can be true or false
  • map_type_control: Enables/disables the default map type control, value can be true or false
  • navigation_control: Enables/disables the default navigation control, value can be true or false
  • street_view_control: Enables/disables the default street view control, value can be true or false
  • Examples of google maps created with shortcodes

    40.719681-74.0045931ROADMAP100%300pxtruetruetruetruetruetrue
    Hi there.
    Get the code
    [gmap type=ROADMAP lat=40.719681 lng=-74.004593 zoom=1] Hi there. [/gmap]

    40.719681-74.0045931SATELLITE100%300pxtruetruetruetruetruetrue
    <br /> Example of description. Neat, right? :)<br />
    Get the code
    [gmap type=satellite lat=40.719681 lng=-74.004593 zoom=5] Example of description. Neat, right? :) [/gmap]

    40.719681-74.0045938HYBRID100%300pxtruetruetruefalsetruetrue
    Get the code
    [gmap type=HYBRID lat=40.719681 lng=-74.004593 zoom=8 map_type_control=false]

    51.507222-0.127513TERRAIN100%300pxtruetruetruetruetruetrue
    Get the code
    [gmap type=TERRAIN]