
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@freenow/react-polygon-editor
Advanced tools
A react component for displaying and drawing geo polygons
React Polygon Editor provides react components for displaying and editing polygons. We use leaflet for rendering maps. And typescript to provide a strongly typed interface.
First install @freenow/react-polygon-editor:
npm i -S @freenow/react-polygon-editor
Make sure you have also installed all peer dependencies. Have a look at package.json for more information.
npm i -S react react-dom react-leaflet leaflet styled-components
inject the leaflet css style.
Import 'leaflet/dist/leaflet.css';
You can also link the css style from a CDN in your index.html
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
Props
The initialCenter and initialZoom props are applicable only when both the polygon and the boundary coordinates are empty. This flow explains which parameters are used to focus the map:

For more details, have a look at the Component definition in PolygonDraw
You can run the library locally. We use storybook to illustrate what can be done with the components.
Simply run:
npm i && npm start
FAQs
A react component for displaying and drawing geo polygons
We found that @freenow/react-polygon-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.