Moves the map config parameter out of the querystring and into the path.
Also:
Makes it required. It's much harder to have an optional path parameter, and in any case there's not really any such thing as a "generic" map configuration, so it makes sense to require that people define one and specify it in their tile requests.
Adds the option to set a TILEGARDEN_CONFIG_BUCKET environment variable and use that as the source for config files rather than having to add s3bucket= to the querystring. Overriding the bucket with the querystring will still work, and if there's neither a query parameter nor an environment variable, it will still look for a file on the filesystem.
Partly updates the relevant README section.
Updates all the demo pages to use the new URL format
Demo
Looks the same, but note the new piece in the URL and the lack of a config= param in the query.
Testing Instructions
Run ./scripts/server
The local demo pages should all work as before
Push your config.xml files up to an S3 bucket (they have to be at the root)
Set TILEGARDEN_CONFIG_BUCKET in your .env file and restart your dev server. Rename one of your local map config XML files and confirm that the tiles still work.
Unset the TILEGARDEN_CONFIG_BUCKET variable, restart your server, and confirm the tiles stop working (because your local file is still missing). Add s3bucket= with your config bucket. They should start working again.
Overview
Moves the map config parameter out of the querystring and into the path. Also:
TILEGARDEN_CONFIG_BUCKET
environment variable and use that as the source for config files rather than having to adds3bucket=
to the querystring. Overriding the bucket with the querystring will still work, and if there's neither a query parameter nor an environment variable, it will still look for a file on the filesystem.Demo
Looks the same, but note the new piece in the URL and the lack of a
config=
param in the query.Testing Instructions
./scripts/server
TILEGARDEN_CONFIG_BUCKET
in your.env
file and restart your dev server. Rename one of your local map config XML files and confirm that the tiles still work.TILEGARDEN_CONFIG_BUCKET
variable, restart your server, and confirm the tiles stop working (because your local file is still missing). Adds3bucket=
with your config bucket. They should start working again.