Skip to content

Commit

Permalink
fix: demo import (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: shengzheng <[email protected]>
  • Loading branch information
hsp-sz and shengzheng authored Mar 6, 2024
1 parent dd086fc commit 466c653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/LayerPopup/demos/default.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { LineLayerProps, PolygonLayerProps } from '@antv/larkmap';
import type { LayerPopupProps, LineLayerProps, PolygonLayerProps } from '@antv/larkmap';
import { LarkMap, LayerPopup, LineLayer, PolygonLayer } from '@antv/larkmap';
import type { FeatureCollection } from '@turf/turf';
import { coordAll, featureCollection, lineString } from '@turf/turf';
import React, { useEffect, useState } from 'react';
import type { LayerPopupProps } from '../types';

const polygonLayerOptions: Omit<PolygonLayerProps, 'source'> = {
autoFit: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FlowLayerProps } from '@antv/larkmap';
import { FlowLayer, LarkMap } from '@antv/larkmap';
import React, { useEffect, useState } from 'react';
import type { FlowLayerProps } from '../types';

export default () => {
const [source, setSource] = useState<FlowLayerProps['source']>({
Expand Down

0 comments on commit 466c653

Please sign in to comment.