@opengeoweb/webmap-react 9.10.2 → 9.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +6 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer,
|
|
3
|
+
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getWMJSMapById, debugLogger, DebugType, LayerType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
4
4
|
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, dateUtils, CustomIconButton } from '@opengeoweb/shared';
|
|
5
5
|
import { Paper, Box, Typography, Grid, TextField, FormControl, InputLabel, Select, MenuItem, Icon as Icon$1, FormLabel, Switch, styled, Slider } from '@mui/material';
|
|
6
6
|
import _, { cloneDeep } from 'lodash';
|
|
@@ -4066,7 +4066,11 @@ class MapDraw extends React.PureComponent {
|
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
4068
|
drawIcon(ctx, _coord, featureProperties) {
|
|
4069
|
-
const
|
|
4069
|
+
const {
|
|
4070
|
+
mapId
|
|
4071
|
+
} = this.props;
|
|
4072
|
+
const webmapjs = webmapUtils.getWMJSMapById(mapId);
|
|
4073
|
+
const image = webmapjs.getMapImageStore.getImage(featureProperties.imageURL);
|
|
4070
4074
|
if (image.isLoaded() === false && image.hasError() === false && image.isLoading() === false) {
|
|
4071
4075
|
image.load();
|
|
4072
4076
|
/* After the image is loaded the canvas will be redrawn and drawIcon will be triggered again
|