Comments (2)
I also ran into this same issue. Is there any workaround for this?
from leaflet.animatedmarker.
You can do something like this to hide it while zooming:
function toggleVisibility(e) {
if (e.type === 'zoomstart') {
map.removeLayer(animatedMarker)
}
if (e.type === 'zoomend') {
map.addLayer(animatedMarker)
}
}
map.on('zoomstart', toggleVisibility);
map.on('zoomend', toggleVisibility);
from leaflet.animatedmarker.
Related Issues (20)
- package.json
- Markers position bug when map zooming
- how can add latlngs to the polyline in interval when it start run HOT 1
- Adding to Bower's registry HOT 2
- Using animated marker with realtime GPS data HOT 3
- Add git tag HOT 2
- Any plans on adding to npm? HOT 4
- Using with react-leaflet HOT 3
- restart animation
- stop() does not work for me.
- onEnd gets called twice HOT 1
- demo not working under https HOT 2
- feature request: pause and continue HOT 1
- The demo doesn't work because gh-pages branch is not up-to-date
- infinite loop
- Project Status and recommended fork?
- demo ko HOT 1
- move the popup label (animated) together with marker.
- Fix the demo! HOT 1
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 leaflet.animatedmarker.