Skip to main content
100%

Leaflet.js - Simple Map

✓ Published0🌍 Public
HHirosaji
Last edited Oct 13, 2018
Created on Oct 13, 2018

This example combines Leaflet.js 0.7.7 with D3 v4 to render a GeoJSON map of Japanese prefectures on an interactive tile-less map. The map is centered on Japan, constrained to a bounding box between latitudes 25–50 and longitudes 112–158, with zoom limits of 5–10. D3 loads the local `ken.geojson` file, which Leaflet then draws as semi-transparent white polygon features using `L.geoJson` with a custom style for weight, opacity, and fill. An invisible rectangle marks the allowed viewing area.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes