Frontend Map and Filters
The frontend map uses Leaflet, marker clustering, REST data, and embedded fallback data.
Data Loading
The map first has embedded fallback market data. It then requests fresh data from:
/wp-json/ofml/v1/markets
Language-specific shortcodes add a lang query parameter, for example:
/wp-json/ofml/v1/markets?lang=es
Filters
Supported filters:
- Search
- Day
- Delivery
- Vendor type
- Payment accepted
- Distance radius
- User location
- Reset
- Region buttons
URL Filters
When enabled, shareable filters can use query parameters such as:
ofml_q
ofml_day
ofml_delivery
ofml_feature legacy alias
ofml_vendor
ofml_payment
ofml_region
ofml_radius
Popups include market details, contact links, description content, schedule information, delivery, vendor, payment, region, season, and CSA fields when present.