Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
react-mapbox-ui
Advanced tools
MapboxUI provides a minimal layer of abstraction for composing mapbox-gl UI's in an idiomatic React way.
MapboxUI provides a minimal layer of abstraction for composing mapbox-gl UI's in an idiomatic React way.
As a base, this library provides you with the following components:
yarn add react-mapbox-ui
# or
npm i react-mapbox-ui
See TypeDocs.
Composing your own MapboxUI components.
import { Map, MapMarker } from "react-mapbox-ui";
import "mapbox-gl/dist/mapbox-gl.css";
const accessToken = "your access token";
const centerCoorindates: LngLatLike = [-79.347015, 43.65107]; // Toronto
const cnTower: LngLatLike = [-79.38694839252216, 43.64265954350144];
const geoJson = {};
const App = () => {
return (
<Map
accessToken={accessToken}
style={{
height: "100vh",
width: "100%",
}}
defaultCenter={centerCoorindates}
>
{/* render a standard marker marker */}
<MapMarker lngLat={centerCoorindates} />
<MapMarker lngLat={cnTower}>
{/* render an html marker */}
<div>CN Tower</div>
</MapMarker>
{/* render a layer */}
<MapLayer
id="area-fill"
source="area"
type="fill"
paint={{
"fill-color": "red",
"fill-opacity": 0.5,
}}
>
<MapSource id="area" type="geojson" data={geoJson} generateId />
</MapLayer>
</Map>
);
};
FAQs
> This was a fork of [`react-mapbox-ui`](https://github.com/eliashussary/react-mapbox-ui)
The npm package react-mapbox-ui receives a total of 1 weekly downloads. As such, react-mapbox-ui popularity was classified as not popular.
We found that react-mapbox-ui 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.