react-amap
react-amap copied to clipboard
WebSocket connection to 'ws://vdata.amap.com/' failed
- [x] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。
- [x] 我已经搜索过文档,并且仍然没有找到解决方案。
- [x] 我写了个问题重现的例子,链接或者代码将会贴在下面。
What is actually happening?
"react-amap": "^1.2.8", "react-amapui-wrapper": "^1.0.2"
electron下
<Amap amapkey={AmapKey} scrollWheel={false}
protocol="http"
useAMapUI={true} mapStyle={'amap://styles/darkblue'}
center={mapCenter} zoom={zoom}
>
<Markers
render={(extData)=>(<WarningLighting type={extData.type}/>)}
markers={positionMarkers}
useCluster
events={{
click:(e,marker)=>markersEvents(e,marker)
}}
/>
</Amap>
加载完成后报错
WebSocket connection to 'ws://vdata.amap.com/' failed: Error during WebSocket handshake: Unexpected response code: 404
如在不使用react-amapui-wrapper下,放大地图依然会报如上错误