hideGrid(map);
}
}
private void addLayer( IMap map ) {
MapGraphicService service=CatalogPlugin.getDefault().getLocalCatalog().getById(MapGraphicService.class, MapGraphicService.SERVICE_ID, ProgressManager.instance().get());
try {
List< ? extends IGeoResource> members = service.resources(ProgressManager.instance().get());
for( IGeoResource resource : members ) {
if( resource.canResolve(GridMapGraphic.class) ){
LayerFactory factory = map.getLayerFactory();
Layer newLayer = factory.createLayer(resource);
newLayer.getBlackboard().put(KEY, KEY);