Skip to main content
100%

d3-tile tileSize

✓ Published0🌍 Public
CCurran Kelleher
Last edited Mar 9, 2019
Created on Mar 9, 2019

This example demonstrates how the `tileSize` method of the d3-tile library controls the pixel dimensions of individual map tiles. It renders a zoomable, pannable Mapbox map as SVG, with a form control to toggle between different tile sizes. The map uses `d3.tile()` to generate tile coordinates and `d3.geoMercator()` for projection, while tile images are fetched from Mapbox’s tile server. The code shows how changing `tile.tileSize` directly affects the resolution and number of tiles displayed at a given zoom level.

AI-generated description

Map using d3-tile demonstrating the tile.tileSize method.

forked from <a href='http://bl.ocks.org/linusmarco/'>linusmarco</a>'s block: <a href='http://bl.ocks.org/linusmarco/71f80d7c8a53981f5bbfab8167f32a10'>d3-tile tileSize</a>

mit Licensed

Similar vizzes