Skip to content

Maps Fieldtype ​

Once Maps Fieldtype is installed, you can add a Maps field to the Publish page.

Field settings ​

When you create a field with the Maps Fieldtype, the following settings are available:

SettingDefaultDescription
Icon dir{base_path}themes/user/reinos_maps_fieldtype/images/markers/The server path of the folder with the marker icons you can choose from when editing a marker. This folder is not included in the download: create it and upload your icons, or point to your own folder.
Icon url{base_url}themes/user/reinos_maps_fieldtype/images/markers/The URL of that same folder.
LocationEuropeThe location (an address or a latitude, longitude) the map starts on when the field has no data yet.
Height500pxThe height of the map on the Publish page.
Max markers(empty)The maximum number of markers that can be added (1 - 200). Leave it empty for no limit.
Default zoom level1The zoom level (1 - 22) of a new map.
Show map toolsSuper AdminThe member roles that see the map tools in the toolbar. See Permissions.
Show search toolsSuper AdminThe member roles that can search an address.
Show add marker iconSuper AdminThe member roles that can add markers.
Show circle iconSuper AdminThe member roles that can draw circles.
Show polygon iconSuper AdminThe member roles that can draw polygons.
Show polyline iconSuper AdminThe member roles that can draw polylines.
Show rectangle iconSuper AdminThe member roles that can draw rectangles.
Hide edit option for the layersnoneThe member roles that can not edit the markers, circles, polylines, polygons and rectangles.
Auto center on new elementsnoCenter the map when a searched marker is placed on the map: no, yes or Yes and zoom in.
Zoom level for auto center10The zoom level (1 - 22) used when you choose Yes and zoom in.
Set default Tile provideropenstreetmapThe default tile provider of the map, chosen from the tile providers that are enabled in the Maps module.

Publish page overview ​

When the custom field is created, you can see the Maps Fieldtype in action on the publish field

title

From here you can start adding markers (circles, polylines etc...), customize markers (circles, polylines etc...), search addresses and customize the map settings.

Editing Maps setting ​

To modify the settings for the Map, you can click on the 'Edit map settings' button in the toolbar.

title

The following settings are saved with the map in the entry: the default tile, the enabled tiles, the zoom level, the max zoom level, the scroll wheel, the zoom control and its position, the scale control and its position, and an overlay (HTML and position).

Search an address ​

To search an address, you can click on the search icon at the bottom in the toolbar. After clicking on the icon an input field will be on top of the map where you can search an address.

The icon in the toolbar title

The input form with a result title

Reset the map ​

To simply reset the map to the original state, click on the reset icon in the toolbar.

title

Removing/editing markers (and others) ​

To edit or remove a marker (or a circle, polyline, polygon or rectangle), right-click on it to open a context menu. For a marker you can set a tooltip, a popup and an icon; for the other layers you can set the stroke (and fill) color, opacity and weight, a tooltip and a popup.

title

Add-on settings ​

On the settings page of the add-on (Add-Ons → Maps Fieldtype) you can set what should be logged: only errors (default), everything or nothing. The logs can be found on the Logging page of the add-on, where you can also delete them.