Skip to content

Commit 656f740

Browse files
committed
Move custom controls
1 parent b3f0dcf commit 656f740

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

srcjs/ipywidget-ts/controls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Zoom from 'ol/control/Zoom';
77
import Rotate from 'ol/control/Rotate';
88
import Attribution from 'ol/control/Attribution.js';
99

10-
import { InfoBox } from './custom-controls';
10+
import { InfoBox } from './custom-controls/info-box';
1111

1212
const zoom = new Zoom();
1313
zoom.setProperties({ id: "zoom", type: "ZoomControl" });

srcjs/ipywidget-ts/draw-control.ts renamed to srcjs/ipywidget-ts/custom-controls/draw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Snap from 'ol/interaction/Snap.js';
1414
import VectorSource from "ol/source/Vector";
1515
import VectorLayer from "ol/layer/Vector";
1616

17-
import { featureToGeoJSON } from "./utils";
17+
import { featureToGeoJSON } from "../utils";
1818

1919
type DrawOptions = {
2020
target?: string | HTMLElement | undefined;
File renamed without changes.

srcjs/ipywidget-ts/map.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { Map, View } from "ol";
33
import GeoJSON from "ol/format/GeoJSON";
44
import Overlay from "ol/Overlay";
55
import Draw from 'ol/interaction/Draw.js';
6-
import { transformExtent, useGeographic } from "ol/proj";
6+
import { useGeographic } from "ol/proj";
77
// import { State as SourceState } from "ol/source/Source";
88
import { isEmpty } from "ol/extent";
99
import { JSONConverter } from "./json";
1010
import { TYPE_IDENTIFIER, GEOJSON_IDENTIFIER } from "./constants";
1111
import { defaultControls } from "./controls";
1212

13-
import { DrawControl } from "./draw-control";
13+
import { DrawControl } from "./custom-controls/draw";
1414

1515
import { addTooltipToMap } from "./tooltip";
1616
import { addEventListernersToMapWidget } from "./events";

0 commit comments

Comments
 (0)