![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
leaflet-triangle-marker
Advanced tools
Draw vector triangles using fast Canvas renderer on Leaflet map.
Draw vector triangles using fast Canvas renderer (SVG renderer not supported for now) on Leaflet map. TriangleMarker is isosceles triangle with given width and height, top pointed (can be rotated).
L.TriangleMarker is based on L.CircleMarker, extension to L.Path which from inherits options and methods.
All options are optional as in CircleMarker, LatLng is required. Other, non listed options, events and methods inherited as in CircleMarker (from Path, Interactive layer and Layer) .
var // example data
renderer = L.canvas(),
latLng = L.latLng(50.671062, 17.926126),
// example marker
myTriangleMarker = L.triangleMarker(latLng, {
renderer: renderer, // your canvas renderer (default: L.canvas())
rotation: 45, // triangle rotation in degrees (default: 0)
width: 12, // width of the base of triangle (default: 24)
height: 8, // height of triangle (default: 24)
})
Triangle specific methods.
// rotation
myTriangleMarker.setWidth(90) // set new width in px
myTriangleMarker.getWidth() // get current width in px
// width
myTriangleMarker.setHeight(90) // set new height in px
myTriangleMarker.getHeight() // get current height in px
// height
myTriangleMarker.setRotation(90) // set new rotation in deg
myTriangleMarker.getRotation() // get current rotation in deg
Created and tested on Leaflet 1.3.1
FAQs
Draw vector triangles using fast Canvas renderer on Leaflet map.
We found that leaflet-triangle-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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.