-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chore/l7plot-deps
- Loading branch information
Showing
208 changed files
with
2,841 additions
and
3,955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ module.exports = [ | |
'cloneDeep', | ||
'isString', | ||
'isNumber', | ||
'isPlainObject', | ||
'merge', | ||
], | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### 弧线渐变 | ||
<code src="./demo/arc_linear.tsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// @ts-ignore | ||
import { LineLayer, Scene } from '@antv/l7'; | ||
// @ts-ignore | ||
import {GaodeMap } from '@antv/l7-maps'; | ||
import React, { useEffect } from 'react'; | ||
|
||
export default () => { | ||
useEffect( () => { | ||
const scene = new Scene({ | ||
id: "map", | ||
map: new GaodeMap({ | ||
pitch: 57.999999999999964, | ||
style: "dark", | ||
center: [101.94365594271085, 40.46139674355291], | ||
zoom: 2.7484264183323437, | ||
rotation: -21.600099999999884 | ||
}) | ||
}); | ||
|
||
scene.on("loaded", () => { | ||
fetch("https://gw.alipayobjects.com/os/rmsportal/UEXQMifxtkQlYfChpPwT.txt") | ||
.then((res) => res.text()) | ||
.then((data) => { | ||
const layer = new LineLayer({}) | ||
.source(data, { | ||
parser: { | ||
type: "csv", | ||
x: "lng1", | ||
y: "lat1", | ||
x1: "lng2", | ||
y1: "lat2" | ||
} | ||
}) | ||
.size(1) | ||
.shape("arc") | ||
.color("#FF7C6A") | ||
.style({ | ||
opacity: 0.8, | ||
sourceColor: "#f00", | ||
targetColor: "#6F19FF" | ||
}); | ||
scene.addLayer(layer); | ||
}); | ||
}); | ||
|
||
|
||
}, []); | ||
return ( | ||
<div | ||
id="map" | ||
style={{ | ||
height: '500px', | ||
position: 'relative', | ||
}} | ||
/> | ||
); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.