mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'master' of https://github.com/yanyu510/L7
This commit is contained in:
commit
06dd158758
|
@ -16,11 +16,12 @@ export default class HexagonLayerDemo extends React.Component {
|
|||
public async componentDidMount() {
|
||||
const scene = new Scene({
|
||||
id: 'map',
|
||||
map: new GaodeMap({
|
||||
map: new Mapbox({
|
||||
pitch: 0,
|
||||
style: 'blank',
|
||||
center: [140.067171, 36.26186],
|
||||
zoom: 0,
|
||||
zoom: 3,
|
||||
|
||||
maxZoom: 0,
|
||||
}),
|
||||
});
|
||||
|
@ -41,7 +42,7 @@ export default class HexagonLayerDemo extends React.Component {
|
|||
},
|
||||
transforms: [
|
||||
{
|
||||
type: 'hexagon',
|
||||
type: 'grid',
|
||||
size: 200000,
|
||||
field: 'v',
|
||||
method: 'sum',
|
||||
|
@ -51,7 +52,7 @@ export default class HexagonLayerDemo extends React.Component {
|
|||
.size('sum', (value) => {
|
||||
return value * 20;
|
||||
})
|
||||
.shape('hexagonColumn')
|
||||
.shape('squareColumn')
|
||||
.color(
|
||||
'count',
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue