Comments (3)
Here's an example to demonstrate the problem. I tried using leaflet-0.5.1, leaflet-0.6.1 and get the same problem. Open page, pan to the east, then turn on the fire overlay layer. The points are not aligned until you pan or zoom again. I'm using the esri-leaflet.js from the dist folder.
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Layers Control Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body, #map{width: 100%; height: 100%}
</style>
</head>
<body>
<div id="map" ></div>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="esri-leaflet.js"></script>
<script>
var baseLayer = L.esri.basemapLayer("Streets");
var map = L.map('map', {
center: [33.73, -120.99],
zoom: 8,
layers: [baseLayer]
});
var baseLayers = {
"Street": baseLayer,
};
var fire = L.esri.dynamicMapLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer", {
opacity : 0.7,
layers: "0"
});
var overlays = {
"Fire" : fire
};
L.control.layers(baseLayers, overlays).addTo(map);
</script>
</body>
</html>
from esri-leaflet.
I'll work on fixing this. Thanks for the example code.
from esri-leaflet.
Closing this since it is fixed in #142.
from esri-leaflet.
Related Issues (20)
- FeatureLayer _redraw method throws error if defined for a multilinestring HOT 6
- Support for Leaflet 1.9.0 HOT 11
- Leaflet 1.9.3 error - can't access property "properties", layer.feature is undefined HOT 10
- Popups broken with esri-leaflet 3.0.10 and leaflet 1.7.1 HOT 1
- DarkGray and Gray tilemap do not have dynamic attributions HOT 3
- Points on the map are not being shown when zoomed in HOT 6
- Documentation for tiledmapLayer is not strictly accurate. Can use alternatives to epsg:3857 HOT 8
- Esri attribution removes custom Leaflet prefix
- Dynamic Map Layer layerDefs force POST HOT 4
- Token is exposed in GET request HOT 5
- Husky update HOT 1
- From ArcGIS Enterprise: Zooming in at maximum extent the layer stops loading HOT 1
- FeatureLayer: initial tiles are requested concurrently with metadata HOT 2
- 🎃 𝗛𝗮𝗰𝗸𝘁𝗼𝗯𝗲𝗿𝗳𝗲𝘀𝘁 𝗗𝗲𝘁𝗮𝗶𝗹𝘀 𝗳𝗼𝗿 𝗣𝗮𝗿𝘁𝗶𝗰𝗶𝗽𝗮𝗻𝘁𝘀 👨💻 HOT 1
- Request GeoJSON by deault for feature services
- When the lod value for some zoom level is 0 tiles is not display properly HOT 3
- MapServer with custom LODs. initial tile set zoom level is wrong
- Error when using ESM CDNs - `The requested module does not provide an export named 'toLatLngBounds'`
- Examples in Documentation return 401 error HOT 4
- esri-leaflet api required and freely allowed (terms of use)? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esri-leaflet.