Skip to content

Commit

Permalink
clean(Marker): remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 24, 2021
1 parent bdbf456 commit 1f387f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Marker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Demo = () => {
}
}
return (
<div style={{ width: '100%', height: '350px' }}>
<div style={{ width: '100%', height: 350 }}>
<APILoader akay="GTrnXa5hwXGwgQnTBG28SHBubErMKm3f">
<Map widget={['NavigationControl']} zoom={13}>
<Marker ref={markerRef} animation={2} position={{ lng: 121.411535, lat: 31.222965 }} />
Expand Down Expand Up @@ -57,15 +57,15 @@ const CustomIcon = () => {
return (
<>
<button onClick={() => setPosition({lng: 121.545202, lat: 31.246679})}>设置 position</button>
<Map zoom={13} center={{ lng: 121.460977, lat: 31.227906 }}>
<Map zoom={13} center={{ lng: 121.460977, lat: 31.227906 }} style={{ height: 350 }}>
<Marker position={position} icon={icon} animation={2} />
</Map>
</>
);
}

const Demo = () => (
<div style={{ width: '100%', height: '350px' }}>
<div style={{ width: '100%' }}>
<APILoader akay="GTrnXa5hwXGwgQnTBG28SHBubErMKm3f">
<CustomIcon />
</APILoader>
Expand Down
1 change: 0 additions & 1 deletion src/Marker/useMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export default function useMarker(props = {} as UseMarker) {
newMarker.setAnimation(animation);
setMarker(newMarker);
return () => {
console.log('>>>');
map.removeOverlay(newMarker);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 1f387f7

Please sign in to comment.