Skip to content

Commit

Permalink
docs: 修改一些描述信息和配置
Browse files Browse the repository at this point in the history
  • Loading branch information
象数 committed Dec 9, 2024
1 parent c21960d commit 022d339
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Map/Component/Marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ILayer[]>([]);
Expand Down
3 changes: 1 addition & 2 deletions src/Map/Component/Polyline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ILayer[]>([]);
Expand All @@ -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);
});
Expand Down

0 comments on commit 022d339

Please sign in to comment.