From a8ad53072e545cdcc2fd802c63ffa2112cb326a5 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 12 Jan 2024 22:08:43 -0800 Subject: [PATCH] Switch custom tile example to OpenTopoMap Closes #45 --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8567636..1b0bde0 100644 --- a/README.md +++ b/README.md @@ -87,19 +87,16 @@ The map defaults to being displayed above the main results table on the page. Yo ## Custom tile layers -You can customize the tile layer used by the maps using the `tile_layer` and `tile_layer_options` configuration settings. For example, to use the [Stamen Watercolor tiles](http://maps.stamen.com/watercolor/#12/37.7706/-122.3782) you can use these settings: +You can customize the tile layer used by the maps using the `tile_layer` and `tile_layer_options` configuration settings. For example, to use the [OpenTopoMap](https://opentopomap.org/) you can use these settings: ```json { "plugins": { "datasette-cluster-map": { - "tile_layer": "https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.{ext}", + "tile_layer": "https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png", "tile_layer_options": { - "attribution": "Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap contributors", - "subdomains": "abcd", - "minZoom": 1, - "maxZoom": 16, - "ext": "jpg" + "attribution": "Map data: © OpenStreetMap contributors, SRTM | Map style: © OpenTopoMap (CC-BY-SA)", + "maxZoom": 17, } } }