Starting zoom level By default Map List Pro will calculate the zoom levels automatically to make sure that all of the visible locations are in view. It is possible to override the starting zoom level to just show an area at a particular zoom level. To set the starting zoom you also need to set…
Map List Pro has a number of filters that let you change more advanced functions of the map and list. The code snippets listed below should be added to your theme’s function.php. Change the order of the map, list, messages, paging, and search boxes This should return an array of strings. The order of the…
You don’t need to manually set shortcode options to get a map on your site – you can do this easily using the shortcode wizard. In case you do need to manually edit any shortcode options the full range of options available are below: Normally you shouldn’t need to manually create or edit the shortcode,…
The mlp_location_description filter gives you access to the description field before it is sent to the front end. Here you can get fields from the database and add and change the description text. Custom fields created with the Map List Pro mlp_location_metaboxes filter are passed to the function along with the description html, and the…
All of the fields in Map List Pro are normal WordPress custom fields. Sometimes you may need to know what these are for some more advanced techniques. The fields are: maplist_description – The short description used in the list. maplist_address – The address field. maplist_latitude – The decimal latitude of the location. maplist_longitude – The decimal…
This is possible, but it means editing some code to do it. To create the area in a format that Google maps can use you need to use a service like this one: http://www.doogal.co.uk/polylines.php Copy the text from the code tab and then search in /js/maplistfront.js for the following: //Default map view var mapTypeIdToUse; and…
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…
Map List Pro (from version 3.6.11) allows you to add additional categories and filters. Only the main categories can be used for limiting the locations added to the map. Additional categories use the built in WordPress taxonomy system. To add an additional taxonomy you need to make sure it is registered against the maplist post type –…