Skip to content

Commit 49d2dc2

Browse files
committed
fix: added geo class
1 parent 5e84be1 commit 49d2dc2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/GEOComp.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ var GEOComp = (function () {
217217
extent: any;
218218
resizeOffset: number;
219219
external: any;
220-
test: any
221220
}) => {
222221
//Default size of component
223222
const [dimensions, setDimensions] = useState({ width: 650, height: 460 });
@@ -310,7 +309,7 @@ var GEOComp = (function () {
310309

311310
//Create the container for the component
312311
return (
313-
<div ref={conRef} className="geowrapper"
312+
<div ref={conRef} className={styles.geowrapper}
314313
style={{
315314
backgroundColor: `${props.styles.backgroundColor}`,
316315
borderColor: `${props.styles.border}`,

src/vendors/Geo.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ function Geo(props) {
207207

208208
useEffect(() => {
209209
if (geoRef) {
210-
geoRef.innerHTML = "<div id='GEO_" + geoId + "' " + (featureEnabled('largeButtons') ? "class='ol-large'" : "") +
210+
geoRef.innerHTML = "<div id='GEO_" + geoId + "' " + (featureEnabled('largeButtons') ? "class='geo ol-large'" : "geo") +
211211
" style='height:100%;width:100%'></div>"
212-
213212
//The real map object
214213
var map = new Map({
215214
controls: [],

0 commit comments

Comments
 (0)