diff --git a/react/src/components/article-panel.tsx b/react/src/components/article-panel.tsx index bd0350edd..26b4dd951 100644 --- a/react/src/components/article-panel.tsx +++ b/react/src/components/article-panel.tsx @@ -52,7 +52,7 @@ export function ArticlePanel({ article } : { article: Article }) {

- []} article_type={article.articleType} diff --git a/react/src/components/comparison-panel.tsx b/react/src/components/comparison-panel.tsx index fa0008589..ed4928fa4 100644 --- a/react/src/components/comparison-panel.tsx +++ b/react/src/components/comparison-panel.tsx @@ -152,7 +152,6 @@ export function ComparisonPanel(props: { joined_string: string, universes: strin x.longname)} colors={props.datas.map((_, i) => color(i))} - id="map_combined" basemap={{ type: "osm" }} />
diff --git a/react/src/components/map.tsx b/react/src/components/map.tsx index ba3ec504c..bc2c0d352 100644 --- a/react/src/components/map.tsx +++ b/react/src/components/map.tsx @@ -18,7 +18,6 @@ import { UNIVERSE_CONTEXT } from '../universe'; export interface MapGenericProps { height?: string, - id: string, basemap: Basemap, } @@ -31,11 +30,17 @@ class MapGeneric

extends React.Component

{ private basemap_props: null | Basemap = null; protected map: L.Map | undefined = undefined private exist_this_time: string[] = [] + private id: string; + + constructor(props: P) { + super(props); + this.id = "map-" + Math.random().toString(36).substring(2); + } render() { return (

-
+
{/* place this on the right of the map */}
extends React.Component

{ } async componentDidMount() { - const map = new L.Map(this.props.id, { + const map = new L.Map(this.id, { layers: [], center: new L.LatLng(0, 0), zoom: 0, zoomSnap: this.delta, zoomDelta: this.delta, wheelPxPerZoomLevel: 60 / this.delta }); diff --git a/react/src/components/mapper-panel.tsx b/react/src/components/mapper-panel.tsx index 7ef17948b..787015511 100644 --- a/react/src/components/mapper-panel.tsx +++ b/react/src/components/mapper-panel.tsx @@ -192,7 +192,6 @@ function MapComponent(props: MapComponentProps) { }}>

void - length: number + length: number, } function QuizQuestion(props: QuizQuestionProps & { @@ -165,7 +165,7 @@ function JuxtastatQuizQuestion(props: QuizQuestionProps & { {...props} get_question={() => render_question(props.question.question)} get_option={(letter) => props.question[`longname_${letter}`]} - get_demo={(letter) => }