Hello Erik, > i want the users to be able to select more as one feature from a shape file > in the map. (a la select with frame) > how can i do it? > Could anyone point me in the right direction? Do i have to use a filter?
The tutorial is already pointing you in the right direction for this. If you study the code for the selectFeatures method... http://docs.geotools.org/latest/userguide/tutorial/map/style.html#what-features-did-the-user-click-on ...you can see that a rectangle (ReferencedEnvelope object) is being constructed from a mouse click position which is then used in a filter. You will have a rectangle instead of a click position but can use the rest of the code from that method unmodified since it already handles the case of multiple selected features. Michael ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
