Comments (6)
+1 忽然遇到这个问题
mac chrome 没问题
windows chrome 报错 cannot read property result of indefined
"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.
果然是浏览器版本差异导致的这个报错;
mac chrome version = 95.0.4638.54 报错;
mac safari version = 14.0.2 (16610.3.7.1.9) 无报错;
很神奇~
from react-bmapgl.
地图引擎bug,已经修改,上线中
from react-bmapgl.
还在发布吗? @Junior2Ran https://lbsyun.baidu.com/jsdemo.htm#aAsynLoadMap 依然看不到地图
from react-bmapgl.
依然有问题哦,能给个临时的解决方案吗? @Junior2Ran
from react-bmapgl.
依然有问题哦,能给个临时的解决方案吗? @Junior2Ran
临时解决方案就是换高德 [😏]
from react-bmapgl.
Related Issues (20)
- @types/bmapgl
- react-bmapgl/types/bmapgl/index.d.ts”不是模块 HOT 6
- 支持react-native吗? HOT 1
- 可以麻烦同步一下@types/bmapgl 这个类型定义文件吗? HOT 1
- 如何使用v3.0版本 HOT 3
- GL版本不支持GeoJsonLayer吗?
- MapvglView销毁报错 HOT 2
- 我决定还是放弃使用这个百度官方的react版百度地图了 HOT 2
- Cannot find module 'react-bmapgl/dist/Map' or its corresponding type declarations.
- 异步加载与按需导入问题
- 请教,如何修改polygon的path? HOT 1
- Unexpected identifier '圆形' SyntaxError: Unexpected identifier '圆形'
- ReactDOM.render is no longer supported in React 18
- npm install @types/bmapgl -D下载不了 node 版本14.19.3 HOT 1
- 地图类型为earth时,缩放有问题;地图类型为normal时,折线有问题
- TS 的类型定义是不是改成 @types/bmapgl-browser 了? HOT 3
- [types] AddressComponent
- Marker能不能加上旋转角度的属性 HOT 1
- 一直报uncaughtException ReferenceError: md5 is not defined的错误
- typescript中使用错误, HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bmapgl.