Skip to main content
100%

Full Screen Leaflet Map

✓ Published0🌍 Public
Dd3noob
Last edited Apr 20, 2014
Created on Nov 26, 2013

This example displays an interactive map centered on Wellington, New Zealand, using Leaflet.js and OpenStreetMap tile layers. The map fills the entire browser viewport through CSS rules that set the html, body, and map container to 100% height and width. It initializes the map with a specific latitude, longitude, and zoom level, then attaches an OpenStreetMap tile layer with attribution and a maximum zoom of 18. The code relies on Leaflet’s `L.map`, `L.tileLayer`, and the `setView` method to render the full-screen interactive visualization.

AI-generated description

An example of a leaflet map set to full screen using appropriate styles.

Similar vizzes