HSLayers.Control.Query ====================== `HSLayers.Control.Query `_: user can click in the map and every MapServer or WMS layer is queried and results are rendered into some div or `OpenLayers.Popup`. Query tool is able to parser text, html, xml or GML (both MapServer and ArcIMS). .. code-block:: javascript // let's define some example query var query = new HSLayers.Control.Query({ horizontal:false, container:this.mapViewer.infoPanel, displayClass: "hsControlQuery", scope:this, onInfo: function() { this.mapViewer.toolsPanel.activate(1); var features = HSLayers.Util.geoMicroformatParser(this.mapViewer.infoPanel.body.dom,this.origProjection,this.map.getProjection()); this.addFeaturesToMap(features); } }); // register some events query.events.register("beforeQuery",this,function(){this.mapViewer.toolsPanel.activate(1),this.mapViewer.infoPanel.maskOn();}); query.events.register("afterQuery",this,function(){this.mapViewer.infoPanel.maskOff();}); this.mapToolBar.addControls([query]); pane.addControls([query]);