Geomap: Upgrade Open Layers (#107598)

* Geomap: Upgrade Open Layers

* Fix TypeScript errors

* Fix possibly null errors

* Fix pointer events

* Simplify webgl implementation for markers

* Improve types

* Fix offset expression

* Improve layers types

* Improve types for tooltip

* Improve types for frameVectorSource

* For regular shapes convert size to radius

* Update import format for new version of ol

* Fix ESM syntax errors

* Fix more e2e stuff

* Fix tooltip test

* Simplify redundant keys
This commit is contained in:
Drew Slobodnjak
2025-07-15 17:04:41 -07:00
committed by GitHub
parent b691b3288d
commit 1143cf130e
36 changed files with 332 additions and 337 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
"marked-mangle": "1.1.11",
"moment": "2.30.1",
"moment-timezone": "0.5.47",
"ol": "7.4.0",
"ol": "10.6.0",
"papaparse": "5.5.3",
"react-use": "17.6.0",
"rxjs": "7.8.2",
+1 -1
View File
@@ -1,4 +1,4 @@
import { Map as OpenLayersMap } from 'ol';
import OpenLayersMap from 'ol/Map';
import BaseLayer from 'ol/layer/Base';
import { ReactNode } from 'react';
+1 -1
View File
@@ -98,7 +98,7 @@
"micro-memoize": "^4.1.2",
"moment": "2.30.1",
"monaco-editor": "0.34.1",
"ol": "7.4.0",
"ol": "10.6.0",
"prismjs": "1.30.0",
"rc-cascader": "3.34.0",
"rc-drawer": "7.3.0",
@@ -1,5 +1,5 @@
import { WKT } from 'ol/format';
import { Geometry } from 'ol/geom';
import WKT from 'ol/format/WKT';
import Geometry from 'ol/geom/Geometry';
import { FieldType } from '@grafana/data';
import { t } from '@grafana/i18n';