Skip to main content
100%

D3 - Thailand Map

✓ Published0🌍 Public
663anp3ca
Last edited Oct 15, 2018
Created on Oct 15, 2018

This map of Thailand displays provincial boundaries with an interactive zoom-and-pan effect. Built with D3 v3, the visualization uses a Mercator projection and renders each province as an SVG path. Hovering over a province highlights it in orange and displays its name in large text, while clicking a province zooms in by a factor of four, centers it, and recolors it pink. Clicking again returns the map to its default view. The map is generated from GeoJSON data and includes smooth animated transitions for zooming.

AI-generated description

D3 - Thailand Map

Basic d3 Thailand map with hover info and zoomable when mouse click.

Based on:

Data:

Thailand GeoJson Data: - apisit's thailand.json

forked from <a href='http://bl.ocks.org/adkdev/'>adkdev</a>'s block: <a href='http://bl.ocks.org/adkdev/fe15a54ad3748c72e059475e3f43d462'>D3 - Thailand Map</a>

mit Licensed

Similar vizzes