![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
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.
@dvhb/leaflet-polylineoffset
Advanced tools
Apply a relative offset in meters to polylines without changing their coordinates.
Works with Leaflet >= 1.0.
This plugin adds to Leaflet Polyline
s the ability to be drawn with a relative pixel offset, without modifying their actual LatLng
s. The offset value can be either negative or positive, for left- or right-side offset, and remains constant across zoom levels.
npm install leaflet-polylineoffset
Line offsetting is the process of drawing a line parallel to an existant one, at a fixed distance. It's not a simple (x,y) translation of the whole shape, as it shouldn't overlap. It can be used to visually emphasize different properties of the same linear feature, or achieve complex composite styling.
This plugin brings this feature to Leaflet, to apply to client-side vectors.
Demos are clearer than words:
Polyline
objects but uses the same coordinate array.The plugin adds offset capabilities directly to the L.Polyline
class.
// Instantiate a normal Polyline with an 'offset' options, in pixels.
var pl = L.polyline([[48.8508, 2.3455], [48.8497, 2.3504], [48.8494, 2.35654]], {
offset: 5
});
// Setting the 'offset' property through the 'setStyle' method won't work.
// If you want to set the offset afterwards, use 'setOffset'.
pl.setOffset(-10);
// To cancel the offset, simply set it to 0
pl.setOffset(0);
MIT.
FAQs
Apply a relative offset in meters to polylines without changing their coordinates.
The npm package @dvhb/leaflet-polylineoffset receives a total of 49 weekly downloads. As such, @dvhb/leaflet-polylineoffset popularity was classified as not popular.
We found that @dvhb/leaflet-polylineoffset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.