{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-122.483696, 37.833818]
},
"properties": {
"title": "Mapbox",
"icon": "monument"
}
}
]
}
{
"floatPrecision": 12,
"views": [
{
"id": "view1",
"controller": {
"type": "LinearInterpolator"
}
}
],
"layers": [
{
"id": "deckgl-layer",
"type": "GeoJsonLayer",
"data": "https://your-server/your-data.json",
"pickable": true,
"stroked": true,
"filled": true,
"getFillColor": [255, 140, 0],
"getLineColor": [0, 0, 0],
"getLineWidth": 1,
"getRadius": 10,
"pointRadiusMinPixels": 2,
"pointRadiusMaxPixels": 20,
"getPointRadius": 5,
"getLineWidth": 3,
"getElevation": 5000
}
],
"mapStyle": "mapbox://styles/mapbox/streets-v9"
}
3.如果仍然无法解决问题,则可以通过使用“JS”高级代码进行自定义JavaScript代码解决该问题。例如,以下示例演示如何在Superset中使用deckgl 代码(此处以d3.js为例):
import deckgl from 'deck.gl';
import {DeckGL, GeoJson