We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Tutorial: Add OpenStreetMap to your website!

  • #2118
    Avatar photo[anonymous]

    Hello Publii developers!

    It took much more time than expected but I finally wrote a tutorial about how to add an OpenStreetMap map to a (Publii) website!
    I forgot how difficult it is to write (good) documentation…

    You can find the tutorial in the zip-file attached to this post!

    Good luck with implementing an OpenStreetMap/Mapbox map to your website!


    Avatar photoBob

    Thanks, Verhoeckx, excellent work. I will publish it in the new, upcoming dev documentation.

    Avatar photo[anonymous]

    It was no problem! I did it gladly!

    Avatar photo[anonymous]

    Last weekend I realized that my tutorial isn’t as easy as it could be.

    In step 3.5 I add a new post settings to the config.json array in order to be able to turn on and off the loading of the Mapbox JavaScript. This works great but maybe this is not where the post settings are meant for. It would have made more sense if I had used the option to override a theme for this.