increasing max zoom level and min resolution

This commit is contained in:
Francesco Mangiacrapa 2021-09-08 16:15:36 +02:00
parent 035b71be37
commit 3d003a7429
4 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public class OLMapManager {
private Double zoomEnd = null; private Double zoomEnd = null;
private ol.Extent dragEndExtent = null; private ol.Extent dragEndExtent = null;
public static final int QUERY_MIN_ZOOM_LEVEL = 13; public static final int QUERY_MIN_ZOOM_LEVEL = 13;
public static final Double LAYER_DETAIL_MIN_RESOLUTION = 0.10; public static final Double LAYER_DETAIL_MIN_RESOLUTION = 0.01;
public static final Double LAYER_DETAIL_MAX_RESOLUTION = 13.0; public static final Double LAYER_DETAIL_MAX_RESOLUTION = 13.0;

View File

@ -60,6 +60,8 @@ import ol.style.TextOptions;
*/ */
public class LightOpenLayerOSM { public class LightOpenLayerOSM {
public static final int MAX_ZOOM = 20;
/** The map. */ /** The map. */
private Map map; private Map map;

View File

@ -68,6 +68,8 @@ import ol.source.XyzOptions;
*/ */
public abstract class OpenLayerOSM { public abstract class OpenLayerOSM {
public static final int MAX_ZOOM = 21;
/** /**
* Click listener. * Click listener.
* *
@ -163,7 +165,7 @@ public abstract class OpenLayerOSM {
Projection projection = new Projection(projectionOptions); Projection projection = new Projection(projectionOptions);
viewOptions.setProjection(projection); viewOptions.setProjection(projection);
viewOptions.setMaxZoom(19); viewOptions.setMaxZoom(MAX_ZOOM);
// create a view // create a view
view = new View(viewOptions); view = new View(viewOptions);

View File

@ -26,8 +26,6 @@ import org.gcube.application.geoportalcommon.shared.products.model.RelazioneScav
import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV; import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV;
import org.gcube.application.geoportalcommon.util.URLParserUtil; import org.gcube.application.geoportalcommon.util.URLParserUtil;
import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerService; import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerService;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.gallery.ImagesGallery;
import org.gcube.portlets.user.geoportaldataviewer.client.ui.products.concessioni.RelazioneScavoView;
import org.gcube.portlets.user.geoportaldataviewer.server.gis.FeatureParser; import org.gcube.portlets.user.geoportaldataviewer.server.gis.FeatureParser;
import org.gcube.portlets.user.geoportaldataviewer.server.gis.WMSUrlValidator; import org.gcube.portlets.user.geoportaldataviewer.server.gis.WMSUrlValidator;
import org.gcube.portlets.user.geoportaldataviewer.server.util.CheckAccessUtil; import org.gcube.portlets.user.geoportaldataviewer.server.util.CheckAccessUtil;