Location types
A location type is a kind of place, such as Restaurants, Hotels or Parking. Each type belongs to one legend, has its own marker and badge colours, and can have its own custom fields. On the map, visitors show and hide places by type.
Go to Components > JoomMap > Location Types and click New. If there is no legend yet, JoomMap opens the legend form first.
General
| Field | What it does |
|---|---|
| Title and Alias | The name of the type. It is the link text in the legend and the badge text in infoboxes |
| Description | A note for yourself. It is not shown on the site |
| Status | Published or Unpublished. Locations of an unpublished type do not show under that type |
| Display in legend | The legend this type belongs to |
| Marker | The marker image for locations of this type. If you leave it empty, the Default map marker from the options is used |
| Label colors | Label color and Label background color of the type badge in infoboxes and list cards. The default is white text on blue |
Which marker a location gets
- The Alternative Marker of the location, if it has one.
- Otherwise the Marker of its primary location type.
- Otherwise the Default map marker on the Locations tab of the options.
JoomMap installs a set of marker images in images/markers, see Markers.
The type badge
Infoboxes and list cards show the type of a location as a coloured badge next to the title. For a location with several types, the badge shows the first of its types in legend order. To hide the badges, set Location Type as badge in Item list to No on the Locations tab of the options.
Several types per location
A location has one Primary Location Type and can have Additional Location types. The primary type decides the marker and the custom fields. The additional types only decide under which legend links the location shows. A location with the types Gym and Café shows when either link is active.
Custom fields
Each type has two buttons in the Location Types list: Manage Fields and Manage Fields Groups. They open Joomla's field manager for that type only. Edit a type to find the same buttons in its toolbar. See Custom fields.
The fields are linked to the type's alias. If you change the alias of a type later, its fields no longer show on its locations.