rc-bmap
rc-bmap copied to clipboard
Cannot read property 'Geolocation' of undefined
Do you want to request a feature or report a bug? 这是一个bug What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run. Paste the link to your CodeSandbox (https://codesandbox.io/s/jnnxrwq5y3) example below: × 错误如下: Unhandled Rejection (TypeError): Cannot read property 'Geolocation' of undefined BGeolocation node_modules/rc-bmap/lib/core/utils/map.js:135 132 | return new global.BMap.LocalSearch(location, opts); 133 | }, 134 | BGeolocation: function BGeolocation() {
135 | return new global.BMap.Geolocation(); | ^ 136 | }, 137 | BConvertor: function BConvertor() { 138 | return new global.BMap.Convertor(); What is the expected behavior? 我期望能正确的获取到当前位置信息