Version 0.7.0
See the CHANGELOG for more details.
General changes
- substantial changes to internal functionality and HTTP handlers, see details below
- now requires Go 1.13+
- upgraded Docker containers to Go 1.16
- upgraded Go version used for release to Go 1.16
- removed
vendor
directory; no longer needed for Go 1.13 - switched from Travis-CI to Github actions for running tests
Command-line interface
-
added 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 endpoints
-
added 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
.
Go API
- added
ServiceSetConfig
for configuration options forServiceSet
instances - added
ServiceSet.AddTileset()
,ServiceSet.UpdateTileset()
,
ServiceSet.RemoveTileset()
, andServiceSet.HasTileset()
functions.
WARNING: these functions are not yet thread-safe.
Breaking changes
Command-line interface:
- ArcGIS endpoints are now opt-in via
--enable-arcgis
option (disabled by default) --path
option has been renamed to--root-url
for clarity (env var is nowROOT_URL
)--enable-reload
has been renamed to--enable-reload-signal
Handlers API
ServiceSet.Handler
parameters have been replaced withServiceSetConfig
passed tohandlers.New()
instead.- removed
handlers.NewFromBaseDir()
, replaced withhandlers.New()
and calling
ServiceSet.AddTileset()
for eachTileset
to register. - removed
ServiceSet.AddDBOnPath()
; this is replaced by calling
ServiceSet.AddTileset()
for eachTileset
to register.