dekguh / leaflet.movemarker Goto Github PK
View Code? Open in Web Editor NEWL.MoveMarker is a leaflet plugin that is used to create moving marker and also trail polyline animation.
License: MIT License
L.MoveMarker is a leaflet plugin that is used to create moving marker and also trail polyline animation.
License: MIT License
Operation System: Mac OS
Os Version: Monterey
Browser: google chrome
Browser Version: 108.x
center point on icon is not accurate with polylines.
the icon's midpoint is in the middle of the polylines, so it's as if the icon made the lines.
Operation System: Mac OS
Os Version: Monterey
Browser: google chrome
Browser Version: 107.x
when the animation duration same with the fetch interval duration, happened the bug on marker, it will always start from first lat lng. this bug found in the real case demo
when it have same duration, no such bug occurs.
make the duration animation and fetch interval not the same, for example the duration of the animation is 10 seconds and the fetch interval is 11 seconds
Haven't tested with "real" latlngs, but this example gives me just headache and will not work whatever I tried to do:
const layers = {}
// create new motion marker
layers.player = L.motionMarker(
[unproject(session.location)],
{
animate: true,
duration: 1000,
followMarker: true,
hideMarker: false,
rotateMarker: true,
rotateAngle: session.location.rot,
icon: L.divIcon({
iconSize: [16, 16],
className: 'bg-transparent',
html: '<div><img src="./static/icons/icon_2.png" style="width: 16px; height: 16px; transform: translate(0, -4px);"></div>'
})
},
).addTo(map);
// set view to player
map.setView(layers.player.getLatLng(), 5);
Tried to solve myself the bug, but I cannot get much from that error and gave up :/
current version: 0.0.12 (beta)
note: the item with checked has been merged with current version
if you like what i do with my stuff, you can donate me a beer ๐ฟ
use label help wanted
& bug
for bug report and label help wanted
& question
for a question
use this structure for make a issue
Operation System:
Os Version:
Browser:
Browser Version:
explain in detail what happened or in detail your question.
what kind of expectations do you want, please explain in detail.
Explain in detail the steps until you get the error/bug/something what ever and dont forget to attach the codesandbox
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.