-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from ZeLonewolf/customize-server
Make tile server, source, and attribution configurable
- Loading branch information
Showing
9 changed files
with
64 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
|
||
/* | ||
Planetiler tile server, hosted at AWS | ||
*/ | ||
const OPENMAPTILES_URL = | ||
"https://6ug7hetxl9.execute-api.us-east-2.amazonaws.com/data/v3.json"; | ||
|
||
export default { | ||
OPENMAPTILES_URL, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"use strict"; | ||
|
||
/* | ||
This style requires a vector tile server to run. | ||
This configuration is for running with MapTiler Cloud. | ||
Visit MapTiler Cloud and create an account/log in: | ||
https://cloud.maptiler.com/maps/ | ||
Go to Account->Keys and create a key to paste here: | ||
*/ | ||
const MAPTILER_KEY = "<your MapTiler key>"; | ||
|
||
const OPENMAPTILES_URL = `https://api.maptiler.com/tiles/v3-openmaptiles/tiles.json?key=${MAPTILER_KEY}`; | ||
const ATTRIBUTION_LOGO = ` | ||
<a id="attribution-logo" href="https://www.maptiler.com/"> | ||
<img src="https://api.maptiler.com/resources/logo.svg" alt="MapTiler logo"/> | ||
</a>`; | ||
const ATTRIBUTION_TEXT = | ||
'<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>'; | ||
|
||
export default { | ||
OPENMAPTILES_URL, | ||
ATTRIBUTION_LOGO, | ||
ATTRIBUTION_TEXT, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters