Re:Self Hosting a Google Maps Alternative with OpenStreetMap
by CSSer on Tuesday November 22, 2022 @09:06AM
(#33705884)
Out of curiosity, what’s the motivation to error suppress the mkdir call here (my PHP is rusty)? Anyway, this is great. Thank you for sharing!
Re:Self Hosting a Google Maps Alternative with OpenStreetMap
by okasaki on Tuesday November 22, 2022 @09:11AM
(#33705942)
It returns an error if the directory already exists (same as in Python)
I am using something based on https://wiki.openstreetmap.org/wiki/ProxySimplePHP5 for a long time already and since I don't need to have up to date tiles every day, I set the TTL to a few weeks.
Together with leaflet this works beautifully.