Settings

Settings

Mapplic provides a broad spectrum of configuration possibilities through a wide range of settings.

NameSettingDescription
FullscreenfullscreenPosition of the fullscreen button: top-left, top-right, bottom-left, bottom-right or undefined to disable fullscreen.
Hover tooltiphoverTooltipEnable the tooltip on hover.
Hover abouthoverAboutDisplay about location property in hover tooltip, if enabled.
DeeplinkingdeeplinkingEnable location deeplinking by the use of the location query parameter.
PaddingpaddingAdd an extra padding (in pixels) around the map when zoomed all the way out.
Scroll topscrollTopIn portrait mode, the vertical scroll offset is helpful when there's a static header. It ensures the map scrolls into view without being covered by the header.
AccessibilityaccessibilityEnhance the overall accessibility of the map.

Responsivity

It is possible to configure a distinct layout at an unlimited number of breakpoints.

PropertyKeyDescription
Namename *Unique layer name, also used as a CSS class.
BelowbelowWhen the size falls below the specified pixel breakpoint, the settings will take effect.
PortraitportraitWhether to use the portrait or landscape (sidebar) directory mode.
SidebarsidebarWidth of the sidebar in pixels, only applied when portrait mode is turned off.
TypetypeWheter to use the list or grid display type.
ColumncolumnNumber of columns in the directory.
ContainercontainerHeight of the map container in pixels. In the absence of a specified height, the container's height will be automatically calculated to maintain the map file's aspect ratio.
ElementelementHeight of the component in portrait mode (map container + directory below the map)

The breakpoint name will be added to the component as CSS class, so it can also be used for custom styling. For example, if you wanted to hide the layer switcher control on mobile, the following custom CSS could be used.

.mobile .mapplic-layer-switcher {
    display: none;
}

Zoom and pan

Zooming and panning are essential features of Mapplic that enhance the user experience by providing improved visibility over static, fixed-size maps.

Turning off zooming is also possible when the map is sufficiently clear and does not require any enlargement.

NameSettingDescription
Max zoommaxZoomMaximum zoom level of the map, 1 is the fit scale (map fits within the container).
Reset buttonresetButtonPosition of the reset button: top-left, top-right, bottom-left, bottom-right or undefined to disable the reset button.
Zoom buttonszoomButtonsPosition of the +/- buttons: top-left, top-right, bottom-left, bottom-right or undefined to disable zoom buttons.
MousewheelmouseWheelEnable/disable mousewheel zooming.
Shift keymouseWheelShiftRequire Shift key pressed for mousewheel zooming.
Close resetcloseResetAutomatically reset zoom when closing a location (losing focus).

Translations

You can translate or replace certain default UI strings such as 'More,' 'Search,' or 'Clear all' using these options.

At present, multi-lingual maps are not available. However, localization can be achieved by creating and configuring translated versions of the original map.