Skip to content

Commit

Permalink
Expose ol in window.qwc2.libs
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Apr 10, 2024
1 parent 0198985 commit 11b51ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/API.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 11b51ed

Please sign in to comment.