Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@planet/dynamic-tiles
Advanced tools
Support for dynamically colored tiles from Planet Inc. tile servers.
Dynamic tiles are served as numpy tiles. This module has the classes needed to support rendering those tiles inside of OpenLayers.
After cloning the repository, run build, and use npm link
. Example below:
$ npm install
$ npm run build
$ cd dist/
$ npm link
$ cd [to your project]
$ npm link @planet/dynamic-tiles
import {NumpyLayer, NumpySource} from "@planet/dynamic-tiles/ol"
Please only publish the dist/
directory.
$ npm publish ./dist/
The Layer rendering performance can be improved by using WebWorkers. To use it, the NumpyWorker needs imported the project and passed to the NumpyLayer.
Based on using the webpack worker-loader module.
import NumpyWorker from 'worker-loader!@planet/dynamic-tiles/worker';
...
const numpySource = new NumpySource();
numpySource.set('bands', ['r', 'g', 'b', 'a']);
numpySource.set('dtype', 'uint8');
numpySource.set('pixelDepth', 256);
const numpyLayer = new NumpyLayer({
source: numpySource,
workerClass: NumpyWorker,
style: {
name: 'rgb',
},
});
A small parcel
enabled demo application is included.
npm install
cd demo/
npx parcel ./index.html
You will need a valid URL for an endpoint with NumpyTiles.
FAQs
Support for dynamically colored tiles from Planet Inc. tile servers.
The npm package @planet/dynamic-tiles receives a total of 0 weekly downloads. As such, @planet/dynamic-tiles popularity was classified as not popular.
We found that @planet/dynamic-tiles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.