Home Forums Feature Requests OpenStreetMap support


OpenStreetMap support

  • From June 11 2018, Google Map will require a billing account to use a Google api key.

    It would be great to add support in the ACF core for an OpenStreetMap field to be used as an alternative to Google Map.

    This plugin seems to work well for now:

    it uses in the administration screen Leafletjs to rendering the map and for geocoding

  • I was just looking for the same function. This will be very helpful.

    The plugin from mcguffin hasn’t been commited since november and there is some todo list which make me think this is an abandoned project :/

  • Currently this plugin allows you to replicate all the features of the standard Google map field. Regarding the todo list, the html-output is not necessary, I write myself the code needed for site templates.

    However, my concern is about supporting future versions of ACF, which is why I asked for inclusion in the core

  • I agree as well, this would be very helpful. I will try the plugin suggested as well, but would be great if this could be added to ACF Core.

  • To be clear, Google didn’t just change the pricing structure, but as of June 11th, they’re saying you can’t use their platform for Directories.

    3.2.4 Restrictions Against Misusing the Services.

    (c) No Re-Creating Google Products or Features. Customer will not use the Services to create a product or service with features that are substantially similar to or that re-create the features of another Google product or service. Customer’s product or service must contain substantial, independent value and features beyond the Google products or services. For example, Customer will not:

    (iii) use the Google Maps Core Services in a listings or directory service or to create or augment an advertising product;


    If that’s not a reason for ACF to bring openstreetmap to core, IDK what is.

    • dbx

    • August 8, 2018 at 7:37 pm

    second that!

  • +1, highly needed πŸ˜‰!

    • Xpresso

    • September 3, 2018 at 6:44 pm

    OpneStreetMap support urgently needed imo.

    • TimR

    • September 4, 2018 at 4:52 pm


  • Probably not an easy task, but I support it. Any way to get the choice with Google alternatives is welcome.

  • Now in some websites i’m using the ACF google map field in the wordpress backend, while in the front end I’m using openstreetmap with leaflet.js (retrieving the coordinates from the google map field)

  • Google maps changes, for an agency especially, have made it unmanageable and too often leaves them with the bill. OpenStreetMap with leaflet.js is a must.

  • Absolutely brilliant solution ! It should be added by default. πŸ˜‰

  • @fburatti Great aiming! Thank for sharing the link, sir.

    And do you know which exact code should be used to insert the acf-openstreetmap field inside the very single post’s template file?

    Really looking forward to this πŸ™‚

  • 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

  • Hello!
    There is some way to change the map marker in OpenMapStreet, I am using Elementor PRO and ACF PRO thanks!

    • Ewan

    • April 2, 2019 at 11:31 pm

    Hi, thanks for the the work on this.

    How can a map be displayed on the front end for each post with this field?


    • aggelos

    • October 10, 2019 at 3:18 am

    Hi !

    Did somebody find a way to use OpenStreetMap to render multiple markers?

    I used to do that with Google Maps ACF and Custom Post Types. It works like a charm.

    Things would be reaaaaaaaaally amazing if we could do the same with OpenStreetMaps! (and without loading any Google script like @fburatti did)

    Open Street Map compatibility would be really appreciated.


Viewing 18 posts - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.