Skip to content

Commit

Permalink
added useFeatures to layergroup page
Browse files Browse the repository at this point in the history
  • Loading branch information
turingtestfail committed Feb 26, 2025
1 parent 8bab0ac commit 26ad74f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ <h3><wicket:message key="mapmlSectionHeading">MapML Settings</wicket:message></h
<input id="multiextent" wicket:id="multiextent" type="checkbox"></input>
<label for="multiextent"><wicket:message key="multiextent">Multi-Layer as Multi-Extent</wicket:message></label>
</li>
<li>
<input id="useFeatures" wicket:id="useFeatures" type="checkbox"></input>
<label for="useFeatures"><wicket:message key="mapmlUseFeatures">Use Features</wicket:message></label>
</li>
</ul>
</fieldset>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.geoserver.mapml;

import static org.geoserver.mapml.MapMLConstants.MAPML_MULTIEXTENT;
import static org.geoserver.mapml.MapMLConstants.MAPML_USE_FEATURES;
import static org.geoserver.mapml.MapMLConstants.MAPML_USE_TILES;
import static org.geoserver.mapml.MapMLLayerConfigurationPanel.getAvailableMimeTypes;
import static org.geoserver.web.demo.MapMLFormatLink.FORMAT_OPTION_DEFAULT;
Expand Down Expand Up @@ -70,6 +71,11 @@ protected void onUpdate(AjaxRequestTarget ajaxRequestTarget) {
});
add(useTiles);

// add the checkbox to select features or not
MapModel<Boolean> useFeaturesModel = new MapModel<>(new PropertyModel<>(model, METADATA), MAPML_USE_FEATURES);
CheckBox useFeatures = new CheckBox("useFeatures", useFeaturesModel);
add(useFeatures);

// add the checkbox to select multiextent or not
MapModel<Boolean> multiextentModel = new MapModel<>(new PropertyModel<>(model, METADATA), MAPML_MULTIEXTENT);
// in previous versions, the multiextent option was stored in the WMSInfo
Expand Down

0 comments on commit 26ad74f

Please sign in to comment.