fix: conflict

This commit is contained in:
Parry 2020-02-01 19:25:06 +08:00 committed by GitHub
parent ad3f1c08dd
commit 7f87509b05
1 changed files with 3 additions and 11 deletions

View File

@ -1,11 +1,5 @@
import {
Scene,
Marker,
MarkerLayer
} from '@antv/l7';
import {
GaodeMap
} from '@antv/l7-maps';
import { Scene, Marker, MarkerLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
id: 'map',
@ -29,9 +23,7 @@ function addMarkers() {
cluster: true
});
for (let i = 0; i < nodes.features.length; i++) {
const {
coordinates
} = nodes.features[i].geometry;
const { coordinates } = nodes.features[i].geometry;
const marker = new Marker().setLnglat({
lng: coordinates[0],
lat: coordinates[1]