import { AMapScene, LayerContext, LayerEvent, LineLayer, MapboxScene, Marker, PolygonLayer, Popup, SceneContext, SceneEvent, } from '@antv/l7-react'; import * as React from 'react'; export default React.memo(function Map() { const [data, setData] = React.useState(); React.useEffect(() => { const fetchData = async () => { const response = await fetch( 'https://gw.alipayobjects.com/os/basement_prod/32e1f3ab-8588-46cb-8a47-75afb692117d.json', ); const raw = await response.json(); setData(raw); }; fetchData(); }, []); const popupClick = (e: any) => { console.log(e); // e.stopPropagation(); alert('11333'); }; const markerClick = (e: any) => { console.log(e); // e.stopPropagation(); alert('marker'); }; return ( <>

122224

tes

{ console.log('LayerEvent', e); }} />
); });