Shortcode API reference

If you only want to use shortcodes to add maps to your site without editing and saving them to database first, you can use the default shortcode with following parameters (please remove space after [ and before ]): [ mapsmarker lat=”48.216038″ lon=”16.378984″ popuptext=”enter popuptext here” basemap=”mapquest_osm” zoom=”16″ openpopup=”1″ mapwidth=”450″ mapwidthunit=”px” mapheight=”400″ ]

Pro v1.6 and above also allows you to overwrite parameters of existing maps (saved in your database) directly within the shortcode, examples:

  • you created a marker map ID 1 with height=400 and width=200. You can now add this map to a post by using [ mapsmarker marker=”1″% ]. If you want to change the height on-the-fly to 500 without changing the height in the database, add the shortcode [ mapsmarker marker=”1″ height=”500″]
  • display the layer map ID 1 without clustering: [ mapsmarker layer=”1″ clustering=”0″ ]
  • add the layer map ID 2 without list of markers below the map: [ mapsmarker layer=”2″ listmarkers=”0″ ]
  • change the paneltext of marker map ID 2: [ mapsmarker marker=”2″ paneltext=”new paneltext” ]

Below a list of all available shortcode parameters (only available in Maps Marker Pro):

NameValid forPossible valuesDefault valueRemark
NameValid forPossible valuesDefault valueRemark
markernamemarker maps+markers added directlyany charactersNULL
basemapmarker+layer maps+markers added directlyosm_mapnik
mapquest_osm
mapquest_aerial
googleLayer_roadmap
googleLayer_satellite
googleLayer_hybrid
googleLayer_terrain
bingaerial
bingaerialwithlabels
bingroad
ogdwien_basemap
ogdwien_satellite
mapbox
mapbox2
mapbox3
custom_basemap
custom_basemap2
custom_basemap3
see settings / default values
latmarker+markers added directlyfloatval (e.g. 18.44)must not be null!required for markers added directly, optional for marker maps; for layercenter use layerviewlat
lonmarker+markers added directlyfloatval (e.g. 18.44)must not be null!required for markers added directly, optional for marker maps for overwrites, for layercenter use layerviewlon
iconmarker+markers added directlyname of icon file located in marker icon directory (e.g. car.png)see settings / default valuesif empty, default icon is used
popuptextmarker maps+markers added directlyany charactersNULL
zoommarker maps+markers added directlyinteger 1-21see settings / default valuesrequired for markers added directly, optional for marker maps for overwrites, for layerzoom use layerzoom
openpopupmarker maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
mapwidthmarker+layer maps+markers added directlyintegersee settings / default values
mapwidthunitmarker+layer maps+markers added directlypx
%
see settings / default values
mapheightmarker+layer maps+markers added directlyintegersee settings / default values
panelmarker+layer maps0 (=hide)
1 (=display)
see settings / default valuesnot supported for markers added directly!
paneltextmarker+layer mapsany charactermarkername respectively layername
createdbymarker+layer maps+markers added directlyany charactersmap creator
createdonmarker+layer maps+markers added directlytimestamptimestamp when map was created
updatedbymarker+layer maps+markers added directlyany charactersmap updater
updatedonmarker+layer maps+markers added directlytimestamptimestamp when map was updated
controlboxmarker+layer maps+markers added directly0 (= hidden)
1 (= collapsed)
2 (= expanded)
see settings / default values
overlays_custommarker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
overlays_custom2marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
overlays_custom3marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
overlays_custom4marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wmsmarker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms2marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms3marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms4marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms5marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms6marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms7marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms8marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms9marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
wms10marker+layer maps+markers added directly0 (=hide)
1 (=display)
see settings / default values
kml_timestampmarker maps+markers added directlytimestampNULL
addressmarker+layer maps+markers added directlyany characterNULLoverwritting address DOES not change geocoding! lat+lon values have to be changed instead!
gpx_urlmarker+layer maps+markers added directlyany valid url (beginning with http://)NULL
gpx_panelmarker+layer maps+markers added directly0 (=hide)
1 (=display)
0
layerzoomlayer mapsinteger 1-21must not be null
layerviewlatlayer mapsfloatval (e.g. 18.44)must not be nulloptional for layer maps for overwrites
layerviewlonlayer mapsfloatval (e.g. 18.44)must not be nulloptional for layer maps for overwrites
listmarkerslayer maps0 (=hide)
1 (=show)
1
multi_layer_maplayer maps0 (=false)
1 (=true)
0
multi_layer_map_listlayer mapscomma separated list of integers (e.g. 1,2,3) or all for showing all markersNULL
clusteringlayer maps0 (=disabled)
1 (=enabled)
1