mirror of https://gitee.com/antv-l7/antv-l7
fix: conflict
This commit is contained in:
parent
8019ef17a7
commit
4fa4989e35
|
@ -1,11 +1,5 @@
|
||||||
import {
|
import { Scene, Marker, MarkerLayer } from '@antv/l7';
|
||||||
Scene,
|
import { GaodeMap } from '@antv/l7-maps';
|
||||||
Marker,
|
|
||||||
MarkerLayer
|
|
||||||
} from '@antv/l7';
|
|
||||||
import {
|
|
||||||
GaodeMap
|
|
||||||
} from '@antv/l7-maps';
|
|
||||||
|
|
||||||
const scene = new Scene({
|
const scene = new Scene({
|
||||||
id: 'map',
|
id: 'map',
|
||||||
|
@ -29,9 +23,7 @@ function addMarkers() {
|
||||||
cluster: true
|
cluster: true
|
||||||
});
|
});
|
||||||
for (let i = 0; i < nodes.features.length; i++) {
|
for (let i = 0; i < nodes.features.length; i++) {
|
||||||
const {
|
const { coordinates } = nodes.features[i].geometry;
|
||||||
coordinates
|
|
||||||
} = nodes.features[i].geometry;
|
|
||||||
const marker = new Marker().setLnglat({
|
const marker = new Marker().setLnglat({
|
||||||
lng: coordinates[0],
|
lng: coordinates[0],
|
||||||
lat: coordinates[1]
|
lat: coordinates[1]
|
||||||
|
|
Loading…
Reference in New Issue