
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@nebula.gl/layers
Advanced tools
git clone git@github.com:uber/nebula.gl.git
cd nebula.gl
yarn
cd examples/deck
yarn
export MapboxAccessToken='<Add your key>'
yarn start-local
yarn add nebula.gl
nebula.gl will automatically install a compatible version of deck.gl.
The Editable GeoJSON layer accepts a GeoJSON FeatureCollection
and renders the features as editable polygons, lines, and points. See the example below and for the official documentation click here.
import DeckGL from 'deck.gl';
import { EditableGeoJsonLayer } from 'nebula.gl';
const myFeatureCollection = {
type: 'FeatureCollection',
features: [
/* insert features here */
]
};
class App extends React.Component {
state = {
mode: 'modify',
selectedFeatureIndexes: [0],
data: myFeatureCollection
};
render() {
const layer = new EditableGeoJsonLayer({
id: 'geojson-layer',
data: this.state.data,
mode: this.state.mode,
selectedFeatureIndexes: this.state.selectedFeatureIndexes,
onEdit: ({ updatedData }) => {
this.setState({
data: updatedData,
});
}
});
return <DeckGL {...this.props.viewport} layers={[layer]} />;
}
}
0.13.0 - 2019-05-13
translate
mode:
modeConfig.additionalSnapTargets
, which is a list of Features, instead of modeConfig.layerIdsToSnapTo
.EditableGeoJsonLayer.pickingRadius
rather than modeConfig.snapPixels
.modeConfig.additionalSnapTargets
to support snapping to an array GeoJSON features whether or not they are renderedpickingRadius
and pickingDepth
@nebula.gl/edit-modes
module (#225)FAQs
A suite of 3D-enabled data editing layers, suitable for deck.gl
We found that @nebula.gl/layers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.