use of au.org.emii.portal.composer.MapComposer in project spatial-portal by AtlasOfLivingAustralia.
the class SpeciesListEvent method onEvent.
@Override
public void onEvent(Event event) throws Exception {
Map<String, Object> params = new HashMap<String, Object>();
if (polygonLayerName != null) {
params.put(StringConstants.POLYGON_LAYER_NAME, polygonLayerName);
} else {
params.put(StringConstants.POLYGON_LAYER_NAME, StringConstants.NONE);
}
if (extraParams != null) {
params.put(StringConstants.EXTRAPARAMS, extraParams);
}
if (geospatialKosher != null) {
params.put(StringConstants.GEOSPATIAL_KOSHER, geospatialKosher);
}
params.put(StringConstants.CHOOSEENDEMIC, chooseEndemic);
MapComposer mc = (MapComposer) event.getPage().getFellow(StringConstants.MAPPORTALPAGE);
mc.openModal("WEB-INF/zul/tool/SpeciesList.zul", params, StringConstants.ADDTOOLWINDOW);
}
use of au.org.emii.portal.composer.MapComposer in project spatial-portal by AtlasOfLivingAustralia.
the class SamplingEvent method onEvent.
@Override
public void onEvent(Event event) throws Exception {
MapComposer mc = (MapComposer) event.getPage().getFellow(StringConstants.MAPPORTALPAGE);
Map<String, Object> params = new HashMap<String, Object>();
if (speciesLayerName != null) {
params.put(StringConstants.SPECIES_LAYER_NAME, speciesLayerName);
} else {
params.put(StringConstants.SPECIES_LAYER_NAME, StringConstants.NONE);
}
if (polygonLayerName != null) {
params.put(StringConstants.POLYGON_LAYER_NAME, polygonLayerName);
} else {
params.put(StringConstants.POLYGON_LAYER_NAME, StringConstants.NONE);
}
if (environmentalLayerName != null) {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, environmentalLayerName);
} else {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, StringConstants.NONE);
}
if (geospatialKosher != null) {
params.put(StringConstants.GEOSPATIAL_KOSHER, geospatialKosher);
}
mc.openModal("WEB-INF/zul/tool/Sampling.zul", params, StringConstants.ADDTOOLWINDOW);
}
use of au.org.emii.portal.composer.MapComposer in project spatial-portal by AtlasOfLivingAustralia.
the class ScatterplotEvent method onEvent.
@Override
public void onEvent(Event event) throws Exception {
MapComposer mc = (MapComposer) event.getPage().getFellow(StringConstants.MAPPORTALPAGE);
Map<String, Object> params = new HashMap<String, Object>();
if (speciesLayerName != null) {
params.put(StringConstants.SPECIES_LAYER_NAME, speciesLayerName);
} else {
params.put(StringConstants.SPECIES_LAYER_NAME, StringConstants.NONE);
}
if (polygonLayerName != null) {
params.put(StringConstants.POLYGON_LAYER_NAME, polygonLayerName);
} else {
params.put(StringConstants.POLYGON_LAYER_NAME, StringConstants.NONE);
}
if (environmentalLayerName != null) {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, environmentalLayerName);
} else {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, "default");
}
mc.openModal("WEB-INF/zul/tool/Scatterplot.zul", params, StringConstants.ADDTOOLWINDOW);
}
use of au.org.emii.portal.composer.MapComposer in project spatial-portal by AtlasOfLivingAustralia.
the class SitesBySpeciesEvent method onEvent.
@Override
public void onEvent(Event event) throws Exception {
Map<String, Object> params = new HashMap<String, Object>();
if (speciesLayerName != null) {
params.put(StringConstants.SPECIES_LAYER_NAME, speciesLayerName);
} else {
params.put(StringConstants.SPECIES_LAYER_NAME, StringConstants.NONE);
}
if (polygonLayerName != null) {
params.put(StringConstants.POLYGON_LAYER_NAME, polygonLayerName);
} else {
params.put(StringConstants.POLYGON_LAYER_NAME, StringConstants.NONE);
}
if (environmentalLayerName != null) {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, environmentalLayerName);
} else {
params.put(StringConstants.ENVIRONMENTALLAYERNAME, "default");
}
MapComposer mc = (MapComposer) event.getPage().getFellow(StringConstants.MAPPORTALPAGE);
mc.openModal("WEB-INF/zul/tool/SitesBySpecies.zul", params, StringConstants.ADDTOOLWINDOW);
}
use of au.org.emii.portal.composer.MapComposer in project spatial-portal by AtlasOfLivingAustralia.
the class AreaPolygon method onClick$btnClear.
public void onClick$btnClear(Event event) {
MapComposer mc = getMapComposer();
if (layerName != null && mc.getMapLayer(layerName) != null) {
mc.removeLayer(layerName);
}
String script = mc.getOpenLayersJavascript().addPolygonDrawingTool();
mc.getOpenLayersJavascript().execute(mc.getOpenLayersJavascript().getIFrameReferences() + script);
displayGeom.setValue("");
btnNext.setDisabled(true);
btnClear.setDisabled(true);
invalidWKT.setValue("");
}
Aggregations