Releases: ElemeFE/react-amap
Releases · ElemeFE/react-amap
允许自定义地图组件
Compare
Sorry, something went wrong.
No results found
ioslh
released this
06 Jul 17:06
版本 1.0.0 中,react-amap 拥有了组件的扩展能力。如果 react-amap 中已有的组件不能满足你的业务需求,你可以使用自己写的地图组件;
在你的组件中,可以通过 props 访问到创建好的高德地图实例,以及地图的 div 容器;拥有访问这两个属性的能力后,你可以根据高德原生 API 做高德允许你做的一切事情。实际上,react-amap 中的其他组件就是这么做的。文档内容请参考自定义地图组件。
删除单独引用的 CSS 文件
Compare
Sorry, something went wrong.
No results found
ioslh
released this
12 May 08:01
唯一使用了样式的 Markers 组件,直接把样式写在代码里,不需要为了这个额外引入 css-loader 之类的插件进行打包。
Optimize bundle way
Compare
Sorry, something went wrong.
No results found
ioslh
released this
13 Apr 04:44
Optimize bundle way so that you can import component one by one separately.
import Map from 'react-amap/lib/map' ;
import Marker from 'react-amap/lib/marker' ;
// ...
Fix Markers Bug
Compare
Sorry, something went wrong.
No results found
ioslh
released this
27 Mar 04:19
Clear previous Markers FORCE before refresh them.
Add MouseTool Component
Compare
Sorry, something went wrong.
No results found
ioslh
released this
27 Mar 04:21
Add New Component MouseTool , which enable developer to active mouse utilities .