Meta Box
Support Forum
Support › General › Open Street Map Field custom tiles server?
Hi,
is there a way/option to setup the OSM field to use a custom tile server?
Kind regards, Ole
And is there a way to serve the leaflet.js and leaflet.css from localhost instead of https://unpkg.com/[email protected]/dist/leaflet.js/.css?
Hi, I think my post was overlooked? 😉
Hello Ole,
Thank you for following up.
1. I do not see a way to set up OSM field to use a custom tiles server. The data is fetched from OSM server https://nominatim.openstreetmap.org/
2. You can dequeue script and CSS files (name leaflet) then re-enqueue them with your local files. But I'm not sure if the OSM map works properly then. Please read more on the documentation https://developer.wordpress.org/reference/functions/wp_dequeue_style/ https://developer.wordpress.org/reference/functions/wp_dequeue_script/