Dynamic Map Layers won't load unless visible
See original GitHub issue-
Browser and version: IE11, Chrome
-
Version of Leaflet (
L.version
): 1.0.2 -
Version of esri Leaflet (
L.esri.VERSION
): 2.0.6
Steps to reproduce the error: Load my sample project
What happens is a null errror on map shows up…
I was expecting it to load properly.
<html>
<head>
<meta charset=utf-8 />
<title>Esri Leaflet Quickstart</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet-src.js"></script>
<!-- Load Esri Leaflet from CDN -->
<script src="https://unpkg.com/esri-leaflet@2.0.6"></script>
<style>
body { margin:0; padding:0; }
#map { position: absolute; top:0; bottom:0; right:0; left:0; }
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map("map").setView([37.75, -122.23], 10);
var street = L.esri.basemapLayer("Streets");
street.options.minZoom = 0;
street.options.maxZoom = 5;
street.addTo(map);
var topo = L.esri.basemapLayer("Topographic");
topo.options.minZoom = 6;
topo.options.maxZoom = 10;
topo.addTo(map);
L.esri.dynamicMapLayer({
url: 'https://services.arcgisonline.com/arcgis/rest/services/Specialty/Soil_Survey_Map/MapServer',
opacity: 0.7,
minZoom: 6,
maxZoom: 10
}).addTo(map);
</script>
</body>
</html>
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Only Show Features Visible in the Map Extent Not W...
Hello, I'm creating maps with a few layers that are Map Servers. ... "Only Show Features Visible in the Map Extent" doesn't appear...
Read more >Dynamic map layers - Mapsly Help Center
A dynamic map layer is an object's sublayer grouping records that match the layer's criteria defined using Mapsly's visual formula builder.
Read more >Troubleshoot—ArcGIS Online Help | Documentation
I can't reorder a layer in the map's contents. My web map contains a layer that is no longer available, and an error...
Read more >Working with Dynamic Map Services in the ArcGIS API for ...
Learn how to harness the capabilities of ArcGIS Enterprise dynamic map services using the ArcGIS API for JavaScript version 4.x.
Read more >Explore Interactive Map - PLACES - CDC
Data displayed on the map will change depending on the zoom level. Having the legend open as you zoom in/out will indicate what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I just did… Did that work?
Now that I’m looking there isn’t a dist folder anymore. Is that an error?
On Mon, Jan 9, 2017 at 3:49 PM, Jordan Parfitt <> wrote: