diff --git a/README.md b/README.md index 215c0e9..697bd4c 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,8 @@ You can customize the tile layer used by the maps using the `tile_layer` and `t } } ``` +If your tile server provides retina tiles, add `"detectRetina": true` to `tile_layer_options` to enable them. + The [Leaflet Providers preview list](https://leaflet-extras.github.io/leaflet-providers/preview/index.html) has details of many other tile layers you can use. ## Custom marker popups diff --git a/datasette_cluster_map/__init__.py b/datasette_cluster_map/__init__.py index d91f1a3..fa6cc46 100644 --- a/datasette_cluster_map/__init__.py +++ b/datasette_cluster_map/__init__.py @@ -6,7 +6,6 @@ TILE_LAYER = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" TILE_LAYER_OPTIONS = { "maxZoom": 19, - "detectRetina": True, "attribution": '© OpenStreetMap contributors', }