enzet / map-machine

Python renderer for OpenStreetMap with custom icons intended to display as many map features as possible
MIT License
503 stars 31 forks source link

feat: Adds --update-cache flag to 'server'. #158

Open cskau opened 11 months ago

cskau commented 11 months ago

TileServerHandlerhas an attribute, update_cache which is hardcoded to False. https://github.com/enzet/map-machine/blob/825eb34191ebdfcd5a634806a39b4aa536f9d430/map_machine/slippy/server.py#L22

This prevents the map-machine server command from serving tiles that aren't already in the cache: https://github.com/enzet/map-machine/blob/825eb34191ebdfcd5a634806a39b4aa536f9d430/map_machine/slippy/server.py#L48-L60

This PR exposes update_cache as a command line flag.