🌍 Public
Viewing a saved revision (read-only)
63888ae14a8749cf83944fbe9a32d4e7
Untitled
This example displays an interactive map centered on Iran, using Leaflet to render tile layers and enable zooming and panning. It shows how to switch between three different OpenStreetMap base layer styles—standard, Hot, and OSM French—via a control menu. The map initializes at coordinates [33, 54] with a zoom level of 5, and each tile layer loads raster imagery from the respective OpenStreetMap tile servers. The code explicitly defines tile layer objects and adds them to a layer control, allowing users to toggle the visual style of the basemap.
AI-generated description