Skip to content

Commit

Permalink
fix(demo): gatsby
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Nov 14, 2019
1 parent a75c435 commit 5faac23
Show file tree
Hide file tree
Showing 41 changed files with 268 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/c3f8bda2-081b-449d-aa9f-941
transforms: [
{
type: 'grid',
size: 50,
size: 20,
field: 'count',
method: 'sum',
},
Expand All @@ -33,22 +33,17 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/c3f8bda2-081b-449d-aa9f-941
.size('sum', (value) => {
return value;
})
.shape('square')
.shape('circle')
.style({
coverage: 1.0,
coverage: 0.8,
angle: 0,
opacity: 1.0,
})
.color('count', [
'#002466',
'#105CB3',
'#2894E0',
'#CFF6FF',
'#FFF5B8',
'#FFAB5C',
'#F27049',
'#730D1C',
]);
.color('count', ['#0A3663', '#1558AC',
'#3771D9', '#4D89E5',
'#64A5D3', '#72BED6',
'#83CED6', '#A6E1E0',
'#B8EFE2', '#D7F9F0']);
scene.addLayer(layer);
console.log(layer);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/heatmap/heatmap/demo/meta.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"title": {
"zh": "网格热力图",
"zh": "经典热力图",
"en": "heatmap"
},
"demos": [
{
"filename": "world3d.js",
"title": "网格热力图"
"title": "经典热力图3D"
},
{
"filename": "world.js",
"title": "世界电厂热力图"
"title": "经典热力图2D"
}
]
}
2 changes: 2 additions & 0 deletions examples/heatmap/heatmap/index.zh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
title: 经典热力图
order: 0
redirect_from:
- /zh/examples/heatmap/
---
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ fetch(
],
})
.size('sum', [0, 600])
.scale('sum', {
type: 'quantize',
})
.shape('hexagon')
.style({
coverage: 0.8,
Expand All @@ -50,5 +47,4 @@ fetch(
].reverse(),
);
scene.addLayer(layer);
console.log(layer);
});
28 changes: 0 additions & 28 deletions examples/line/basic/demo/path.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/line/basic/index.zh.md

This file was deleted.

44 changes: 0 additions & 44 deletions examples/line/dash/demo/line.js

This file was deleted.

20 changes: 0 additions & 20 deletions examples/line/dash/demo/meta.json

This file was deleted.

96 changes: 0 additions & 96 deletions examples/line/dash/demo/path.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/line/dash/index.zh.md

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const scene = new Scene({
pitch: 0,
type: 'amap',
style: 'light',
center: [102.602992, 23.107329],
zoom: 4,
center: [102.602992, 33.107329],
zoom: 3.5,
});

fetch('https://gw.alipayobjects.com/os/basement_prod/9f6afbcd-3aec-4a26-bd4a-2276d3439e0d.json')
Expand All @@ -22,6 +22,7 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/9f6afbcd-3aec-4a26-bd4a-227
.size('value', [0.5, 1, 1.5, 2])
.shape('line')
.color('value', ['#FFF2E8', '#FFCEA7', '#F0A66C', '#CC464B', '#8A191A'])
.animate({enable:true})
scene.addLayer(layer);
console.log(layer);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const scene = new Scene({
pitch: 0,
type: 'amap',
style: 'light',
center: [102.602992, 23.107329],
zoom: 4,
center: [102.602992, 33.107329],
zoom: 3.5,
});

fetch('https://gw.alipayobjects.com/os/basement_prod/9f6afbcd-3aec-4a26-bd4a-2276d3439e0d.json')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions examples/line/path/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 路径地图
order: 0
redirect_from:
- /zh/examples/line/
---
6 changes: 3 additions & 3 deletions examples/point/3d/demo/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9
x: 'longitude',
y: 'latitude'
}
}).shape('name',['cylinder', 'triangleColumn', 'hexagonColumn'])
}).shape('name',['cylinder', 'triangleColumn', 'hexagonColumn','squareColumn'])
.size('unit_price', (h)=>{
return [ 5,5, h / 1000 ]
return [ 15,15, h / 1000 ]
})
.color('name',['#49B5AD', "#5B8FF9"])
.color('name',['#49B5AD', "#5B8FF9",'#E4504A','#E99431'])
.style({
opacity: 1.0,
})
Expand Down
19 changes: 14 additions & 5 deletions examples/point/basic/demo/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,22 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9
x: 'longitude',
y: 'latitude'
}
}).shape('circle')
.size('unit_price', [5, 25])
.color('#5B8FF9')
}).shape('name',[
'circle',
'triangle',
'square',
'pentagon',
'hexagon',
'octogon',
'hexagram',
'rhombus',
'vesica',
])
.size('unit_price', [10, 25])
.color('name',['#E4504A',"#E99431", "#EBCC53","#43A5DA","#6CC175"])
.style({
opacity: 0.3,
opacity:1.0,
strokeWidth: 1,
strokeColor: "#5B8FF9",

})

Expand Down
2 changes: 1 addition & 1 deletion examples/point/chartmap/demo/chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Scene } from '@l7/scene';
import { Marker } from '@l7/component'
import * as G2Plot from '@antv/g2plot'
import G2Plot from '@antv/g2plot';
const scene = new Scene({
id: 'map',
type: 'amap',
Expand Down
Loading

0 comments on commit 5faac23

Please sign in to comment.