Hi guys, I'm trying to create a program that select a determinate polygon
from a shapefile, I've many layers (Roads, Buildings, Rivers, and so on),
so I wanna select a polygon depend of the layer that I want so use.
There is my sketch:

   private void showSelectedGeometry(Set<FeatureId> mId) {
        Style mStyle;
        if (mId.isEmpty()){
            mStyle = crearStyle();
        } else {
            mStyle = crearStyleSeleccion(mId);
        }
        mJmapFrame.getMapContext().getLayer(1).setStyle(mStyle); //I always
select the 2nd layer, so It's "Hard coded"...
        mJmapFrame.getMapPane().repaint();
    }

I'll appreciate if you can help me. And, I hope you can understand my
spanglish (again...) xD
-- 
TSU. Amador Cuenca
------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to