Index

  1. Home
  2. Docs
  3. Index
  4. Shortcodes
  5. Shortcode wpdageomap

Shortcode wpdageomap

Use shortcode [ wpdageomap ] to add a map to a web page which allows users to interactively change the search range. Only rows (locations) containing a latitude and longitude are queried. Locations without a latitude or longitude are not taken into account. Here is a working geolocation demo.

Shortcode parameter

schema_name

The combinations of schema_name and table_name must exist. The geolocation settings for the table needs to be entered and enabled.

table_name

The combinations of schema_name and table_name must exist. The geolocation settings for the table needs to be entered and enabled.

map_center

Default = plugin (center user location or static position). Use “first” to center the first marker (location nearest to user position or static location).

map_zoom

Overwrite the zoom settings (default = 14). Not effective of automatically adjust zoom is enabled.

map_with

Overwrite geolocation setting. (for example: map_width=”300px”)

map_height

Overwrite geolocation setting. (for example: map_height=”300px”)

map_select

Possible values: hide and show (allow user to select range and unit)

map_init

Possible values: true and false (indicates whether the map should be instantiated after loading the page)

map_label

Possible values: true and false (indicates whether labels should be added to markers)

map_location

Possible values: fixed and user (use fixed or the user position)

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *

five − 2 =