Hi ,
I am using the 1.5 (rc1) owsExplorer client with a FeatureSelectHandler in
my config. I have modified the stylesheet that parses my WFS capabilities
doc so that I can use a modified contextEditor and stylesheet to add a wfs
layer to my OWS context doc giving me the ability to save wfs layers to a
user's OWS for reconstructing customized maps later. Additionally the
wfsCap stylesheet adds a link for querying each layer using <a
href="javascript:config.objects.{$modelId}.setParam('wfs_GetFeature','{$name
}')">query</a> which adds the same layer for querying, but with a hollow
fill to the FeatureCollection where the FeatureSelectHandler allows for
selections. In other words a type of acetate layer for capturing mouse
events and returning attributes from the layer. All of this works fine,
except once the query is invoked there doesn't seem to be a way of getting
rid of the query acetate. Clicking other buttons like zoom or pan doesn't
release the mouse capture from the query layer. I have been playing with
another link for the layer that stops the query by calling a function i.e.
javascript:config.objects.featureHighlighter.dropAcetate(?) in
FeatureSelectHandler.js for unregistering the events and setting
this.mbFeatureSelectHandler to null. So something similar to
OpenLayers.Feature.layer.events.unregister('mousedown', this,
featureSelectHandler.onClick);
OpenLayers.Feature.layer.events.unregister('mousemove', this,
featureSelectHandler.onHover);
But I have had no luck whatsoever. At that point OpenLayers.Feature.layer
has no properties. I am unsure which object that I could send from the
stylesheet to be able to unregister the events against. It has to be the
layer but again I am unsure how to get the layer. And besides shouldn't
FeatureSelectHandler let go of the mouse events when you use another tool?
Any help would be greatly appreciated.
Jeff Cavner
GIS Specialist
Earth Data Analysis Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users