Leaflet.js × D3.js × geojson-vt.js - Clickeble Canvas Tiles Map
This interactive map displays Japanese municipal boundaries using vector tiles rendered onto Canvas elements within a Leaflet.js map. The visualization employs geojson-vt.js to convert GeoJSON data into tile-based vector features, which are then drawn using D3.js for click interaction handling. Each polygon is rendered with a unique picking color, enabling feature identification through Canvas `getImageData` pixel inspection on mouse events. The map supports zoom-dependent styling with adjustable line widths and dash patterns, showing prefectural city data including Sendai and Ora-machi boundaries.
AI-generated descriptionReference Blog:<br/> ▶︎ GeoJSONをフロントエンドでベクトルタイル化して表示する。 - GUNMA GIS GEEK<br/>
Reference Code:<br/> ▶︎ https://bl.ocks.org/shimizu/79bb99558dbc27b8fdf456033dc8e893
[Gist] https://gist.github.com/Hirosaji/704eba1454230620836de5e0df747129
Built with blockbuilder.org