eInteraction(drawTool);
            } 
            //实例化交互绘制类对象并添加到地图容器中
            drawTool = new ol.interaction.Draw({
                type: 'LineString',
                //绘制层数据源
                source: interActionSource,
                geometryFunction: geometryFunction,
                //最大点数
                maxPoints: 2
            });
            map.addInteraction(drawTool);
            //点击查询的回调函数
            drawTool.on(