react-amap
react-amap copied to clipboard
基于 React 封装的高德地图组件。AMap Component Based On React.
Amap ,the latest version is limited way of introduction,add an external change parameter Please makes sure these boxes are checked before submitting your PR, thank you! * [ ] Make...
例如一开始只展示了省,点击省就会进去省级地图
+ [x] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。 + [x] 我已经搜索过[文档](https://elemefe.github.io/react-amap/articles/start),并且仍然没有找到解决方案。 + [x] 我写了个问题重现的例子,链接或者代码将会贴在下面。 #### Reproduce Example Link or Code Fragment ```javascript window.AMap.sth(sth) // Property 'AMap' does not exist on type 'Window & typeof...
Please makes sure these boxes are checked before submitting your PR, thank you! * [ ] Make sure you follow the contributing guide. * [ ] Rebase before creating a...
- [x] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。 - [x] 我已经搜索过[文档](https://elemefe.github.io/react-amap/articles/start),并且仍然没有找到解决方案。 + [ ] 我写了个问题重现的例子,链接或者代码将会贴在下面。 #### Reproduce Example Link or Code Fragment 暂无 #### What is Expected? 在单页应用中,支持不同的页面加载不同的地图key(业务场景) #### What is actually happening? A页面加载过地图,切换到B页面重新给地图赋值KEY,不生效
[当使用高德官方文档的AMap.Autocomplete时,](http://lbs.amap.com/api/javascript-api/reference/search#m_AMap.Autocomplete) AutocompleteOptions里的一个属性: **input** 配置后搜索提示服务功能可以用,但是滚动屏幕会报 “Cannot read property 'offsetTop' of null”错误;  # 向上或向下滚动页面后:  求解决 谢谢了!
我只使用了自定义DOM组件,类似官网(代码如下) ``` render(){ return A Custom Layer Current Center Is: {this.state.center} Another Custom Layer {alert('You Clicked!')}}>An Ant Design Button } ``` 当网络较慢且第一次加载时,有大概率报`Cannot read property 'Q' of null`,然后地图会继续慢慢加载出来,但是自定义的DOM组件不会跟着出现。 Chrome的network设置成Slow 3G可能会复现,如有翻墙工具,开全局翻墙基本能够复现
+ [x] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。 没有搜到相关 + [x] 我已经搜索过[文档](https://elemefe.github.io/react-amap/articles/start),并且仍然没有找到解决方案。 没有搜到相关 + [x] 我写了个问题重现的例子,链接或者代码将会贴在下面。 window.AMap.plugin('AMap.PlaceSearch', () => { placeSearch = new window.AMap.PlaceSearch({ input: 'tipinput', pageSize: 10, pageIndex: 1, citylimit: false // citylimit:...
1.通过geocoder.getLocation地址获取经纬度,这个经纬度在地图上的标记和高德地图上的标记差距很大。 2.通过AMap.convertFrom转gsp点位坐标,然后还是和高德地图的标记差距很大
希望可以添加搜索组件, 