Basic Go server for mbtiles
--basemap-style-url
option or basemap
image tiles using the --basemap-tiles-url
option.--host
option (#138).crawshaw.io/sqlite
for better
performance.--enable-fs-watch
option.handlers.Assets
; static assets are intended only for use in template
or static file handlers.See the CHANGELOG for more details.
vendor
directory; no longer needed for Go 1.13added support for automatically generating unique tileset IDs using --generate-ids
option
added ability to toggle off non-tile endpoints:
--disable-preview
: disables the map preview, enabled by default.--disable-svc-list
: disables the list of map services, enabled by default--disable-tilejson
: disables the TileJSON endpoint for each tile service--tiles-only
: shortcut that disables preview, service list, and TileJSON endpointsadded ability to have multiple tile paths using a comma-delimited list of paths passed to --dir
option
moved static assets for map preview that were originally served on /static
endpoint to /services/<tileset_id>/map/static
so that this endpoint is
disabled when preview is disabled via --disable-preview
.
ServiceSetConfig
for configuration options for ServiceSet
instancesServiceSet.AddTileset()
, ServiceSet.UpdateTileset()
,
ServiceSet.RemoveTileset()
, and ServiceSet.HasTileset()
functions.
WARNING: these functions are not yet thread-safe.--enable-arcgis
option (disabled by default)--path
option has been renamed to --root-url
for clarity (env var is now ROOT_URL
)--enable-reload
has been renamed to --enable-reload-signal
ServiceSet.Handler
parameters have been replaced with ServiceSetConfig
passed to handlers.New()
instead.handlers.NewFromBaseDir()
, replaced with handlers.New()
and calling
ServiceSet.AddTileset()
for each Tileset
to register.ServiceSet.AddDBOnPath()
; this is replaced by calling
ServiceSet.AddTileset()
for each Tileset
to register.RIFF
header (WebP is only likely RIFF format to be stored in tiles). #98, #110Changes:
--tls
option (#89)Breaking Changes:
in handlers.go
:
TemplatesFromAssets
as it was not used internally, and unlikely used externallysecretKey
from NewFromBaseDir
parameters; this is replaced by calling SetRequestAuthKey
on a ServiceSet
.