From 11b51edb0d9f9adea2f9330ef0247805647b6411 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 10 Apr 2024 11:51:20 +0200 Subject: [PATCH] Expose ol in window.qwc2.libs --- plugins/API.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/API.jsx b/plugins/API.jsx index b99f79fea..835184a76 100644 --- a/plugins/API.jsx +++ b/plugins/API.jsx @@ -10,6 +10,7 @@ import React from 'react'; import {connect} from 'react-redux'; import axios from 'axios'; +import ol from 'openlayers'; import PropTypes from 'prop-types'; import * as displayActions from '../actions/display'; @@ -164,6 +165,7 @@ class API extends React.Component { window.qwc2.libs.React = React; window.qwc2.libs.PropTypes = PropTypes; window.qwc2.libs.connect = connect; + window.qwc2.libs.ol = ol; window.qwc2.components = {}; window.qwc2.components.AppMenu = AppMenu;