Skip to main content

Map Facet

Map Facet filters a target by the visible map bounds. It sends a geo_bbox facet value and reads Map POI elements from the connected target loop.

Authoring Structure

Map Facet
Facet Target
└── loop slot
└── Map POI

The map and target must share the same target ID.

Map Facet Props

GroupPropDefaultMeaning
SettingstargetemptyShared target ID.
Settingslat_meta_keylatitudeBackend meta key for latitude.
Settingslng_meta_keylongitudeBackend meta key for longitude.
Settingscenter_lat0Initial map center latitude.
Settingscenter_lng0Initial map center longitude.
Settingszoom4Initial Leaflet zoom.
Settingsmin_zoom2Minimum Leaflet zoom.
Settingsmax_zoom18Maximum Leaflet zoom.
Settingstile_urlemptyOptional custom tile layer URL.
Settingsfit_bounds_on_filtertrueAllows runtime to fit map bounds from filtered POIs.
Settingsbbox_debounce_ms300Delay before map movement updates the bbox value.
Stylingclassome-map-facet-root-defaultMap root class.
Stylingbubble_classemptyOptional class added to generated cluster bubbles.

Map POI Props

GroupPropDefaultMeaning
ContentvalueemptyStable POI identifier.
ContentlatemptyPOI latitude.
ContentlngemptyPOI longitude.
StylingclassemptyOptional class for the hidden POI carrier.

Runtime Notes

  • Map Facet renders data-ome-facet="geo_bbox".
  • The bbox value serializes as south,west,north,east.
  • Map POI is hidden DOM data, not visible listing content.
  • POI hover and selected slots can provide marker popup content.
  • Large responses can switch to lightweight coordinate-only POI data.

Example

Map Facet:
- target = stores
- lat_meta_key = store_lat
- lng_meta_key = store_lng

Facet Target:
- target = stores
- used_with_map = true

Map POI inside loop:
- value = current post ID or slug
- lat = current item store_lat
- lng = current item store_lng