S3DBLayer: add zoom limit options #475

This commit is contained in:
Emux 2018-01-10 20:21:56 +02:00
parent 51d4521e6a
commit 969c44717a
No known key found for this signature in database
GPG Key ID: 89C6921D7AF2BDD0
3 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@
## New since 0.9.2
- S3DB layer [#475](https://github.com/mapsforge/vtm/pull/475)
- Mapsforge maps **v5 beta** S3DB layer [#475](https://github.com/mapsforge/vtm/pull/475)
- OpenMapTiles GeoJSON vector tiles [#385](https://github.com/mapsforge/vtm/issues/385)
- Render theme fallback internal resources [#477](https://github.com/mapsforge/vtm/issues/477)
- Many other minor improvements and bug fixes

View File

@ -43,8 +43,8 @@ public class BuildingLayer extends Layer implements TileLoaderThemeHook {
protected final static int BUILDING_LEVEL_HEIGHT = 280; // cm
private final static int MIN_ZOOM = 17;
private final static int MAX_ZOOM = 17;
protected final static int MIN_ZOOM = 17;
protected final static int MAX_ZOOM = 17;
public static boolean POST_AA = false;
public static boolean TRANSLUCENT = true;

View File

@ -1,5 +1,6 @@
/*
* Copyright 2018 Gustl22
* Copyright 2018 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@ -46,7 +47,11 @@ public class S3DBLayer extends BuildingLayer {
private boolean mColored = true;
public S3DBLayer(Map map, VectorTileLayer tileLayer) {
super(map, tileLayer, true);
this(map, tileLayer, MIN_ZOOM, MAX_ZOOM);
}
public S3DBLayer(Map map, VectorTileLayer tileLayer, int zoomMin, int zoomMax) {
super(map, tileLayer, zoomMin, zoomMax, true);
}
public boolean isColored() {