-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 修复地图状态更新 * chore: 深度对比使用 ahooks * fix: 修复单独实例情况下 mapOptions 没有默认值 * fix: 修复图层摧毁时 * chore: 优化图层组件重复渲染 * chore: update to 0.0.1-alpha.3
- Loading branch information
Showing
10 changed files
with
118 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import { BubbleLayer as L7BubbleLayer } from '@antv/l7-composite-layers'; | ||
import { forwardRef, useImperativeHandle } from 'react'; | ||
import { forwardRef, memo, useImperativeHandle } from 'react'; | ||
import { useCreateLayer } from '../hooks/use-create-layer'; | ||
import type { BubbleLayerProps } from './types'; | ||
|
||
export type { BubbleLayerProps }; | ||
|
||
export const BubbleLayer = forwardRef<L7BubbleLayer, BubbleLayerProps>((props, ref) => { | ||
const layerRef = useCreateLayer<L7BubbleLayer, BubbleLayerProps>(L7BubbleLayer, props); | ||
export const BubbleLayer = memo( | ||
forwardRef<L7BubbleLayer, BubbleLayerProps>((props, ref) => { | ||
const layerRef = useCreateLayer<L7BubbleLayer, BubbleLayerProps>(L7BubbleLayer, props); | ||
|
||
useImperativeHandle(ref, () => layerRef.current); | ||
useImperativeHandle(ref, () => layerRef.current); | ||
|
||
return null; | ||
}); | ||
return null; | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import { ChoroplethLayer as L7ChoroplethLayer } from '@antv/l7-composite-layers'; | ||
import { forwardRef, useImperativeHandle } from 'react'; | ||
import { forwardRef, memo, useImperativeHandle } from 'react'; | ||
import { useCreateLayer } from '../hooks/use-create-layer'; | ||
import type { ChoroplethLayerProps } from './types'; | ||
|
||
export type { ChoroplethLayerProps }; | ||
|
||
export const ChoroplethLayer = forwardRef<L7ChoroplethLayer, ChoroplethLayerProps>((props, ref) => { | ||
const layerRef = useCreateLayer<L7ChoroplethLayer, ChoroplethLayerProps>(L7ChoroplethLayer, props); | ||
export const ChoroplethLayer = memo( | ||
forwardRef<L7ChoroplethLayer, ChoroplethLayerProps>((props, ref) => { | ||
const layerRef = useCreateLayer<L7ChoroplethLayer, ChoroplethLayerProps>(L7ChoroplethLayer, props); | ||
|
||
useImperativeHandle(ref, () => layerRef.current); | ||
useImperativeHandle(ref, () => layerRef.current); | ||
|
||
return null; | ||
}); | ||
return null; | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default '0.0.1-alpha.2'; | ||
export default '0.0.1-alpha.3'; |