More style tweaks, add geoip server

This commit is contained in:
Pieter Vander Vennet 2024-06-17 19:27:21 +02:00
parent 06b6f6d471
commit 66a48daba8
7 changed files with 67 additions and 4754 deletions

View file

@ -163,6 +163,8 @@ export default class Constants {
* This is a MapLibre/MapBox vector tile server which hosts vector tiles for every (official) layer
*/
public static VectorTileServer: string | undefined = Constants.config.mvt_layer_server
public static GeoIpServer: string | undefined = Constants.config.geoip_server
public static readonly maptilerApiKey = "GvoVAJgu46I5rZapJuAy"
public static readonly SummaryServer: string = Constants.config.summary_server

View file

@ -158,10 +158,10 @@ export default class ThemeViewState implements SpecialVisualizationState {
layout.id
)
this.map = new UIEventSource<MlMap>(undefined)
const initial = new InitialMapPositioning(layout)
const geolocationState = new GeoLocationState()
const initial = new InitialMapPositioning(layout, geolocationState)
this.mapProperties = new MapLibreAdaptor(this.map, initial)
const geolocationState = new GeoLocationState()
this.featureSwitchIsTesting = this.featureSwitches.featureSwitchIsTesting
this.featureSwitchUserbadge = this.featureSwitches.featureSwitchEnableLogin