'

Mapper Shortcodes

The Mapper that is built into this plugin can lookup an address or display a map. The map functionality is called directly by I-Groups code. The lookup function can be performed by a shortcode or it can be executed by do_shortcode(‘mkp_mapper’…).

mkp_mapper shortcodes

Output:

MKP Mapper Shortcodes:
All modifiers must precede actions they modify.
  • Shortcode display codes:
    • show_base_codes = bool, modifier: Include mkp_base shortcodes when showing shortcodes
    • shortcodes = bool, action: Show community shortcodes
    • verbose = bool, modifier: Display diagnostic messages
  • Map codes:
    • id = integer, modifier: id of div that contains map
    • location = nonce, modifier: id of div that contains json array of i-group locations
    • lat = decimal, modifier: latitude of map point
    • latitude = decimal, modifier: latitude of map point
    • lng = decimal, modifier: longitude of map point
    • longitude = decimal, modifier: longitude of map point
    • zoom = int, modifier: [optional] Google Zoom value (0..20)- defaults to 10]
  • Lookup codes for looking up latitude and longitude of an address
    • city = string, modifier: City to look up
    • state = string, modifier: State to look up
    • zip = int, modifier: Zip Code to look up
  • Actions:
    • show = bool, action: Display map with corresponding associated data points
    • lookup = bool, action: Lookup and return latitude and longitude of address elements