import React from 'react';
import {ArcLayer} from 'glmaps';
const Demo = (props) => {
return (
<ArcLayer
data={props.data}
showBrushAnimation={props.showBrushAnimation}
/>
)
};
See http://deck.gl/#/documentation/deckgl-api-reference/layers/arc-layer
Should be a JavaScript array, default to []
. Each element should have a property named ARC
and follow the data format:
[
{
ARC: {
source: [
120.1551,
30.27341,
],
target: [
city.lon,
city.lat,
],
}
},
...
]
Animation switch, control whether arcs should animate from source to target, and disappear in the end. Default to false
.
import React from 'react';
import {HexagonLayer} from 'glmaps';
const Demo = (props) => {
return (
<HexagonLayer
data={props.data}
showAnimation={props.showAnimation}
/>
)
};
See http://deck.gl/#/documentation/deckgl-api-reference/layers/hexagon-layer
Should be a JavaScript array, default to []
. Each element should have properties named COORDINATES
and SPACES
:
[
{
COORDINATES: [longitude, latitude], // location
SPACES: Number // height
},
...
]
Animation switch, control whether hexagon will animate from 0 to height
. Default to false
.
import React from 'react';
import {ScatterplotLayer} from 'glmaps';
const Demo = (props) => {
return (
<ScatterplotLayer
data={props.data}
showWaveAnimation={props.showWaveAnimation}
speed={props.speed}
/>
)
};
See http://deck.gl/#/documentation/deckgl-api-reference/layers/scatterplot-layer
Should be a JavaScript array, default to []
. Each element should have properties named COORDINATES
and SPACES
:
[
{
COORDINATES: [longitude, latitude], // location
SPACES: Number // height
},
...
]
Animation switch, control whether scatterplot will animate like a wave and fade out in the end. Default to false
.
Fade out speed controller. Default to 0.02
.
import React from 'react';
import {IconLayer} from 'glmaps';
const Demo = (props) => {
return (
<IconLayer
data={props.data}
showCluster={props.showCluster}
/>
)
};
See http://deck.gl/#/documentation/deckgl-api-reference/layers/icon-layer
Should be a JavaScript array, default to []
. Each element should have properties named COORDINATES
:
[
{
COORDINATES: [longitude, latitude], // location
},
...
]
Cluster switch, control whether display icons with cluster calculation. Default to true
.
import React from 'react';
import {IconLayer} from 'glmaps';
const Demo = (props) => {
return (
<IconLayer
data={props.data}
coverage={props.coverage}
/>
)
};
See http://deck.gl/#/documentation/deckgl-api-reference/layers/screen-grid-layer
Should be a JavaScript array, default to []
. Each element should have properties named COORDINATES
and SPACES
:
[
{
COORDINATES: [longitude, latitude], // location
SPACES: Number, // Value mapped to colors
},
...
]
Coverage control. Sort data from hight to low, and filter out the top coverage
rate data to display. Default to 1
.