You may direct Mapsly to center the map on a record or a location defined by GPS coordinates, or a map area, when the map opens. To do this, use URL commands described below.

This feature works both on the map for authentinated users (app.mapsly.com) and on shared maps.

URM commands

The following URL commands are available:

Center on a point

__center=coordinates&__zoom=zoomLevelcenters map on the location specified by GPS coordinates (in decimal format, separated by a comma), with the specified zoom level (a value between 6 and 18).

Example: https://app.mapsly.com/?__center=34.5645434,165.34532&__zoom=12

Center on a map region

__center=coordinates1;coorinates2centers map on the rectangular area of the map specified by two pairs of GPS coordinates of the opposing corners of the map making sure that the entire map region is visible. Mapsly will automatically determine the zoom level required to make the specified map region fully visible, so the zoom parameter is not applicable in this case.

Examples: app.mapsly.com/?__center=34.5645434,165.34532;37.235434,168.7534 — centers and zooms the map so that the specified rectangular map area fully fits into the visible map area.

Center on a record, and [optionally] open its map popup

__id=recordId&__object=name&__cmd=center&__zoom=zoomLevel — centers the map on the record specified by recordId that belongs to the object with the API name name.

To also open the record's map popup, add openMapPopup to the __cmd parameter:

__cmd=center,openMapPopup . Please note that the map popup will open only if the specified record is currently visible on the map.

If multiple data sources have object with API names name, specify the source's API name in the __source parameter.

Example: app.mapsly.com/?__object=account&__id=47373646463&__cmd=center,openMapPopup&__zoom=12 — centers the map on Account record 47373646463, and opens its map popup if this account is visible on the map.

Did this answer your question?