Skip to content

Instantly share code, notes, and snippets.

@ccev
Last active December 19, 2024 15:05
Show Gist options
  • Select an option

  • Save ccev/dbd46fa415153e19a5c4ed58f99c299d to your computer and use it in GitHub Desktop.

Select an option

Save ccev/dbd46fa415153e19a5c4ed58f99c299d to your computer and use it in GitHub Desktop.

Revisions

  1. ccev revised this gist Dec 19, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion style.json
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    "sources": {
    "osm": {
    "type": "raster",
    "tiles": ["http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}&scale=3"],
    "tiles": ["http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}&scale=2"],
    "tileSize": 256,
    "attribution": "",
    "maxzoom": 18
  2. ccev revised this gist Dec 19, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion style.json
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    "osm": {
    "type": "raster",
    "tiles": ["http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}&scale=3"],
    "tileSize": 256 * 1,
    "tileSize": 256,
    "attribution": "",
    "maxzoom": 18
    }
  3. ccev created this gist Dec 19, 2024.
    19 changes: 19 additions & 0 deletions style.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {
    "version": 8,
    "sources": {
    "osm": {
    "type": "raster",
    "tiles": ["http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}&scale=3"],
    "tileSize": 256 * 1,
    "attribution": "",
    "maxzoom": 18
    }
    },
    "layers": [
    {
    "id": "osm",
    "type": "raster",
    "source": "osm"
    }
    ]
    }