Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Map

Public visualization

Viewing a saved revision (read-only)

6f34af90d77546d39b0be97e0e153e54

World Map

0 stars0🌍 Public
UUVarshaReddy
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example displays an interactive world map using Leaflet, with countries rendered as yellow polygons with black borders. The map initializes with a global view centered on [0,0] at zoom level 2. It fetches GeoJSON country boundaries from a GitHub-hosted world dataset and adds them to the map using Leaflet’s `L.geoJSON` method. The page also imports D3.js and local ES6 modules, though their primary role is demonstrated separately in the accompanying code structure.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.