Skip to content

Commit

Permalink
chore: add brand colors to map points and make istanbul the center of…
Browse files Browse the repository at this point in the history
… the map
  • Loading branch information
oliviareichl committed Jun 12, 2024
1 parent 37699c0 commit eb6554f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
10 changes: 5 additions & 5 deletions components/geo-map.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions config/geo-map.config.ts
Original file line number Diff line number Diff line change
@@ -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,
};
72 changes: 36 additions & 36 deletions project.config.json
Original file line number Diff line number Diff line change
@@ -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": ""
}

0 comments on commit eb6554f

Please sign in to comment.