您好,以leaflet为例,只需要在新的function中传入你要修改的矢量数据,然后通过setStyle设置新的样式,再下一步redraw()对象就可以了
https://leafletjs.com/reference-1.3.0.html#polygon-setstyle
https://leafletjs.com/reference-1.3.0.html#polygon-redraw