Premier URL Control

 

 

Allow Address In URL

When the URL Control module is active you can enable location ID passing by turning on “Allow Location In URL” under the General / User Interface tab.

When this is enabled you can pass in a location ID by adding ?location=<id> to the end of the page address where your locator map is deployed with the [slplus] shortcode.

When the location ID is present and the settings is enabled the specified location will be activated on the location map as if a user had clicked the marker on the map.  This will show the info bubble by default.

Note: If cluster map markers are enabled they will be turned off for the initial page load.   Subsequent input or searches by the user will re-activate the cluster map markers.

Note: When passing in a location ID via a URL the location latitude/longitude will become the center point for the map display.  The location that is shown will be at the top of the result listing if sort by distance (default) is in place.

 

Allow Limit In URL

When the URL Control module is active you can enable location ID passing by turning on “Allow Limit In URL” under the General / User Interface tab.

When this is enabled you can pass in a limit for the number of locations to be returned when the map initially loads and when a search is performed by adding ?limit=<id> to the end of the page address where your locator map is deployed with the [slplus] shortcode.

Combining URL Options

You can combine the URL control options by using standard URL notation for parameter passing.

The standard is to define the first parameter by starting with a question mark.

Additional parameters are started with an ampersand.

To pass a location ID and a location limit, in this example to show ONLY the location specified, you would add ?location=32&limit=1 to your map page URL.

 

Enabling URL Controls

Note: As of Premier 4.8 (mid-June 2018) the Enable URL Control settings is no longer required.   Enabling either the Allow Address in URL or Allow Location Limit in URL setting will load the URL Control module as needed.   Those features will require an active Premier Subscription.

Version 4.7.11 and earlier of Premier Only…

Active Premier Subscribers can activate the URL Control module to add additional URL processing to Store Locator Plus.    Enabling this setting under the General /Server tab will turn on additional controls in Store Locator Plus.

Note: The URL Control module was added in Premier Plugin version 4.7.9.

 

 

Videos