Added constant

This commit is contained in:
Francesco Mangiacrapa 2023-05-12 11:12:39 +02:00
parent 16eb79cf32
commit 647ddfb2d8
1 changed files with 7 additions and 4 deletions

View File

@ -94,6 +94,9 @@ import ol.geom.Geometry;
*/
public class LayerManager {
private static final String ZOOM_TO_LAYERS_LABEL = "Zoom...";
private static final String ZOOM_TO_LAYERS_TITLE = "Zoom to Layers";
/** The ol map. */
private OpenLayerMap olMap;
@ -1010,9 +1013,9 @@ public class LayerManager {
}
});
final Button buttonViewLayers = new Button("Zoom in...");
final Button buttonViewLayers = new Button(ZOOM_TO_LAYERS_LABEL);
buttonViewLayers.getElement().setId("go-to-layers");
buttonViewLayers.getElement().setTitle("Zoom in...");
buttonViewLayers.getElement().setTitle(ZOOM_TO_LAYERS_TITLE);
buttonViewLayers.setType(ButtonType.LINK);
if (olMap.getCurrentZoomLevel() >= OLMapManager.LAYER_DETAIL_MAX_RESOLUTION) {
@ -1202,9 +1205,9 @@ public class LayerManager {
}
});
final Button buttonViewLayers = new Button("Zoom in...");
final Button buttonViewLayers = new Button(ZOOM_TO_LAYERS_LABEL);
buttonViewLayers.getElement().setId("go-to-layers");
buttonViewLayers.getElement().setTitle("Zoom in...");
buttonViewLayers.getElement().setTitle(ZOOM_TO_LAYERS_TITLE);
buttonViewLayers.setType(ButtonType.LINK);
if (olMap.getCurrentZoomLevel() >= OLMapManager.LAYER_DETAIL_MAX_RESOLUTION) {