diff --git a/.vscode/settings.json b/.vscode/settings.json index 90194a8..7b2d6ab 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,9 +8,6 @@ "typescript.tsdk": "node_modules/typescript/lib", "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, - "[typescript]": { - "editor.defaultFormatter": "vscode.typescript-language-features" - }, "[typescriptreact]": { "editor.defaultFormatter": "vscode.typescript-language-features" } diff --git a/src/Map/Component/Marker.tsx b/src/Map/Component/Marker.tsx index 6692ec4..8505f02 100644 --- a/src/Map/Component/Marker.tsx +++ b/src/Map/Component/Marker.tsx @@ -3,7 +3,7 @@ import { useScene } from '@antv/larkmap'; import { useEffect, useState } from 'react'; import type { Map } from '../../types/map'; import { setMapContext, setMarkers } from '../../utils/map'; -// 更新地图视野 +// 渲染标记点 export default (props: Map) => { const scene = useScene(); const [layers, setLayers] = useState([]); diff --git a/src/Map/Component/Polyline.tsx b/src/Map/Component/Polyline.tsx index 0d20834..e42130a 100644 --- a/src/Map/Component/Polyline.tsx +++ b/src/Map/Component/Polyline.tsx @@ -3,7 +3,7 @@ import { useScene } from '@antv/larkmap'; import { useEffect, useState } from 'react'; import type { Map } from '../../types/map'; import { setPolyline } from '../../utils/map'; -// 更新地图视野 +// 渲染线图层 export default (props: Map) => { const scene = useScene(); const [layers, setLayers] = useState([]); @@ -16,7 +16,6 @@ export default (props: Map) => { if (!props.polyline) return; const lineLayers = setPolyline(props.polyline || []); removeLayers(); - console.log('lineLayers', lineLayers); lineLayers.forEach((item) => { scene.addLayer(item); });