I assume your query works correctly for the top vector layer, but not for layers underneath?
I think the querying code still works the same way it did when we coded it a year or so ago (I build the gml_viewer release at the same time). What we can do is attach mouse click events features in the top layer, which means feature selection works well there. The problem is that if the mouse click is cannot be propagated udown and against features in lower layers. So in the lower layers we do a crude select-by-boundingbox. This is a hard limit within SVG/VML. There has been some discussion about writing feature selection algorithms in Javascript on Openlayers lists but I think this is still vapourware. So some options are: 1. Accept limited selection (ie by BBox) 2. Merge all your layers into one for selection 3. Write an AJAX WFS query to Geoserver triggered by mouse action. 4. Write JS feature selection algorithms. 5. Think of something else that I haven't thought of. Blue wrote: > Hi, > > I'm using MapBuilder1.5(RC1) in my web page. The map has 26 vectorial > layers and a raster layer. The problem is in WFS query. When a place > of vectorial layers is selected, the element return is not the most > nearby and in other cases is selected a large area that no exit in any > shapes. All vectorial layers are included in the same <WfsGetFeature> > and I am using geoserver 1.6. > > Regards. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > -- Cameron Shorter Geospatial Systems Architect Tel: +61 (0)2 8570 5050 Mob: +61 (0)419 142 254 Think Globally, Fix Locally Commercial Support for Geospatial Open Source Solutions http://www.lisasoft.com/LISAsoft/SupportedProducts.html ------------------------------------------------------------------------- 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
