删除SelectFeature

0 投票
您好:

selectLineFeature = new SuperMap.Control.SelectFeature([vectorLineLayer, animatorLineVector],
                            {
                        onSelect:onFeatureSelect,onUnselect:onUnFeatureSelect,hover:false,toggle:true
                            });
                    map.addControl(selectLineFeature);
                    selectLineFeature.activate();

我现在用了这个,请问该怎么样去删除这个图层呢?
11月 22, 2018 分类:  147次浏览 | 用户: liuxin16099 初出茅庐 (21 分)

1个回答

0 投票
 
已采纳

您可以直接注销控件,

selectFeature.deactivate();
11月 22, 2018 用户: 林立勇 才高八斗 (895 分)
采纳于 11月 22, 2018 用户:liuxin16099
...