The map page
The map page is what visitors see when they open a Single Map menu item. From top to bottom it has:
- The page heading, if the menu item shows one.
- The Add Location button, if you enabled it, see Front-end submission.
- The map Description.
- The tabs: Map, List and your own custom tabs.
- On the Map tab: the map with its markers, and the sidebar with the legend and the map buttons.
Markers and infoboxes
Each published location is a marker. A click on a marker opens its infobox, and a second click closes it. The infobox shows:
- the title and the type badge,
- "Created by" and the author, if Profile Integration is on,
- the thumbnail of the Location image,
- the intro text of the description,
- the address and the phone number,
- a Find out more... button, which goes where the location's Link type says.
Set what the infobox shows on the Infobox content tab of the options, or per location in its Advanced Parameters.
Legend and sidebar
The sidebar holds:
- one box per legend, with its title, subtitle and a link per location type,
- the line "Showing 12 locations.",
- the map search box, if you enabled it,
- the Reset Map button and the Show all / Hide all button,
- the Fullscreen and Find my location buttons, if those plugins are on.
The sidebar only appears when Sidebar is Yes on the Map / Display tab of the options. The default is No, and then the map shows markers and infoboxes only, without legend, count, search or buttons.
Legend position puts the sidebar Above or Below the map, or beside it with Sidebar left and Sidebar right. Beside the map, Sidebar width (%) sets its width.
Filter types
Legend Filter Type on the Map Filter tab of the options, or in the map's Advanced Parameters, decides how the legend filters the map.
Checkboxes. Each location type is a link that switches its locations on and off. All active types show at the same time. Hide all switches every type off, Show all switches every type on.
Select Dropdowns. Each legend is a dropdown with its types. Visitors choose one type per dropdown, and the map shows only the locations that match every choice. Example: a legend Room type with Conference Room, and a legend Capacity with 100-200. Choosing both shows only conference rooms for 100 to 200 people. For this to work, give each location a type from each legend, using Additional Location types. Reset Map clears the dropdowns.
The List tab
With Location list tab? on Yes, the List tab shows a card for each location with the same content as its infobox. The cards follow the legend filter and the map search: hidden markers are hidden in the list too.
The number of cards per row depends on the screen width. Set it with Columns (Extra small) to Columns (Extra Large) on the Locations tab of the options. Show location list tab first? opens the page on the list.
Map search
With Enable map search? on Yes on the Map Search tab of the options, the sidebar shows a search field and a Go! button.
- The visitor types a town, suburb or postcode and clicks Go!.
- Google finds the place, see Google Geocoding.
- The map centres on it at the Result zoom level.
- Only locations within the Results radius(kms) stay visible, on the map and in the list. The count line says, for example, "Showing 4 locations (within 15Kms of Leeds)."
Search Region adds a region to every search, for example UK or Morocco, so a town name that exists in several countries finds the right one. Search field prompt is the hint text in the field.
The radius is measured in a straight line and is an approximation. It is less exact far from the equator. Reset Map shows all locations again.
Default marker state
Default marker state on Hide opens the map without markers, so visitors start by choosing types in the legend. It needs the sidebar, because it works through the Hide all button.
Page title and metadata
The browser title is the map title. The metadata comes from the map's Metadata tab, or from the menu item when the map has none.