
PageBuilder
Visual section builder for MODX 3: draft and publish without overwriting resource content
- MODX 3
- PHP 8.2
- Vue 3


A map pin from coordinates or address. MapEmbedResolver builds the iframe; default provider is Yandex Maps.

Информация
Requires PageBuilder Pro.
yandex by default, or osm (OpenStreetMap)Location map field: coordinates and zoom. Section title is optional.
| Parameter | Value |
|---|---|
| key | map |
| Layer | Pro |
| Category | media (media) |
| Chunk | pagebuilderpro_map |
| Requires | pro |
Field types: field types reference.
title) Type text. Optional.
location) Type map. Required. Map pin. Site output is iframe via MapEmbedResolver.
Iframe inside pb-map.
Example payload after save. Media, video, and map values may be enriched on output:
{
"title": "Section title",
"location": {
"lat": 55.751244,
"lng": 37.618423,
"embed_url": "https://yandex.ru/map-widget/v1/..."
}
}Fenom chunk pagebuilderpro_map:
<section class="pb-section pb-section--map pb-map{if $cssClass} {$cssClass|escape}{/if}" data-pb-section="map"{if $id} id="pb-{$id|escape}"{/if}>
<div class="pb-section__inner pb-map__inner">
{if $title}
<h2 class="pb-heading pb-map__title">{$title|escape}</h2>
{/if}
{if $map_embed_url}
<div class="pb-map__embed">
<iframe
class="pb-map__frame"
title="{$title|default:'Map'|escape}"
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
src="{$map_embed_url|escape}"
></iframe>
</div>
{elseif $map_watch_url}
<p><a class="pb-button" href="{$map_watch_url|escape}">{'pagebuilder_fe_map_open' | lexicon}</a></p>
{/if}
</div>
</section>