Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@2gis/deck2gis-layer
Advanced tools
Deck.gl layers implementations into 2gis map
Install with NPM
npm install @2gis/deck2gis-layer
Import the deck2gisLayer plugin to your project and use it:
import { Deck2gisLayer, initDeck } from '@2gis/deck2gis-layer';
// Init mapgl
const map = new mapgl.Map('container', {
center: [55.31878, 25.23584],
zoom: 13,
key: 'Your API access key',
});
// Init deck.gl
const deck = initDeck(map, Deck, { antialiasing: 'msaa' });
// create Deck2gisLayer
const layer = new Deck2gisLayer<HexagonLayer<any>>({
id: 'deckgl-HexagonLayer',
deck,
type: HexagonLayer,
data,
antialiasing: true,
parameters: { depthTest: true },
radius: 480,
getPosition: (d: any) => [d.point.lon, d.point.lat],
});
// add deck layer into map
map.addLayer(deckLayer);
Deck2gisLayer uses github-flow to accept & merge fixes and improvements. Basic process is:
npm run docker:test
and make sure nothing is brokenPull requests with failing tests will not be accepted.
Also, if you modify packages or add them to package.json
, make sure you use npm
and update package-lock.json
.
npm run docker:test
npm run docker:screenshot:update
npm version patch|minor|major
. This command returns a new package version. Let assume it's 1.2.3npm run deploy-gh-pages
on your local machine from a commit you want to deploy as a demo.FAQs
Deck.gl layers implementations into 2gis map
The npm package @2gis/deck2gis-layer receives a total of 83 weekly downloads. As such, @2gis/deck2gis-layer popularity was classified as not popular.
We found that @2gis/deck2gis-layer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.