Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sri Lanka - Multi-Level DS Divisions Map with Tabs</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<style>
body { margin:0; padding:0; font-family: Arial, sans-serif; }
#map { width: 100vw; height: 100vh; }
{"type":"FeatureCollection","name":"gadm41_LKA_2","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:OGC:1.3:CRS84"}},"features":[{"type":"Feature","properties":{"GID_2":"LKA.1.1_1","GID_0":"LKA","COUNTRY":"SriLanka","GID_1":"LKA.1_1","NAME_1":"Ampara","NL_NAME_1":"NA","NAME_2":"Addalachchenai","VARNAME_2":"NA","NL_NAME_2":"NA","TYPE_2":"Division","ENGTYPE_2":"Division","CC_2":"NA","HASC_2":"LK.AP.AD"},"geometry":{"type":"MultiPolygon","coordinates":[[[[81.8662,7.3094],[81.8671,7.3043],[81.8657,7.301],[81.866,7.2979],[81.8676,7.2971],[81.868,7.2876],[81.8646,7.2715],[81.8637,7.2457],[81.8604,7.246],[81.8596,7.2476],[81.8592,7.2461],[81.7718,7.2508],[81.7772,7.2996],[81.7858,7.2996],[81.7958,7.2908],[81.8,7.2929],[81.8026,7.2969],[81.8137,7.2962],[81.822,7.299],[81.8267,7.2959],[81.8334,7.2945],[81.849,7.2998],[81.8559,7.3078],[81.8613,7.3064],[81.8662,7.3094]]]]}},{"type":"Feature","properties":{"GID_2":"LKA.1.2_1","GID_0":"LKA","COUNTRY":"SriLanka","GID_1":"LKA.1_1","NAME_1":"Ampara","NL_NAME_1":"NA"