问题描述
我想在ol6中添加一些我在Openlayer2中使用的控件功能。在openlayer2中,我使用了导航历史记录,单击并拖动缩放来激活购买控件。
var mouseControl = {'pan':'move','zoom':'crosshair','zoomout':'crosshair','toolQuery':'context-menu','mse':'crosshair'};
for(key in controls) {
control = controls[key];
// if condition here-based on tool(zoom in/out,pan/navhistory,etc) selected
control.activate(); //activate based on the tool selected
}
我如何在ol6中做
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)