-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用Boundary行政区域组件时,出现了前一个区域的边界线没有清除问题,导致显示错乱。 #89
Comments
@FishLuo1992 嗨,能否在 https://codesandbox.io 中给我一个demo?选择第二个后,第一个没有清除?另外,你当前使用的 也许你给我部分代码片段,有助于帮助我来解决你遇到的问题。 |
`import React,{ Component } from 'react'; // 选择城市 renderSearchForm =()=>{ <Linkage handleCityChange={(value) =>{this.handleCityChange(value)}} /> ) } renderBoundary = (siteName)=>{ render() { {this.renderSearchForm()} {this.renderBoundary(siteName)} ); } }` Linkage是我定义省下面的市下拉选择和搜索的Form表单组件,选中后需要更改行政区域。 rc-bmap是"rc-bmap": "^1.0.1"。 |
感谢提供, renderBoundary = (siteName) => {
return (
<Boundary
key={`Boundary_${siteName}`}
name={siteName}
...
/>
)
} |
现在你可以升级至 |
感谢大佬。 |
需求:动态选择省下面的市,Boundary的name动态改变。问题:当选中第二个开始,前面的行政区域的覆盖物和边界线没有清除。
有方法能每次更新都清楚前面的Boundary视图层吗?
The text was updated successfully, but these errors were encountered: