mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
Deckgl example (#187) (h/t @AdriSolid)
* docs: add deckgl example * docs: improve deckgl code example
This commit is contained in:
parent
7622731ccf
commit
166dd68d27
13
README.md
13
README.md
@ -143,9 +143,18 @@ const pointsLayer = new MVTLayer({
|
||||
pointRadiusUnits: 'pixels',
|
||||
getRadius: 5,
|
||||
getFillColor: [230, 0, 0]
|
||||
})
|
||||
});
|
||||
|
||||
map.addLayer(pointsLayer);
|
||||
const deckgl = new DeckGL({
|
||||
container: 'map',
|
||||
mapStyle: 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json',
|
||||
initialViewState: {
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
zoom: 1
|
||||
},
|
||||
layers: [pointsLayer]
|
||||
});
|
||||
```
|
||||
|
||||
## Table Sources
|
||||
|
Loading…
Reference in New Issue
Block a user