And so we do:
Listmapgraphics = CatalogPlugin.getDefault().getLocalCatalog().find(
MapGraphicService.SERVICE_URL, null);
Listmembers = mapgraphics.get(0).members(null);
for( IResolve resolve : members ) {
if (resolve.canResolve(GeonotesMapGraphic.class)) {
ApplicationGIS.addLayersToMap(ApplicationGIS.getActiveMap(), Collections
.singletonList(resolve.resolve(IGeoResource.class, null)), 0);
}
}
No comments:
Post a Comment