Adding a search form to a different page

From version 3.9.8 onwards Map List Pro looks for parameters passed via the url and uses these to prefill the search. These parameters are:

  • locationSearchTerms
  • textSearchTerms
  • searchDistance

“locationSearchTerms” is the default parameter used for searching and is all you need to pass for location and text search modes. If you’re using the combo search mode you’ll need to use “locationSearchTerms” for the location bit, and textSearchTerms for the text search part. If you want to specify a distance filter for the location search then add searchDistance. Examples of search urls are:

www.yousitedomain.com/yourmappage/?locationSearchTerms=london – This would find all locations with the word “london” in text only search mode, or all locations close to london in location search mode.

www.yousitedomain.com/yourmappage/?locationSearchTerms=london&textSearchTerms=tower – This would find all locations close to london containing the word “tower” when used in combo search mode.

You can add a search box on any page of your site using the following html:

 


You will need to change “/locations” on the first line to the url of your map page.

Combo search (location and text)


You will need to change “/locations” on the first line to the url of your map page.

SmartRedFox has written 30 articles