huiyan-fe / react-bmapgl

基于百度地图JavaScript GL版API封装的React组件库
http://huiyan.baidu.com/github/react-bmapgl/
MIT License
115 stars 21 forks source link

地图类型为earth时,缩放有问题;地图类型为normal时,折线有问题 #74

Open luogongzhi opened 1 year ago

luogongzhi commented 1 year ago
附上代码:
const Example = () => {
    return (
        <Map
            center={{lng: 118.64384087845795, lat: 31.9616900242826}}
            zoom={18}
        >
            <CityListControl/>
            <ZoomControl/>
            <MapTypeControl />
            <Polyline
                path={[{lng: 118.64384087845795, lat: 31.9616900242826}]}
                strokeColor="#f00"
                strokeWeight={10}
            />
        </Map>
    );
};