map.getLayerCollection().setSelectedLayer(null);
return;
}
VectorLayer layer = (VectorLayer) LayerFactory.createFeatureLayer(features);
Style2D style = new Style2D();
style.setNeedArea(false);
final ArrowSymbol symbol = new ArrowSymbol();
style.setPointSize(15);
style.setLineColor(Color.magenta);
style.setStroke(new BasicStroke(3));
style.setPointColor(Color.magenta);
layer.setDefaultStyle(new Symbol[]{new GeneralSymbol(style),symbol});
map.getLayerCollection().setSelectedLayer(
layer);
}