Git Product home page Git Product logo

Comments (6)

krmao avatar krmao commented on May 24, 2024 2

+1 忽然遇到这个问题

mac chrome 没问题
windows chrome 报错 cannot read property result of indefined

image

"react-bmapgl": "0.1.22",
class MapAddressBaidu extends React.Component {
    constructor(props) {
        super(props);
    }
    render() {
        const that = this;
        let centerLatLng = {lat: 31.14826, lng: 121.67196};
        return (
            <React.Fragment>
                <Map
                    style={{width: "100%", height: "100%", marginTop: "10px", zIndex: 0}}
                    center={centerLatLng}
                    zoom={that.props.zoomLevel}
                    enableScrollWheelZoom={true}
                    onClick={(e) => this.props.onMapClickListener?.(e)}>
                    <ZoomControl />
                    <Marker position={centerLatLng} enableDragging />
                </Map>
            </React.Fragment>
        );
    }
}
export default MapApiLoaderHOC({ak: Constants.MAP_KEY_BAIDU})(MapAddressBaidu);
<MapAddressBaidu
          style={{width: "100%", height: "100%", marginTop: "10px", zIndex: 0}}
          centerLatLng={centerLatLng}
          zoomLevel={14}
          onMapClickListener={(e) => {
          }}
/>

from react-bmapgl.

chenshuox avatar chenshuox commented on May 24, 2024

果然是浏览器版本差异导致的这个报错;

mac chrome version = 95.0.4638.54 报错;

mac safari version = 14.0.2 (16610.3.7.1.9) 无报错;

很神奇~

from react-bmapgl.

Junior2Ran avatar Junior2Ran commented on May 24, 2024

地图引擎bug,已经修改,上线中

from react-bmapgl.

krmao avatar krmao commented on May 24, 2024

还在发布吗? @Junior2Ran https://lbsyun.baidu.com/jsdemo.htm#aAsynLoadMap 依然看不到地图

from react-bmapgl.

krmao avatar krmao commented on May 24, 2024

image

依然有问题哦,能给个临时的解决方案吗? @Junior2Ran

from react-bmapgl.

chenshuox avatar chenshuox commented on May 24, 2024

image

依然有问题哦,能给个临时的解决方案吗? @Junior2Ran

临时解决方案就是换高德 [😏]

from react-bmapgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.