Shortcode: [wpsight_listings_map]

This shortcode shows the listings map on a static page. (see demo).

Please notice! This shortcode will only be available when the WPCasa Listings Map add-on is active.

Usage

[wpsight_listings_map]

Parameters

nr
Maximum number of listings displayed on the map. Defaults to 50. Can be -1 to remove limit.

width
Width of the map in px or %. Defauts to 100%.

height
Height of the map in px. Defaults to 800px.

map_type
Type of the map. Defaults to ROADMAP. Can be SATELLITE, HYBRID or TERRAIN.

control_type
Whether or not to display the type control panel. Defaults to true.

scrollwheel
Whether or not to activate the scroll per mouse wheel. Defaults to false.

streetview
Whether or not to activate the streetview option. Defaults to true.

style
Slug of registred map style. Empty by default (shows default Google Map style).

map_id
ID of the map element. Defaults to uniqid( 'shortcode-' ). Unique ID with prefix.

toggle
Whether or not to activate the map toggle option (show/hide). Defaults to false.

toggle_button
Text of the toggle button. Defaults to Show Map.

cluster_grid
Size of the cluster grid of the map. Defaults to 60.

before
Display some short content (e.g. a special note) right before the shortcode output. Is empty by default.

after
Display some short content (e.g. a special note) right after the shortcode output. Is empty by default.

wrap
HTML tag of the container element of the shortcode. Defaults to div.

Example

Display a hybrid map type without streetview.

[wpsight_listings_map map_type="HYBRID" streetview="false"]

Show Snazzy Maps style map with the latest 5 listings.

[wpsight_listings_map nr="5" style="snazzy-maps"]

Source File

/wpcasa-listings-map/includes/class-wpsight-listings-map-shortcode.php

Was this article helpful? Yes · No