
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
leaflet-drift-marker
Advanced tools
Just a marker that can drift its way to a new position, to use with leaflet, and base on Typescript for react,vue...
Support | Tested | |
---|---|---|
leaflet | 1.5.1 | ☑ |
A plugin for leaflet in Typescript to use on react,vue... that allows a marker to move smoothly instead of jump to a new position. Reworked to typescript from Leaflet.Marker.SlideTo!
npm install --save leaflet-drift-marker
leaflet-drift-marker
requires only leaflet
as peerDependency
npm install --save leaflet
You can get the build file DriftMarker.js from releases or :
<script>
<!-- will be fixed on next release -->
<!-- Include this script if exports does not exists on window or -->
<!-- the following error "ReferenceError: exports is not defined" -->
<!-- before the cdn import -->
var exports = {};
</script>
<script src="https://unpkg.com/leaflet-drift-marker@2.0.0/lib/index.js"></script>
Still supports all existing leaflet marker properties check marker
This plugin implements two new methods:
.slideTo(latlng, slideOptions)
latlng
: LeafletLatLng , requiredslideOptions
: Object , required
duration
: number , requiredkeepAtCenter
: Boolean , optional.slideCancel()
import DriftMarker from "leaflet-drift-marker";
//var DriftMarker=require("leaflet-drift-marker")
const marker = new DriftMarker([10, 10]);
marker.slideTo([20, 20], {
duration: 2000,
keepAtCenter: true,
});
MIT License
FAQs
Just a marker that can drift its way to a new position, to use with leaflet, and base on Typescript for react,vue...
The npm package leaflet-drift-marker receives a total of 0 weekly downloads. As such, leaflet-drift-marker popularity was classified as not popular.
We found that leaflet-drift-marker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.