![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.
The npm package leaflet-triangle-marker receives a total of 26 weekly downloads. As such, leaflet-triangle-marker popularity was classified as not popular.
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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.