Skip to main content
100%

Using Leaflet in TypeScript. Original code see http://leafletjs.com/examples/quick-start-example.html

✓ Published0🌍 Public
Aackuser
Last edited Feb 14, 2013
Created on Mar 13, 2017

This example demonstrates a basic interactive map built with the Leaflet JavaScript library, written in TypeScript. It shows a tile layer of London, along with a marker, a red circle, and a polygon, each bound to a popup that displays descriptive text. Clicking anywhere on the map opens a popup showing the clicked latitude and longitude. The code uses Leaflet’s `L.Map`, `L.TileLayer`, `L.Marker`, `L.Circle`, `L.Polygon`, and `L.Popup` APIs, with the tile layer sourced from CloudMade.

AI-generated description

Similar vizzes