From eb6554f68d69062f1e915a676a8824a85ca5570b Mon Sep 17 00:00:00 2001 From: oliviareichl Date: Wed, 12 Jun 2024 11:42:51 +0200 Subject: [PATCH] chore: add brand colors to map points and make istanbul the center of the map --- components/geo-map.client.vue | 10 ++--- config/geo-map.config.ts | 8 ++-- project.config.json | 72 +++++++++++++++++------------------ 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/components/geo-map.client.vue b/components/geo-map.client.vue index 6dd9eaaa..5cf613c8 100644 --- a/components/geo-map.client.vue +++ b/components/geo-map.client.vue @@ -2,7 +2,7 @@ import "maplibre-gl/dist/maplibre-gl.css"; import { assert } from "@acdh-oeaw/lib"; -import * as turf from "@turf/turf"; +// import * as turf from "@turf/turf"; import { FullscreenControl, type GeoJSONSource, @@ -217,10 +217,10 @@ function updateScope() { sourcePolygons?.setData(geojsonPolygons); sourceCenterpoints?.setData(geojsonCenterPoints); - if (geojsonPoints.features.length > 0) { - const bounds = turf.bbox(geojsonPoints); - map.fitBounds(bounds, { padding: 50 }); - } + // if (geojsonPoints.features.length > 0) { + // const bounds = turf.bbox(geojsonPoints); + // map.fitBounds(bounds, { padding: 50 }); + // } } function updatePolygons() { diff --git a/config/geo-map.config.ts b/config/geo-map.config.ts index 7878223b..7ff738d6 100644 --- a/config/geo-map.config.ts +++ b/config/geo-map.config.ts @@ -1,6 +1,6 @@ export const initialViewState = { - longitude: 16.371870746468748 /** Vienna */, - latitude: 48.208191950123414 /** Vienna */, - pitch: 45 /** degrees */, - zoom: 8, + longitude: 28.97953 /** Istanbul */, + latitude: 41.015137 /** Istanbul */, + pitch: 60 /** degrees */, + zoom: 14, }; diff --git a/project.config.json b/project.config.json index 0f0160e5..d58217d6 100644 --- a/project.config.json +++ b/project.config.json @@ -1,38 +1,38 @@ { - "colors": { - "brand": "#b8cf5b", - "geojsonPoints": "#69c0ef", - "geojsonAreaCenterPoints": "#b8cf5b", - "entityColors": { - "stratigraphic_unit": "#9723c1", - "place": "#69c0ef", - "acquisition": "#6a040f", - "activity": "#9d0208", - "move": "#e85d04", - "artifact": "#ee6c4d", - "human_remains": "#3d0066", - "person": "#ffca3a", - "feature": "#b8cf5b", - "event": "#ff595e", - "type": "#6a4c93", - "source": "#d60C19", - "file": "#9d4edd", - "group": "#f48c06" - }, - "entityDefaultColor": "#666", - "disabledNodeColor": "#aaa" - }, - "map": { - "startPage": true - }, - "fullscreen": true, - "defaultLocale": "en", - "logos": { - "light": "/assets/images/approaching_byzantium_logo.png", - "dark": "/assets/images/apbyz_logo_inv.png", - "withTextLight": "/assets/images/approaching_byzantium_logo.png", - "withTextDark": "/assets/images/apbyz_logo_inv.png" - }, - "imprint": "acdh-ch", - "twitter": "" + "colors": { + "brand": "#e63875", + "geojsonPoints": "#e63875", + "geojsonAreaCenterPoints": "#69c0ef", + "entityColors": { + "stratigraphic_unit": "#9723c1", + "place": "#69c0ef", + "acquisition": "#6a040f", + "activity": "#9d0208", + "move": "#e85d04", + "artifact": "#ee6c4d", + "human_remains": "#3d0066", + "person": "#ffca3a", + "feature": "#b8cf5b", + "event": "#ff595e", + "type": "#6a4c93", + "source": "#d60C19", + "file": "#9d4edd", + "group": "#f48c06" + }, + "entityDefaultColor": "#666", + "disabledNodeColor": "#aaa" + }, + "map": { + "startPage": true + }, + "fullscreen": true, + "defaultLocale": "en", + "logos": { + "light": "/assets/images/approaching_byzantium_logo.png", + "dark": "/assets/images/apbyz_logo_inv.png", + "withTextLight": "/assets/images/approaching_byzantium_logo.png", + "withTextDark": "/assets/images/apbyz_logo_inv.png" + }, + "imprint": "acdh-ch", + "twitter": "" }