I'm sure this is answered somewhere, but I'm sorry that I wasn't able to
find.
I've added a MapLayerTable to my application, and I'm loading multiple
layers using shape files successfully. Now I would like to select features
on the map of the selected layer. For this, I would need to find the
currently clicked layer. I've already used the following code to check
whether the layers are active and selected.
for (Layer layer : mapPane.getMapContent().layers()) {
if (layer.isSelected()) {
System.out.println("Layer selected : " + layer.getTitle());
}
}
But what I need is a method to select only one layer. Eg: clicked layer,
right clicked layer. I hope there would be a method to select one layer.
Thank you
--
regards,
*Thilina Yapa Bandara*
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users