Changing a few style thresholds

This commit is contained in:
vdv committed 2023-01-31 11:56:06 +01:00
1 parent 046c4e47d5
commit 92c2d37e3b
3 files changed
+88 -10

No files matched your search

+3 -3
View File
@@ -369,14 +369,14 @@ const styles = {
new Point(getCenter(feature.getGeometry().getExtent()))
);
}
if (getZoomInteger() < 14) {
if (getZoomInteger() < 16) {
return null;
}
const highlightedTagValue = getHighlightedTagValue(feature);
const isHighlightedFeature = !!highlightedTagValue;
if (
(isHighlightedFeature && getZoomInteger() < 14) ||
(!isHighlightedFeature && getZoomInteger() < 16)
(isHighlightedFeature && getZoomInteger() < 16) ||
(!isHighlightedFeature && getZoomInteger() < 18)
) {
return null;
}
+5 -5
View File
@@ -112,12 +112,12 @@ export const Overlays: Component<Props> = ({ map }) => {
// const vectorTileSource = constructSource();
const vectorTileSource = new VectorTileSource({
// url: 'https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/hiking/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/json;type=geojson',
url: 'https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/hiking/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/vnd.mapbox-vector-tile',
url: 'https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/hiking/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/json;type=geojson',
// url: 'https://geo.dyomedea.com/geoserver/gwc/service/wmts/rest/hiking/EPSG:900913/EPSG:900913:{z}/{y}/{x}?format=application/vnd.mapbox-vector-tile',
// url: 'http://localhost:8080/geoserver/gwc/service/tms/1.0.0/test%3Atransportation@EPSG%3A900913@pbf/{z}/{x}/{-y}.pbf',
// url: 'https://geo.dyomedea.com/services/spain/tiles/{z}/{x}/{y}.pbf',
// format: new GeoJSON({ dataProjection: 'EPSG:900913' }),
format: new MVT({ featureClass: Feature }),
format: new GeoJSON({ dataProjection: 'EPSG:900913' }),
// format: new MVT({ featureClass: Feature }),
maxZoom: 15,
tileSize: 256,
});
@@ -142,7 +142,7 @@ export const Overlays: Component<Props> = ({ map }) => {
// feature,
// });
if (
getZoomInteger() < 14 &&
getZoomInteger() < 16 &&
getVectorTileFeatureType(feature) === 'poi' &&
isHighlighted(feature)
) {