Sign in
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!

  • This topic has 3 replies, 2 voices, and was last updated 3 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #2118
    Avatar photoVerhoeckx

    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.

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    Avatar photoVerhoeckx

    It was no problem! I did it gladly!

    Avatar photoVerhoeckx

    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.

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