Leaflet map with a canvas layer using GIS map
Special API samples
This sample demonstrates how to add a leaflet map with canvas layer using GIS map.
Steps to enable leaflet and configure styling :
- Page options :
- In OnGet request set
ViewData["LeafletCSS"] = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"; - In _Layout.cshtml set
link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" - Viewer server side options :
- RestrictedDrag = false
- Color = Transparent
- CS = 3785