Home › Forums › Feature Requests › OpenStreetMap support › Reply To: OpenStreetMap support
Here is a complete example for a list of farm houses, I include the map both in the single post (one marker) and in the archive page with all the properties (multiple markers), it’s a simple port of what I used with google map.
In the html code you need a div with id “acf-map” and the appropriate css style.
Here is the Javascript part (required leaflet.js)
this is the php part of wordpress
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.