You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.4 KiB
69 lines
2.4 KiB
export function getPolygonGeoJSON () {
|
|
return {
|
|
type: 'FeatureCollection',
|
|
features: [
|
|
{
|
|
type: 'Feature',
|
|
geometry: {
|
|
type: 'Polygon',
|
|
coordinates: [
|
|
[
|
|
[120.34641692835909, 36.089631138388036],
|
|
[120.3610683961656, 36.07743361100231],
|
|
[120.41981862563858, 36.094178143435734],
|
|
[120.40240403504704, 36.11798699226542],
|
|
[120.34534806364974, 36.11752870787426],
|
|
[120.34191095693906, 36.117070430475906],
|
|
[120.34641692835909, 36.089631138388036]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
export function getGridGeoJSON () {
|
|
return {
|
|
type: 'FeatureCollection',
|
|
features: [
|
|
{
|
|
type: 'Feature',
|
|
properties: {
|
|
name: '第一网格',
|
|
index: 0
|
|
},
|
|
geometry: {
|
|
type: 'Polygon',
|
|
coordinates: [
|
|
[
|
|
[120.36042111463216, 36.123630243850776],
|
|
[120.37646657270601, 36.11574122696447],
|
|
[120.36427923644065, 36.105102846593255],
|
|
[120.34074589793231, 36.10363201293648],
|
|
[120.36042111463216, 36.123630243850776]
|
|
]
|
|
]
|
|
}
|
|
},
|
|
{
|
|
type: 'Feature',
|
|
properties: {
|
|
name: '第二网格',
|
|
index: 1
|
|
},
|
|
geometry: {
|
|
type: 'Polygon',
|
|
coordinates: [
|
|
[
|
|
[120.35623852355958, 36.0892643916626],
|
|
[120.37271801574708, 36.0903801906128],
|
|
[120.36894146545411, 36.08102464556885],
|
|
[120.35795513732911, 36.07767724871827],
|
|
[120.35623852355958, 36.0892643916626]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|