Render OpenStreetMap for Archive/Pages (Elementor or any)

Support MB Elementor Integrator Render OpenStreetMap for Archive/Pages (Elementor or any)Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18650
    Trang NguyenTrang Nguyen
    Participant

    Hi!
    I'm creating a directory site so it is very important to have a map on it.

    Let say I have places in Hanoi, Madrid, Paris.
    I created 3 pages with Posts of Elementor Pro to show places in 3 cities (one page for one city, I don't want to show all of them in 1 page).

    So here I'm getting stuck with 2 issues:

    1. Is there any way to show maps that content places of these cities (one map for one city)? I use OpenStreetMap, not Google Maps.
    2. How to connect the map with Posts element and FacetWP (to filter the posts)? So when people check/uncheck the FacetWP filter, the markers on the map will change also.

    Thank you very much for your help!

    #18659
    Anh TranAnh Tran
    Keymaster

    Hi,

    1) To display map for cities (one per city), you can use the rwmb_meta helper function. If you want to display all cities on a map, please see this tutorial.

    2) Unfortunately, FacetWP can't filter by maps. You should make it filter by other fields (cities, wards, etc.), and the map will be displayed accordingly.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.