删除 OpenLayers 3 中的控件
Remove a control in OpenLayers 3
有没有办法删除 OpenLayers 3 中的控件?我正在创建一个自定义控件,其中包括一个文本框和一个用于执行功能的按钮。我希望用户能够单击 "x" 关闭控件 and/or 按 esc 键 "close" 它。
有
ol.Map.removeControl(yourControl);
here 是否在 API 文档中
有没有办法删除 OpenLayers 3 中的控件?我正在创建一个自定义控件,其中包括一个文本框和一个用于执行功能的按钮。我希望用户能够单击 "x" 关闭控件 and/or 按 esc 键 "close" 它。
有
ol.Map.removeControl(yourControl);
here 是否在 API 文档中