Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-mapbox-gl
Advanced tools
Based on mapbox-gl-js this library aim to bring the api to a React friendly way with some additional extra behavior. The library include the following elements :
symbol
display a mapbox symbol.line
display a lineString.fill
display a polygon.circle
display a mapbox circle.npm install react-mapbox-gl --save
Import the component :
// ES6
import ReactMapboxGl, { Layer, Feature, Marker } from "react-mapbox-gl";
// ES5
var ReactMapboxGl = require("react-mapbox-gl");
var Layer = ReactMapboxGl.Layer;
var Feature = ReactMapboxGl.Feature;
The zoom property is an array on purpose. With a float as a value we can't tell whether the zoom has changed because 7 === 7 // true
. We did a work around using array so that [7] !== [7] // true
, this way we can reliably update the zoom value.
See https://github.com/alex3165/react-mapbox-gl/issues/57 for more informations.
npm install
npm run build
cd example
npm run start
8080
FAQs
A React binding of mapbox-gl-js
The npm package react-mapbox-gl receives a total of 40,550 weekly downloads. As such, react-mapbox-gl popularity was classified as popular.
We found that react-mapbox-gl 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.