Releases: 123FLO321/SwiftTileserverCache
Releases · 123FLO321/SwiftTileserverCache
Move to Vapor
- Moved backend to Vapor
- Use Leaf for templating (Check updated README)
- Added pregenerate option (Can be used instead of link-shortenesr. Check updated README)
- Added option to use local markers (
Markers
directory. Check updated docker-compose.yml) - Added option to add circles to staticmaps (
circles
. Check updated docker-compose.yml) - Added
POST
support for templating - Removed deprecated /static route
- Modified all routes to be event-driven and none blocking
- Improved performance
- Update to Swift 5.2
Template Cache Cleaning + Circles
- Automatically clear templates from cache on changes
- Add support for circles (check updated README)
- Misc fixes
Require content type image for markers
- Limit markers to content type
image/*
to avoid imagemagick errors
Skip Markers outside of StaticMap-bounds
- skip markers outside of view bounds
Fix HitRatio for Tiles
- Fix a problem where hit ratio for tiles was not correctly counted
Add Fallback marker options
- Markers can now have a fallback url specified using
fallback_url
per marker
Fix Templating Errors with new Leaf update
- Fixes a problem where templates no longer worked in the latest Leaf update
Support for External Tile Providers
- Adds an option to add external tile providers
- Can be used for Tiles and StaticMap/MultiStaticMap like all other styles
- Example (add to environment):
TILE_URL_MAPBOX_SATTELITE: https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}{@scale}.{format}?access_token=xxx
TILE_URL_GOOGLE_SATTELITE: http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}&scale={scale}
- Style name is then available in
kebab-case
(in this case:mapbox-sattelite
andgoogle-sattelite
)
Added POST support for templates
- Adds
POST
support to for templating routes (Uses post-body in JSON format for templating enviroment)
Improved Cache Cleaning
- Improved performance and reliability of cache cleaner
- Cleanup logging