Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@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 1 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.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.