Skip to content

Map Field (PRO)

Map Field is a field that allows integrating maps into your page. Currently, two types of maps are supported: Leaflet and Yandex. Support for Google Maps is planned for future updates.

The map type is selected through the system setting pageblocks_map_type, while all other configurations can be customized directly in the field's settings.

Map Field

Frontend Display

To render the map on the frontend, use the pbMap snippet:

php
{'!pbMap' | snippet: [
    'markers' => $map_coords,  // Map coordinates
    'options' => $map_options  // Map options
]}

© PageBlocks 2019-present