Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deck.gl/json

Package Overview
Dependencies
Maintainers
5
Versions
441
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deck.gl/json

JSON format rendering components for deck.gl

  • 9.0.35
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
147K
increased by4.79%
Maintainers
5
Weekly downloads
 
Created

What is @deck.gl/json?

@deck.gl/json is a package that allows you to create and configure deck.gl visualizations using JSON. This package is particularly useful for dynamically generating visualizations from JSON configurations, making it easier to integrate with various data sources and user interfaces.

What are @deck.gl/json's main functionalities?

Creating Deck.gl Layers from JSON

This feature allows you to define deck.gl layers using JSON. The example shows how to create a ScatterplotLayer with data points and their respective sizes.

{"layers": [{"type": "ScatterplotLayer", "data": [{"position": [-122.45, 37.78], "size": 100}], "getPosition": "d => d.position", "getRadius": "d => d.size"}]}

Configuring Deck.gl Views from JSON

This feature allows you to configure deck.gl views using JSON. The example shows how to create a MapView with a controller enabled.

{"views": [{"type": "MapView", "controller": true}]}

Using JSON to Define Deck.gl Props

This feature allows you to define various deck.gl properties using JSON. The example shows how to set the initial view state of the map.

{"initialViewState": {"longitude": -122.45, "latitude": 37.78, "zoom": 12, "pitch": 0, "bearing": 0}}

Other packages similar to @deck.gl/json

Keywords

FAQs

Package last updated on 08 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc