From 2b685ca18243890c8f37821baeaf2f75fd553e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Donk=C3=B3?= Date: Tue, 4 Oct 2022 00:18:21 +0200 Subject: [PATCH] [UPD] Add ".js" extension to import declarations --- DEVELOPING.md | 6 ++-- src/control/Bar.js | 2 +- src/control/Button.js | 4 +-- src/control/CanvasAttribution.js | 12 ++++---- src/control/CanvasBase.js | 14 ++++----- src/control/CanvasScaleLine.js | 12 ++++---- src/control/CanvasTitle.js | 6 ++-- src/control/CenterPosition.js | 10 +++---- src/control/Cloud.js | 6 ++-- src/control/Compass.js | 8 +++--- src/control/Dialog.js | 4 +-- src/control/Disable.js | 2 +- src/control/EditBar.js | 36 ++++++++++++------------ src/control/Gauge.js | 4 +-- src/control/GeoBookmark.js | 4 +-- src/control/GeolocationBar.js | 12 ++++---- src/control/GeolocationButton.js | 4 +-- src/control/Globe.js | 22 +++++++-------- src/control/Graticule.js | 16 +++++------ src/control/GridReference.js | 12 ++++---- src/control/Imageline.js | 8 +++--- src/control/IsochroneGeoportail.js | 12 ++++---- src/control/LayerPopup.js | 4 +-- src/control/LayerShop.js | 4 +-- src/control/LayerSwitcher.js | 18 ++++++------ src/control/LayerSwitcherImage.js | 6 ++-- src/control/Legend.js | 6 ++-- src/control/MapZone.js | 12 ++++---- src/control/Notification.js | 4 +-- src/control/Overlay.js | 4 +-- src/control/Overview.js | 30 ++++++++++---------- src/control/Permalink.js | 12 ++++---- src/control/Print.js | 4 +-- src/control/PrintDialog.js | 22 +++++++-------- src/control/Profile.js | 26 ++++++++--------- src/control/ProgressBar.js | 8 +++--- src/control/RoutingGeoportail.js | 18 ++++++------ src/control/Scale.js | 8 +++--- src/control/Search.js | 6 ++-- src/control/SearchBAN.js | 4 +-- src/control/SearchDFCI.js | 6 ++-- src/control/SearchFeature.js | 2 +- src/control/SearchGPS.js | 10 +++---- src/control/SearchGeoportail.js | 6 ++-- src/control/SearchGeoportailParcelle.js | 4 +-- src/control/SearchJSON.js | 4 +-- src/control/SearchNominatim.js | 4 +-- src/control/SearchPhoton.js | 6 ++-- src/control/SearchWikipedia.js | 8 +++--- src/control/Select.js | 4 +-- src/control/SelectBase.js | 8 +++--- src/control/SelectCheck.js | 4 +-- src/control/SelectCondition.js | 4 +-- src/control/SelectFulltext.js | 4 +-- src/control/SelectMulti.js | 4 +-- src/control/SelectPopup.js | 4 +-- src/control/Status.js | 4 +-- src/control/Storymap.js | 8 +++--- src/control/Swipe.js | 2 +- src/control/SwipeMap.js | 4 +-- src/control/Target.js | 12 ++++---- src/control/TextButton.js | 2 +- src/control/Timeline.js | 6 ++-- src/control/Toggle.js | 2 +- src/control/VideoRecorder.js | 8 +++--- src/control/WMSCapabilities.js | 20 ++++++------- src/control/WMTSCapabilities.js | 18 ++++++------ src/featureanimation/Blink.js | 2 +- src/featureanimation/Bounce.js | 2 +- src/featureanimation/Drop.js | 2 +- src/featureanimation/Fade.js | 2 +- src/featureanimation/FeatureAnimation.js | 26 ++++++++--------- src/featureanimation/None.js | 2 +- src/featureanimation/Null.js | 2 +- src/featureanimation/Path.js | 2 +- src/featureanimation/Shake.js | 2 +- src/featureanimation/Show.js | 2 +- src/featureanimation/Slide.js | 2 +- src/featureanimation/Teleport.js | 2 +- src/featureanimation/Throw.js | 2 +- src/featureanimation/Zoom.js | 2 +- src/filter/Base.js | 8 +++--- src/filter/CSS.js | 2 +- src/filter/CanvasFilter.js | 2 +- src/filter/Clip.js | 2 +- src/filter/Colorize.js | 6 ++-- src/filter/Composite.js | 2 +- src/filter/Crop.js | 2 +- src/filter/Fold.js | 2 +- src/filter/Halftone.js | 6 ++-- src/filter/Lego.js | 2 +- src/filter/Mask.js | 4 +-- src/filter/Paper.js | 4 +-- src/filter/PencilSketch.js | 2 +- src/filter/Pointillism.js | 4 +-- src/filter/SVGFilter.js | 2 +- src/filter/Texture.js | 4 +-- src/format/GeoJSONP.js | 8 +++--- src/format/GeoJSONX.js | 2 +- src/format/GeoRSS.js | 8 +++--- src/geom/ConvexHull.js | 2 +- src/geom/DFCI.js | 8 +++--- src/geom/Dijkstra.js | 16 +++++------ src/geom/GPAltiCode.js | 8 +++--- src/geom/GeomUtils.js | 20 ++++++------- src/geom/LineStringSplitAt.js | 4 +-- src/geom/Scribble.js | 10 +++---- src/geom/sphere.js | 4 +-- src/interaction/Blob.js | 4 +-- src/interaction/CenterTouch.js | 4 +-- src/interaction/Clip.js | 2 +- src/interaction/ClipMap.js | 4 +-- src/interaction/CopyPaste.js | 4 +-- src/interaction/CurrentMap.js | 2 +- src/interaction/Delete.js | 4 +-- src/interaction/DragOverlay.js | 2 +- src/interaction/DrawHole.js | 10 +++---- src/interaction/DrawRegular.js | 22 +++++++-------- src/interaction/DrawTouch.js | 10 +++---- src/interaction/DropFile.js | 18 ++++++------ src/interaction/FillAttribute.js | 4 +-- src/interaction/Flashlight.js | 10 +++---- src/interaction/FocusMap.js | 6 ++-- src/interaction/GeolocationDraw.js | 36 ++++++++++++------------ src/interaction/Hover.js | 2 +- src/interaction/LongTouch.js | 2 +- src/interaction/Modify.js | 6 ++-- src/interaction/ModifyFeature.js | 34 +++++++++++----------- src/interaction/ModifyTouch.js | 6 ++-- src/interaction/Offset.js | 10 +++---- src/interaction/Ripple.js | 2 +- src/interaction/SelectCluster.js | 32 ++++++++++----------- src/interaction/SnapGuides.js | 20 ++++++------- src/interaction/SnapLayerPixel.js | 4 +-- src/interaction/Split.js | 24 ++++++++-------- src/interaction/Splitter.js | 10 +++---- src/interaction/Synchronize.js | 8 +++--- src/interaction/TinkerBell.js | 8 +++--- src/interaction/TouchCompass.js | 6 ++-- src/interaction/TouchCursor.js | 10 +++---- src/interaction/TouchCursorDraw.js | 4 +-- src/interaction/TouchCursorModify.js | 10 +++---- src/interaction/TouchCursorSelect.js | 4 +-- src/interaction/Transform.js | 28 +++++++++--------- src/interaction/UndoRedo.js | 10 +++---- src/layer/AnimatedCluster.js | 16 +++++------ src/layer/GeoImage.js | 2 +- src/layer/Geoportail.js | 8 +++--- src/layer/GetPreview.js | 14 ++++----- src/layer/Maplibre.js | 10 +++---- src/layer/Render3D.js | 18 ++++++------ src/layer/SketchOverlay.js | 24 ++++++++-------- src/legend/Item.js | 4 +-- src/legend/Legend.js | 30 ++++++++++---------- src/map/PerspectiveMap.js | 12 ++++---- src/overlay/AnimatedCanvas.js | 8 +++--- src/overlay/Fixed.js | 2 +- src/overlay/FixedPopup.js | 18 ++++++------ src/overlay/Magnify.js | 10 +++---- src/overlay/Placemark.js | 2 +- src/overlay/Popup.js | 4 +-- src/overlay/PopupFeature.js | 6 ++-- src/overlay/Tooltip.js | 10 +++---- src/particule/Base.js | 2 +- src/particule/Bird.js | 2 +- src/particule/Cloud.js | 2 +- src/particule/Rain.js | 2 +- src/particule/RainDrop.js | 2 +- src/particule/Snow.js | 2 +- src/render/AnimExtent.js | 8 +++--- src/render/Cspline.js | 14 ++++----- src/render/HexGrid.js | 2 +- src/render/InseeGrid.js | 12 ++++---- src/render/Markup.js | 18 ++++++------ src/render/Pulse.js | 18 ++++++------ src/source/BinBase.js | 10 +++---- src/source/DBPedia.js | 20 ++++++------- src/source/DFCI.js | 14 ++++----- src/source/DayNight.js | 8 +++--- src/source/Delaunay.js | 14 ++++----- src/source/FeatureBin.js | 4 +-- src/source/GeoImage.js | 8 +++--- src/source/GeoRSS.js | 6 ++-- src/source/Geoportail.js | 10 +++---- src/source/GridBin.js | 6 ++-- src/source/HexBin.js | 6 ++-- src/source/IDW.js | 4 +-- src/source/InseeBin.js | 4 +-- src/source/Mapillary.js | 8 +++--- src/source/OilPainting.js | 2 +- src/source/Overpass.js | 10 +++---- src/source/TileWFS.js | 10 +++---- src/source/Vector.js | 2 +- src/source/Vector3D.js | 14 ++++----- src/source/WikiCommons.js | 12 ++++---- src/style/Chart.js | 6 ++-- src/style/FillPattern.js | 6 ++-- src/style/FlowLine.js | 10 +++---- src/style/FontAwesome5Def.js | 2 +- src/style/FontAwesomeDef.js | 2 +- src/style/FontMaki2Def.js | 2 +- src/style/FontMakiDef.js | 2 +- src/style/FontSymbol.js | 6 ++-- src/style/Photo.js | 8 +++--- src/style/Profile.js | 10 +++---- src/style/SetTextPath.js | 8 +++--- src/style/Shadow.js | 4 +-- src/style/StrokePattern.js | 8 +++--- src/style/defaultStyle.js | 8 +++--- src/style/geoportailStyle.js | 10 +++---- src/util/Ajax.js | 2 +- src/util/SVGFilter.js | 4 +-- src/util/SVGFilter/Laplacian.js | 2 +- src/util/SVGFilter/Paper.js | 2 +- src/util/SVGFilter/Prewitt.js | 2 +- src/util/SVGFilter/Roberts.js | 2 +- src/util/SVGFilter/Sobel.js | 2 +- src/util/SVGOperation.js | 2 +- src/util/View.js | 2 +- src/util/color.js | 2 +- src/util/element.js | 6 ++-- src/util/getVectorContext.js | 4 +-- src/util/getVectorContextStyle.js | 4 +-- src/util/imagesLoader.js | 2 +- src/util/input/Base.js | 2 +- src/util/input/Checkbox.js | 2 +- src/util/input/Collection.js | 4 +-- src/util/input/Color.js | 12 ++++---- src/util/input/List.js | 4 +-- src/util/input/PopupBase.js | 4 +-- src/util/input/Radio.js | 2 +- src/util/input/Range.js | 4 +-- src/util/input/Size.js | 4 +-- src/util/input/Slider.js | 4 +-- src/util/input/Switch.js | 2 +- src/util/input/Width.js | 4 +-- src/utils/ExportMap.js | 2 +- 237 files changed, 896 insertions(+), 896 deletions(-) diff --git a/DEVELOPING.md b/DEVELOPING.md index e0de94837..b2bdfc9dc 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -59,14 +59,14 @@ In Openlayers classes just replace the `point` by a `underscore`. The file name must reflect the name of the extension and should be placed in the src directory corresponding to its namespace. Thus `ol_control_MyControl`must be created in the `./src/control/MyControl.js` file and can be used in a webpack as: ````javascript -import ol_control_MyControl from 'ol-ext/control/MyControl'; +import ol_control_MyControl from 'ol-ext/control/MyControl.js'; ```` Example: ````javascript // Import ol classes -import ol_ext_inherits from '../util/ext' -import ol_control_Control from 'ol/control/Control' +import ol_ext_inherits from '../util/ext.js' +import ol_control_Control from 'ol/control/Control.js' // Create my control var ol_control_MyControl = function(options) { diff --git a/src/control/Bar.js b/src/control/Bar.js index fd2cb4392..b30407a9c 100644 --- a/src/control/Bar.js +++ b/src/control/Bar.js @@ -2,7 +2,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' +import ol_control_Control from 'ol/control/Control.js' /** Control bar for OL3 * The control bar is a container for other controls. It can be used to create toolbars. diff --git a/src/control/Button.js b/src/control/Button.js index c1dd0717a..38f9ad3bc 100644 --- a/src/control/Button.js +++ b/src/control/Button.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' +import ol_control_Control from 'ol/control/Control.js' -import ol_ext_element from '../util/element' +import ol_ext_element from '../util/element.js' /** A simple push button control * @constructor diff --git a/src/control/CanvasAttribution.js b/src/control/CanvasAttribution.js index 3097e4e9e..10f44284f 100644 --- a/src/control/CanvasAttribution.js +++ b/src/control/CanvasAttribution.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Attribution from 'ol/control/Attribution' -import ol_style_Style from 'ol/style/Style' -import {asString as ol_color_asString} from 'ol/color' -import ol_control_CanvasBase from './CanvasBase' -import ol_ext_element from '../util/element' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Attribution from 'ol/control/Attribution.js' +import ol_style_Style from 'ol/style/Style.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_control_CanvasBase from './CanvasBase.js' +import ol_ext_element from '../util/element.js' /** * @classdesc diff --git a/src/control/CanvasBase.js b/src/control/CanvasBase.js index da89e3636..86b71ab3e 100644 --- a/src/control/CanvasBase.js +++ b/src/control/CanvasBase.js @@ -1,10 +1,10 @@ -import ol_control_Control from 'ol/control/Control' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_style_Style from 'ol/style/Style' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Text from 'ol/style/Text' -import ol_ext_getMapCanvas from '../util/getMapCanvas' +import ol_control_Control from 'ol/control/Control.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Text from 'ol/style/Text.js' +import ol_ext_getMapCanvas from '../util/getMapCanvas.js' /** * @classdesc diff --git a/src/control/CanvasScaleLine.js b/src/control/CanvasScaleLine.js index 1fe14ab49..806308a74 100644 --- a/src/control/CanvasScaleLine.js +++ b/src/control/CanvasScaleLine.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_ScaleLine from 'ol/control/ScaleLine' -import ol_style_Style from 'ol/style/Style' -import {asString as ol_color_asString} from 'ol/color' -import ol_control_CanvasBase from './CanvasBase' -import ol_ext_element from '../util/element' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_ScaleLine from 'ol/control/ScaleLine.js' +import ol_style_Style from 'ol/style/Style.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_control_CanvasBase from './CanvasBase.js' +import ol_ext_element from '../util/element.js' /** * @classdesc * OpenLayers Scale Line Control integrated in the canvas (for jpeg/png export purposes). diff --git a/src/control/CanvasTitle.js b/src/control/CanvasTitle.js index 53a84e811..6a207cd48 100644 --- a/src/control/CanvasTitle.js +++ b/src/control/CanvasTitle.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {asString as ol_color_asString} from 'ol/color' +import {asString as ol_color_asString} from 'ol/color.js' -import ol_control_CanvasBase from './CanvasBase' -import ol_ext_element from '../util/element' +import ol_control_CanvasBase from './CanvasBase.js' +import ol_ext_element from '../util/element.js' /** * A title Control integrated in the canvas (for jpeg/png export purposes). diff --git a/src/control/CenterPosition.js b/src/control/CenterPosition.js index fb2a3a2e9..8cb15e805 100644 --- a/src/control/CenterPosition.js +++ b/src/control/CenterPosition.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {asString as ol_color_asString} from 'ol/color' -import {toStringXY as ol_coordinate_toStringXY} from 'ol/coordinate' -import {transform as ol_proj_transform} from 'ol/proj' +import {asString as ol_color_asString} from 'ol/color.js' +import {toStringXY as ol_coordinate_toStringXY} from 'ol/coordinate.js' +import {transform as ol_proj_transform} from 'ol/proj.js' -import ol_control_CanvasBase from './CanvasBase' -import ol_ext_element from '../util/element' +import ol_control_CanvasBase from './CanvasBase.js' +import ol_ext_element from '../util/element.js' /** * A Control to display map center coordinates on the canvas. diff --git a/src/control/Cloud.js b/src/control/Cloud.js index 2556339b2..39ae694b2 100644 --- a/src/control/Cloud.js +++ b/src/control/Cloud.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_ext_getMapCanvas from '../util/getMapcanvas' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_getMapCanvas from '../util/getMapcanvas.js' /** ol_control_Cloud adds an old map effect on a canvas renderer. * It colors the map, adds a parchment texture and compass onto the map. diff --git a/src/control/Compass.js b/src/control/Compass.js index b3583783a..84f01016d 100644 --- a/src/control/Compass.js +++ b/src/control/Compass.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_CanvasBase from './CanvasBase' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_ext_element from '../util/element'; +import ol_control_CanvasBase from './CanvasBase.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_ext_element from '../util/element.js'; /** * Draw a compass on the map. The position/size of the control is defined in the css. diff --git a/src/control/Dialog.js b/src/control/Dialog.js index 403a35f5c..5cfc369ef 100644 --- a/src/control/Dialog.js +++ b/src/control/Dialog.js @@ -1,5 +1,5 @@ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** * @classdesc diff --git a/src/control/Disable.js b/src/control/Disable.js index b3f396e35..ad4da66f8 100644 --- a/src/control/Disable.js +++ b/src/control/Disable.js @@ -1,4 +1,4 @@ -import ol_control_Control from 'ol/control/Control' +import ol_control_Control from 'ol/control/Control.js' /** A simple control to disable all actions on the map. * The control will create an invisible div over the map. diff --git a/src/control/EditBar.js b/src/control/EditBar.js index 4d2b85c85..be49d120f 100644 --- a/src/control/EditBar.js +++ b/src/control/EditBar.js @@ -1,22 +1,22 @@ -import {shiftKeyOnly as ol_events_condition_shiftKeyOnly} from 'ol/events/condition' -import {click as ol_events_condition_click} from 'ol/events/condition' -import ol_interaction_Draw from 'ol/interaction/Draw' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_interaction_Select from 'ol/interaction/Select' +import {shiftKeyOnly as ol_events_condition_shiftKeyOnly} from 'ol/events/condition.js' +import {click as ol_events_condition_click} from 'ol/events/condition.js' +import ol_interaction_Draw from 'ol/interaction/Draw.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_interaction_Select from 'ol/interaction/Select.js' -import ol_control_Bar from './Bar' -import ol_control_Button from './Button' -import ol_control_Toggle from './Toggle' -import ol_control_TextButton from './TextButton' -import ol_interaction_Delete from '../interaction/Delete' -import ol_ext_element from '../util/element' -import ol_interaction_Offset from '../interaction/Offset' -import ol_interaction_Split from '../interaction/Split' -import ol_interaction_Transform from '../interaction/Transform' -import ol_interaction_ModifyFeature from '../interaction/ModifyFeature' -import ol_interaction_DrawRegular from '../interaction/DrawRegular' -import ol_interaction_DrawHole from '../interaction/DrawHole' +import ol_control_Bar from './Bar.js' +import ol_control_Button from './Button.js' +import ol_control_Toggle from './Toggle.js' +import ol_control_TextButton from './TextButton.js' +import ol_interaction_Delete from '../interaction/Delete.js' +import ol_ext_element from '../util/element.js' +import ol_interaction_Offset from '../interaction/Offset.js' +import ol_interaction_Split from '../interaction/Split.js' +import ol_interaction_Transform from '../interaction/Transform.js' +import ol_interaction_ModifyFeature from '../interaction/ModifyFeature.js' +import ol_interaction_DrawRegular from '../interaction/DrawRegular.js' +import ol_interaction_DrawHole from '../interaction/DrawHole.js' /** Control bar for editing in a layer * @constructor diff --git a/src/control/Gauge.js b/src/control/Gauge.js index 9869650c1..e2618e7f0 100644 --- a/src/control/Gauge.js +++ b/src/control/Gauge.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** A simple gauge control to display level information on the map. * diff --git a/src/control/GeoBookmark.js b/src/control/GeoBookmark.js index d00e24ae8..827c687da 100644 --- a/src/control/GeoBookmark.js +++ b/src/control/GeoBookmark.js @@ -1,5 +1,5 @@ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** Bookmark positions on ol maps. * diff --git a/src/control/GeolocationBar.js b/src/control/GeolocationBar.js index c96759ce7..aa0309c59 100644 --- a/src/control/GeolocationBar.js +++ b/src/control/GeolocationBar.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Bar from './Bar' -import ol_control_Toggle from './Toggle' -import ol_control_Button from './Button' -import ol_control_TextButton from './TextButton' -import ol_interaction_GeolocationDraw from '../interaction/GeolocationDraw' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Bar from './Bar.js' +import ol_control_Toggle from './Toggle.js' +import ol_control_Button from './Button.js' +import ol_control_TextButton from './TextButton.js' +import ol_interaction_GeolocationDraw from '../interaction/GeolocationDraw.js' /** Geolocation bar diff --git a/src/control/GeolocationButton.js b/src/control/GeolocationButton.js index a9aad4578..91d66832a 100644 --- a/src/control/GeolocationButton.js +++ b/src/control/GeolocationButton.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Toggle from './Toggle' -import ol_interaction_GeolocationDraw from '../interaction/GeolocationDraw' +import ol_control_Toggle from './Toggle.js' +import ol_interaction_GeolocationDraw from '../interaction/GeolocationDraw.js' /** Geolocation bar * The control bar is a container for other controls. It can be used to create toolbars. diff --git a/src/control/Globe.js b/src/control/Globe.js index e04cdd100..adee01009 100644 --- a/src/control/Globe.js +++ b/src/control/Globe.js @@ -3,17 +3,17 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_Map from 'ol/Map' -import ol_Collection from 'ol/Collection' -import ol_View from 'ol/View' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_style_Style from 'ol/style/Style' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_source_Vector from 'ol/source/Vector' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_Map from 'ol/Map.js' +import ol_Collection from 'ol/Collection.js' +import ol_View from 'ol/View.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_source_Vector from 'ol/source/Vector.js' /** * OpenLayers 3 lobe Overview Control. diff --git a/src/control/Graticule.js b/src/control/Graticule.js index 1fe0eef22..805e2edf9 100644 --- a/src/control/Graticule.js +++ b/src/control/Graticule.js @@ -3,14 +3,14 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_proj_Projection from 'ol/proj/Projection' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Text from 'ol/style/Text' -import {transform as ol_proj_transform} from 'ol/proj' -import {get as ol_proj_get} from 'ol/proj' -import ol_control_CanvasBase from './CanvasBase' +import ol_proj_Projection from 'ol/proj/Projection.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Text from 'ol/style/Text.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import {get as ol_proj_get} from 'ol/proj.js' +import ol_control_CanvasBase from './CanvasBase.js' /** Draw a graticule on the map. * @constructor diff --git a/src/control/GridReference.js b/src/control/GridReference.js index e1a14ecfa..958869672 100644 --- a/src/control/GridReference.js +++ b/src/control/GridReference.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Text from 'ol/style/Text' -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' -import ol_control_CanvasBase from './CanvasBase' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Text from 'ol/style/Text.js' +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' +import ol_control_CanvasBase from './CanvasBase.js' /** * Draw a grid reference on the map and add an index. diff --git a/src/control/Imageline.js b/src/control/Imageline.js index a8a2303b7..7e4fe3ae7 100644 --- a/src/control/Imageline.js +++ b/src/control/Imageline.js @@ -1,7 +1,7 @@ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' -import ol_ext_getMapCanvas from '../util/getMapCanvas' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' +import ol_ext_getMapCanvas from '../util/getMapCanvas.js' /** Image line control * diff --git a/src/control/IsochroneGeoportail.js b/src/control/IsochroneGeoportail.js index 43ff708bc..7fe08c905 100644 --- a/src/control/IsochroneGeoportail.js +++ b/src/control/IsochroneGeoportail.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_format_WKT from 'ol/format/WKT' -import {toLonLat as ol_proj_toLonLat} from 'ol/proj' -import ol_ext_Ajax from '../util/Ajax'; -import ol_ext_element from '../util/element'; -import ol_control_SearchGeoportail from './SearchGeoportail' +import ol_control_Control from 'ol/control/Control.js' +import ol_format_WKT from 'ol/format/WKT.js' +import {toLonLat as ol_proj_toLonLat} from 'ol/proj.js' +import ol_ext_Ajax from '../util/Ajax.js'; +import ol_ext_element from '../util/element.js'; +import ol_control_SearchGeoportail from './SearchGeoportail.js' /** * Geoportail isochrone Control. diff --git a/src/control/LayerPopup.js b/src/control/LayerPopup.js index f19ffcce8..4f018bdfa 100644 --- a/src/control/LayerPopup.js +++ b/src/control/LayerPopup.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_LayerSwitcher from './LayerSwitcher' -import ol_ext_element from '../util/element'; +import ol_control_LayerSwitcher from './LayerSwitcher.js' +import ol_ext_element from '../util/element.js'; /** * OpenLayers Layer Switcher Control. diff --git a/src/control/LayerShop.js b/src/control/LayerShop.js index 28f9fc317..2a5b2e138 100644 --- a/src/control/LayerShop.js +++ b/src/control/LayerShop.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_element from '../util/element' -import ol_control_LayerSwitcher from '../control/LayerSwitcher' +import ol_ext_element from '../util/element.js' +import ol_control_LayerSwitcher from '../control/LayerSwitcher.js' /** LayerShop a layer switcher with special controls to handle operation on layers. * @fires select diff --git a/src/control/LayerSwitcher.js b/src/control/LayerSwitcher.js index 98bd6a6d2..0ee06b8a1 100644 --- a/src/control/LayerSwitcher.js +++ b/src/control/LayerSwitcher.js @@ -2,18 +2,18 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_layer_Tile from 'ol/layer/Tile' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_layer_VectorTile from 'ol/layer/VectorTile' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_layer_Tile from 'ol/layer/Tile.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_layer_VectorTile from 'ol/layer/VectorTile.js' // ol < 6 compatibility VectorImage is not defined // import ol_layer_VectorImage from 'ol/layer/VectorImage' -import ol_layer_Image from 'ol/layer/Image' -import ol_layer_Heatmap from 'ol/layer/Heatmap' -import {intersects as ol_extent_intersects} from 'ol/extent' +import ol_layer_Image from 'ol/layer/Image.js' +import ol_layer_Heatmap from 'ol/layer/Heatmap.js' +import {intersects as ol_extent_intersects} from 'ol/extent.js' -import ol_ext_element from '../util/element' +import ol_ext_element from '../util/element.js' /** Layer Switcher Control. * @fires select diff --git a/src/control/LayerSwitcherImage.js b/src/control/LayerSwitcherImage.js index d01a0e386..dfe35e325 100644 --- a/src/control/LayerSwitcherImage.js +++ b/src/control/LayerSwitcherImage.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_LayerSwitcher from './LayerSwitcher' -import '../layer/GetPreview' -import ol_ext_element from '../util/element'; +import ol_control_LayerSwitcher from './LayerSwitcher.js' +import '../layer/GetPreview.js' +import ol_ext_element from '../util/element.js'; /** * @classdesc OpenLayers Layer Switcher Control. diff --git a/src/control/Legend.js b/src/control/Legend.js index f69ff1013..4130f25ea 100644 --- a/src/control/Legend.js +++ b/src/control/Legend.js @@ -1,7 +1,7 @@ -import {asString as ol_color_asString} from 'ol/color' -import ol_control_CanvasBase from './CanvasBase' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_control_CanvasBase from './CanvasBase.js' // eslint-disable-next-line no-unused-vars -import ol_legend_Legend from '../legend/Legend' +import ol_legend_Legend from '../legend/Legend.js' /** Create a legend for styles * @constructor diff --git a/src/control/MapZone.js b/src/control/MapZone.js index 73554a841..0829207c8 100644 --- a/src/control/MapZone.js +++ b/src/control/MapZone.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import {getCenter as ol_extent_getCenter} from 'ol/extent' -import ol_Map from 'ol/Map' -import ol_View from 'ol/View' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_ext_element from 'ol-ext/util/element' +import ol_control_Control from 'ol/control/Control.js' +import {getCenter as ol_extent_getCenter} from 'ol/extent.js' +import ol_Map from 'ol/Map.js' +import ol_View from 'ol/View.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_ext_element from 'ol-ext/util/element.js' /** A control to jump from one zone to another. * @constructor diff --git a/src/control/Notification.js b/src/control/Notification.js index a8221759c..b9e7e495e 100644 --- a/src/control/Notification.js +++ b/src/control/Notification.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element'; +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js'; /** Control overlay for OL3 * The overlay control is a control that display an overlay over the map diff --git a/src/control/Overlay.js b/src/control/Overlay.js index 966659ec4..82da011a4 100644 --- a/src/control/Overlay.js +++ b/src/control/Overlay.js @@ -4,8 +4,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** Control overlay for OL3 * The overlay control is a control that display an overlay over the map diff --git a/src/control/Overview.js b/src/control/Overview.js index 0ac3f5bcc..7ef4fc058 100644 --- a/src/control/Overview.js +++ b/src/control/Overview.js @@ -3,21 +3,21 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_Point from 'ol/geom/Point' -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import ol_Map from 'ol/Map' -import ol_Collection from 'ol/Collection' -import ol_View from 'ol/View' -import ol_source_Vector from 'ol/source/Vector' -import ol_style_Style from 'ol/style/Style' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_Feature from 'ol/Feature' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import ol_Map from 'ol/Map.js' +import ol_Collection from 'ol/Collection.js' +import ol_View from 'ol/View.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_Feature from 'ol/Feature.js' /** * OpenLayers 3 Layer Overview Control. diff --git a/src/control/Permalink.js b/src/control/Permalink.js index 1da5f5920..bd9e86467 100644 --- a/src/control/Permalink.js +++ b/src/control/Permalink.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import {transform as ol_proj_transform} from 'ol/proj' -import ol_ext_element from '../util/element' -import { toLonLat as ol_geohash_toLonLat } from '../geom/geohash' -import { fromLonLat as ol_geohash_fromLonLat } from '../geom/geohash' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_ext_element from '../util/element.js' +import { toLonLat as ol_geohash_toLonLat } from '../geom/geohash.js' +import { fromLonLat as ol_geohash_fromLonLat } from '../geom/geohash.js' /** * Set an hyperlink that will return the user to the current map view. diff --git a/src/control/Print.js b/src/control/Print.js index e17677489..aac480359 100644 --- a/src/control/Print.js +++ b/src/control/Print.js @@ -4,8 +4,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** Print control to get an image of the map * @constructor diff --git a/src/control/PrintDialog.js b/src/control/PrintDialog.js index e50def097..a24b689a6 100644 --- a/src/control/PrintDialog.js +++ b/src/control/PrintDialog.js @@ -4,17 +4,17 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_ext_element from '../util/element' -import ol_control_Dialog from './Dialog' -import ol_control_Legend from './Legend' -import ol_control_Print from './Print' -import ol_control_CanvasTitle from './CanvasTitle' -import {getMapScale as ol_sphere_getMapScale} from '../geom/sphere' -import {setMapScale as ol_sphere_setMapScale} from '../geom/sphere' -import ol_control_Compass from './Compass'; +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_ext_element from '../util/element.js' +import ol_control_Dialog from './Dialog.js' +import ol_control_Legend from './Legend.js' +import ol_control_Print from './Print.js' +import ol_control_CanvasTitle from './CanvasTitle.js' +import {getMapScale as ol_sphere_getMapScale} from '../geom/sphere.js' +import {setMapScale as ol_sphere_setMapScale} from '../geom/sphere.js' +import ol_control_Compass from './Compass.js'; /** Print control to get an image of the map * @constructor diff --git a/src/control/Profile.js b/src/control/Profile.js index 0a80d2a62..9d2c57449 100644 --- a/src/control/Profile.js +++ b/src/control/Profile.js @@ -4,19 +4,19 @@ */ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import {getDistance as ol_sphere_getDistance} from 'ol/sphere' -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_Control from 'ol/control/Control' -import ol_Feature from 'ol/Feature' -import ol_style_Fill from 'ol/style/Fill' - -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Text from 'ol/style/Text' -import ol_geom_LineString from 'ol/geom/LineString' - -import {ol_coordinate_dist2d} from "../geom/GeomUtils"; -import ol_ext_element from '../util/element' +import {getDistance as ol_sphere_getDistance} from 'ol/sphere.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_Feature from 'ol/Feature.js' +import ol_style_Fill from 'ol/style/Fill.js' + +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Text from 'ol/style/Text.js' +import ol_geom_LineString from 'ol/geom/LineString.js' + +import {ol_coordinate_dist2d} from "../geom/GeomUtils.js"; +import ol_ext_element from '../util/element.js' /** * @classdesc OpenLayers 3 Profil Control. diff --git a/src/control/ProgressBar.js b/src/control/ProgressBar.js index fa929dff4..1a9039e3d 100644 --- a/src/control/ProgressBar.js +++ b/src/control/ProgressBar.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import ol_layer_Layer from 'ol/layer/Layer' -import ol_ext_element from '../util/element' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_layer_Layer from 'ol/layer/Layer.js' +import ol_ext_element from '../util/element.js' /** Add a progress bar to a map. * Use the layers option listen to tileload event and show the layer loading progress. diff --git a/src/control/RoutingGeoportail.js b/src/control/RoutingGeoportail.js index ad3732976..f158c063d 100644 --- a/src/control/RoutingGeoportail.js +++ b/src/control/RoutingGeoportail.js @@ -2,15 +2,15 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_Feature from 'ol/Feature' -import ol_ext_element from '../util/element'; -import ol_control_SearchGeoportail from './SearchGeoportail' -import ol_source_Vector from 'ol/source/Vector' -import ol_geom_Point from 'ol/geom/Point' -import {transform as ol_proj_transform} from 'ol/proj' -import { ol_coordinate_equal } from '../geom/GeomUtils' -import ol_format_GeoJSON from 'ol/format/GeoJSON' +import ol_control_Control from 'ol/control/Control.js' +import ol_Feature from 'ol/Feature.js' +import ol_ext_element from '../util/element.js'; +import ol_control_SearchGeoportail from './SearchGeoportail.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_geom_Point from 'ol/geom/Point.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import { ol_coordinate_equal } from '../geom/GeomUtils.js' +import ol_format_GeoJSON from 'ol/format/GeoJSON.js' /** Geoportail routing Control. * @constructor diff --git a/src/control/Scale.js b/src/control/Scale.js index 068cfe0ee..405ff43f7 100644 --- a/src/control/Scale.js +++ b/src/control/Scale.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_control_Control from 'ol/control/Control' -import {getMapScale as ol_sphere_getMapScale} from '../geom/sphere' -import {setMapScale as ol_sphere_setMapScale} from '../geom/sphere' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_control_Control from 'ol/control/Control.js' +import {getMapScale as ol_sphere_getMapScale} from '../geom/sphere.js' +import {setMapScale as ol_sphere_setMapScale} from '../geom/sphere.js' /** * Scale Control. diff --git a/src/control/Search.js b/src/control/Search.js index 7b52c71ce..4efa30da0 100644 --- a/src/control/Search.js +++ b/src/control/Search.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' +import ol_control_Control from 'ol/control/Control.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' -import ol_ext_element from '../util/element' +import ol_ext_element from '../util/element.js' /** * Search Control. diff --git a/src/control/SearchBAN.js b/src/control/SearchBAN.js index b8cf98408..2fedb7123 100644 --- a/src/control/SearchBAN.js +++ b/src/control/SearchBAN.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_SearchPhoton from "./SearchPhoton"; +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_SearchPhoton from "./SearchPhoton.js"; /** * Search places using the French National Base Address (BAN) API. diff --git a/src/control/SearchDFCI.js b/src/control/SearchDFCI.js index e7f875ced..b4c64da0b 100644 --- a/src/control/SearchDFCI.js +++ b/src/control/SearchDFCI.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Search from './Search' -import {ol_coordinate_fromDFCI} from '../geom/DFCI' -import {ol_coordinate_toDFCI} from '../geom/DFCI' +import ol_control_Search from './Search.js' +import {ol_coordinate_fromDFCI} from '../geom/DFCI.js' +import {ol_coordinate_toDFCI} from '../geom/DFCI.js' /** * Search on DFCI grid. diff --git a/src/control/SearchFeature.js b/src/control/SearchFeature.js index a897782d7..170a89a93 100644 --- a/src/control/SearchFeature.js +++ b/src/control/SearchFeature.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Search from './Search' +import ol_control_Search from './Search.js' /** * Search features. diff --git a/src/control/SearchGPS.js b/src/control/SearchGPS.js index e0050aa40..2d9c8eb5d 100644 --- a/src/control/SearchGPS.js +++ b/src/control/SearchGPS.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import {toStringHDMS as ol_coordinate_toStringHDMS} from 'ol/coordinate'; -import ol_Geolocation from 'ol/Geolocation' +import {transform as ol_proj_transform} from 'ol/proj.js' +import {toStringHDMS as ol_coordinate_toStringHDMS} from 'ol/coordinate.js'; +import ol_Geolocation from 'ol/Geolocation.js' -import ol_control_Search from './Search' -import ol_ext_element from '../util/element' +import ol_control_Search from './Search.js' +import ol_ext_element from '../util/element.js' /** * Search on GPS coordinate. diff --git a/src/control/SearchGeoportail.js b/src/control/SearchGeoportail.js index f5cf525b0..20fa37f2d 100644 --- a/src/control/SearchGeoportail.js +++ b/src/control/SearchGeoportail.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_Search from './Search' -import ol_control_SearchJSON from './SearchJSON' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_Search from './Search.js' +import ol_control_SearchJSON from './SearchJSON.js' /** * Search places using the French National Base Address (BAN) API. diff --git a/src/control/SearchGeoportailParcelle.js b/src/control/SearchGeoportailParcelle.js index 28f6c7067..78b5d3c73 100644 --- a/src/control/SearchGeoportailParcelle.js +++ b/src/control/SearchGeoportailParcelle.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SearchGeoportail from "./SearchGeoportail"; -import {fromLonLat as ol_proj_fromLonLat} from 'ol/proj' +import ol_control_SearchGeoportail from "./SearchGeoportail.js"; +import {fromLonLat as ol_proj_fromLonLat} from 'ol/proj.js' /** * Search places using the French National Base Address (BAN) API. diff --git a/src/control/SearchJSON.js b/src/control/SearchJSON.js index f2719d86f..1ee0459e4 100644 --- a/src/control/SearchJSON.js +++ b/src/control/SearchJSON.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Search from './Search' -import ol_ext_Ajax from '../util/Ajax'; +import ol_control_Search from './Search.js' +import ol_ext_Ajax from '../util/Ajax.js'; /** * This is the base class for search controls that use a json service to search features. diff --git a/src/control/SearchNominatim.js b/src/control/SearchNominatim.js index a51b4fbfd..ee3448760 100644 --- a/src/control/SearchNominatim.js +++ b/src/control/SearchNominatim.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_SearchJSON from "./SearchJSON"; +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_SearchJSON from "./SearchJSON.js"; /** * Search places using the Nominatim geocoder from the OpenStreetmap project. diff --git a/src/control/SearchPhoton.js b/src/control/SearchPhoton.js index 9edc7cc66..37031bd2b 100644 --- a/src/control/SearchPhoton.js +++ b/src/control/SearchPhoton.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_SearchJSON from "./SearchJSON"; -import ol_geom_Point from 'ol/geom/Point' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_SearchJSON from "./SearchJSON.js"; +import ol_geom_Point from 'ol/geom/Point.js' /** * Search places using the photon API. diff --git a/src/control/SearchWikipedia.js b/src/control/SearchWikipedia.js index 7726a7a3c..b16e22a8f 100644 --- a/src/control/SearchWikipedia.js +++ b/src/control/SearchWikipedia.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {transform as ol_proj_transform} from 'ol/proj' -import ol_control_SearchJSON from "./SearchJSON"; -import ol_ext_Ajax from '../util/Ajax' -import ol_ext_element from '../util/element'; +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_control_SearchJSON from "./SearchJSON.js"; +import ol_ext_Ajax from '../util/Ajax.js' +import ol_ext_element from '../util/element.js'; /** * Search places using the MediaWiki API. diff --git a/src/control/Select.js b/src/control/Select.js index 93624fa82..3a304edee 100644 --- a/src/control/Select.js +++ b/src/control/Select.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * Select Control. diff --git a/src/control/SelectBase.js b/src/control/SelectBase.js index 513865b9f..7c877a20c 100644 --- a/src/control/SelectBase.js +++ b/src/control/SelectBase.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_Collection from 'ol/Collection' -import ol_source_Vector from 'ol/source/Vector' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_Collection from 'ol/Collection.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_ext_element from '../util/element.js' /** * This is the base class for Select controls on attributes values. diff --git a/src/control/SelectCheck.js b/src/control/SelectCheck.js index b92bd9517..17bbe12a5 100644 --- a/src/control/SelectCheck.js +++ b/src/control/SelectCheck.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * Select features by property using a popup diff --git a/src/control/SelectCondition.js b/src/control/SelectCondition.js index 864c39e8c..604fa26f6 100644 --- a/src/control/SelectCondition.js +++ b/src/control/SelectCondition.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * Select features by property using a condition diff --git a/src/control/SelectFulltext.js b/src/control/SelectFulltext.js index ab9302801..1de571e6e 100644 --- a/src/control/SelectFulltext.js +++ b/src/control/SelectFulltext.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * Select features by property using a simple text input diff --git a/src/control/SelectMulti.js b/src/control/SelectMulti.js index 85b2a60e0..6a0f2f84b 100644 --- a/src/control/SelectMulti.js +++ b/src/control/SelectMulti.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * A multiselect control. diff --git a/src/control/SelectPopup.js b/src/control/SelectPopup.js index 4d634e601..03ceb1772 100644 --- a/src/control/SelectPopup.js +++ b/src/control/SelectPopup.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_SelectBase from './SelectBase' -import ol_ext_element from '../util/element' +import ol_control_SelectBase from './SelectBase.js' +import ol_ext_element from '../util/element.js' /** * Select features by property using a popup diff --git a/src/control/Status.js b/src/control/Status.js index 1ac03bccd..98a439857 100644 --- a/src/control/Status.js +++ b/src/control/Status.js @@ -1,5 +1,5 @@ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** A control to display status information on top of the map * @constructor diff --git a/src/control/Storymap.js b/src/control/Storymap.js index 35edbe487..6cc636238 100644 --- a/src/control/Storymap.js +++ b/src/control/Storymap.js @@ -1,8 +1,8 @@ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' -import {fromLonLat as ol_proj_fromLonLat} from 'ol/proj' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' +import {fromLonLat as ol_proj_fromLonLat} from 'ol/proj.js' // Add flyTo -import '../util/View' +import '../util/View.js' /** A control with scroll-driven navigation to create narrative maps * diff --git a/src/control/Swipe.js b/src/control/Swipe.js index 57cddf01e..bb793c02f 100644 --- a/src/control/Swipe.js +++ b/src/control/Swipe.js @@ -4,7 +4,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' +import ol_control_Control from 'ol/control/Control.js' /** * @classdesc Swipe Control. diff --git a/src/control/SwipeMap.js b/src/control/SwipeMap.js index b54dd8956..35a311f56 100644 --- a/src/control/SwipeMap.js +++ b/src/control/SwipeMap.js @@ -4,8 +4,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' +import ol_control_Control from 'ol/control/Control.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' /** A control that use a CSS clip rect to swipe the map * @classdesc Swipe Control. diff --git a/src/control/Target.js b/src/control/Target.js index b843186f7..08e0e2a0b 100644 --- a/src/control/Target.js +++ b/src/control/Target.js @@ -3,13 +3,13 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_RegularShape from 'ol/style/RegularShape' -import ol_geom_Point from 'ol/geom/Point' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_render_getVectorContext from '../util/getVectorContext'; +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_render_getVectorContext from '../util/getVectorContext.js'; -import ol_control_CanvasBase from './CanvasBase' +import ol_control_CanvasBase from './CanvasBase.js' /** ol_control_Target draw a target at the center of the map. * @constructor diff --git a/src/control/TextButton.js b/src/control/TextButton.js index c1dd1c8aa..e430623ce 100644 --- a/src/control/TextButton.js +++ b/src/control/TextButton.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Button from "./Button"; +import ol_control_Button from "./Button.js"; /** A simple push button control drawn as text * @constructor diff --git a/src/control/Timeline.js b/src/control/Timeline.js index df3fc048a..05c6b94d0 100644 --- a/src/control/Timeline.js +++ b/src/control/Timeline.js @@ -1,7 +1,7 @@ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import ol_source_Vector from 'ol/source/Vector' -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' /** Timeline control * diff --git a/src/control/Toggle.js b/src/control/Toggle.js index bf091af62..c6199af8b 100644 --- a/src/control/Toggle.js +++ b/src/control/Toggle.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Button from './Button' +import ol_control_Button from './Button.js' /** A simple toggle control * The control can be created with an interaction to control its activation. diff --git a/src/control/VideoRecorder.js b/src/control/VideoRecorder.js index 00ee276f2..906a42a37 100644 --- a/src/control/VideoRecorder.js +++ b/src/control/VideoRecorder.js @@ -3,10 +3,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_control_Control from 'ol/control/Control' -import ol_ext_element from '../util/element' -import ol_control_Print from './Print' -import ol_control_Dialog from './Dialog' +import ol_control_Control from 'ol/control/Control.js' +import ol_ext_element from '../util/element.js' +import ol_control_Print from './Print.js' +import ol_control_Dialog from './Dialog.js' /** Record map canvas as video * @constructor diff --git a/src/control/WMSCapabilities.js b/src/control/WMSCapabilities.js index 66f4c4ead..3501d2516 100644 --- a/src/control/WMSCapabilities.js +++ b/src/control/WMSCapabilities.js @@ -3,16 +3,16 @@ The tiles will be reprojected to map pojection (EPSG:3857). NB: reduce tileSize to minimize deformations on small scales. */ -import ol_View from 'ol/View' -import ol_source_TileWMS from 'ol/source/TileWMS' -import ol_layer_Tile from 'ol/layer/Tile' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_format_WMSCapabilities from 'ol/format/WMSCapabilities' -import ol_ext_element from '../util/element' -import ol_ext_Ajax from '../util/Ajax' -import ol_control_Button from './Button' -import ol_control_Dialog from './Dialog' -import '../layer/GetPreview'; +import ol_View from 'ol/View.js' +import ol_source_TileWMS from 'ol/source/TileWMS.js' +import ol_layer_Tile from 'ol/layer/Tile.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_format_WMSCapabilities from 'ol/format/WMSCapabilities.js' +import ol_ext_element from '../util/element.js' +import ol_ext_Ajax from '../util/Ajax.js' +import ol_control_Button from './Button.js' +import ol_control_Dialog from './Dialog.js' +import '../layer/GetPreview.js'; /** WMSCapabilities * @constructor diff --git a/src/control/WMTSCapabilities.js b/src/control/WMTSCapabilities.js index 9c7a8d27d..4e3275dbd 100644 --- a/src/control/WMTSCapabilities.js +++ b/src/control/WMTSCapabilities.js @@ -1,13 +1,13 @@ -import ol_control_WMSCapabilities from './WMSCapabilities'; +import ol_control_WMSCapabilities from './WMSCapabilities.js'; -import ol_View from 'ol/View' -import ol_tilegrid_WMTS from 'ol/tilegrid/WMTS' -import ol_format_WMTSCapabilities from 'ol/format/WMTSCapabilities' -import ol_layer_Tile from 'ol/layer/Tile' -import ol_source_WMTS from 'ol/source/WMTS' -import { get as ol_proj_get } from 'ol/proj' -import { transformExtent as ol_proj_transformExtent } from 'ol/proj' -import { getWidth as ol_extent_getWidth } from 'ol/extent' +import ol_View from 'ol/View.js' +import ol_tilegrid_WMTS from 'ol/tilegrid/WMTS.js' +import ol_format_WMTSCapabilities from 'ol/format/WMTSCapabilities.js' +import ol_layer_Tile from 'ol/layer/Tile.js' +import ol_source_WMTS from 'ol/source/WMTS.js' +import { get as ol_proj_get } from 'ol/proj.js' +import { transformExtent as ol_proj_transformExtent } from 'ol/proj.js' +import { getWidth as ol_extent_getWidth } from 'ol/extent.js' /** WMTSCapabilities * @constructor diff --git a/src/featureanimation/Blink.js b/src/featureanimation/Blink.js index e6be2b620..0e2d525fe 100644 --- a/src/featureanimation/Blink.js +++ b/src/featureanimation/Blink.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Blink a feature * @constructor diff --git a/src/featureanimation/Bounce.js b/src/featureanimation/Bounce.js index ed7e99432..3651c8408 100644 --- a/src/featureanimation/Bounce.js +++ b/src/featureanimation/Bounce.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Bounce animation: * @constructor diff --git a/src/featureanimation/Drop.js b/src/featureanimation/Drop.js index b81ecd8c9..79d74131f 100644 --- a/src/featureanimation/Drop.js +++ b/src/featureanimation/Drop.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Drop animation: drop a feature on the map * @constructor diff --git a/src/featureanimation/Fade.js b/src/featureanimation/Fade.js index d5e675b5a..f817c21a0 100644 --- a/src/featureanimation/Fade.js +++ b/src/featureanimation/Fade.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Fade animation: feature fade in * @constructor diff --git a/src/featureanimation/FeatureAnimation.js b/src/featureanimation/FeatureAnimation.js index 37d03cb55..55a018a08 100644 --- a/src/featureanimation/FeatureAnimation.js +++ b/src/featureanimation/FeatureAnimation.js @@ -3,20 +3,20 @@ released under the CeCILL license (http://www.cecill.info/). */ -import ol_Object from 'ol/Object' -import {linear as ol_easing_linear} from 'ol/easing' -import ol_Map from 'ol/Map' -import {getCenter as ol_extent_getCenter} from 'ol/extent' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_layer_Base from 'ol/layer/Base' -import ol_style_Style from 'ol/style/Style' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_source_Vector from 'ol/source/Vector' +import ol_Object from 'ol/Object.js' +import {linear as ol_easing_linear} from 'ol/easing.js' +import ol_Map from 'ol/Map.js' +import {getCenter as ol_extent_getCenter} from 'ol/extent.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_layer_Base from 'ol/layer/Base.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_source_Vector from 'ol/source/Vector.js' -import ol_render_getVectorContext from '../util/getVectorContext'; -import ol_ext_getVectorContextStyle from '../util/getVectorContextStyle' +import ol_render_getVectorContext from '../util/getVectorContext.js'; +import ol_ext_getVectorContextStyle from '../util/getVectorContextStyle.js' /** Feature animation base class * Use the {@link ol.Map#animateFeature} or {@link ol.layer.Vector#animateFeature} to animate a feature diff --git a/src/featureanimation/None.js b/src/featureanimation/None.js index 1519a64b2..54e5e6028 100644 --- a/src/featureanimation/None.js +++ b/src/featureanimation/None.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Do nothing for a given duration * @constructor diff --git a/src/featureanimation/Null.js b/src/featureanimation/Null.js index d5d77e2f3..d4b5d84ee 100644 --- a/src/featureanimation/Null.js +++ b/src/featureanimation/Null.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Do nothing * @constructor diff --git a/src/featureanimation/Path.js b/src/featureanimation/Path.js index a55c4e0da..fcf013413 100644 --- a/src/featureanimation/Path.js +++ b/src/featureanimation/Path.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Path animation: feature follow a path * @constructor diff --git a/src/featureanimation/Shake.js b/src/featureanimation/Shake.js index 745626e7f..9880c59fa 100644 --- a/src/featureanimation/Shake.js +++ b/src/featureanimation/Shake.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Shakee animation: * @constructor diff --git a/src/featureanimation/Show.js b/src/featureanimation/Show.js index dce0ba031..afec4ca75 100644 --- a/src/featureanimation/Show.js +++ b/src/featureanimation/Show.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Show an object for a given duration * @constructor diff --git a/src/featureanimation/Slide.js b/src/featureanimation/Slide.js index ea06d01d6..cea932c53 100644 --- a/src/featureanimation/Slide.js +++ b/src/featureanimation/Slide.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Slice animation: feature enter from left * @constructor diff --git a/src/featureanimation/Teleport.js b/src/featureanimation/Teleport.js index 5973d546c..ddd3e19ce 100644 --- a/src/featureanimation/Teleport.js +++ b/src/featureanimation/Teleport.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Teleport a feature at a given place (feat. Star Trek) * @constructor diff --git a/src/featureanimation/Throw.js b/src/featureanimation/Throw.js index 095d13e4b..d374cc80f 100644 --- a/src/featureanimation/Throw.js +++ b/src/featureanimation/Throw.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Slice animation: feature enter from left * @constructor diff --git a/src/featureanimation/Zoom.js b/src/featureanimation/Zoom.js index 405346e9e..9694e25c0 100644 --- a/src/featureanimation/Zoom.js +++ b/src/featureanimation/Zoom.js @@ -4,7 +4,7 @@ */ -import ol_featureAnimation from './FeatureAnimation' +import ol_featureAnimation from './FeatureAnimation.js' /** Zoom animation: feature zoom in (for points) * @constructor diff --git a/src/filter/Base.js b/src/filter/Base.js index 0f228f97f..110c8ece5 100644 --- a/src/filter/Base.js +++ b/src/filter/Base.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_layer_Base from 'ol/layer/Base' -import ol_Object from 'ol/Object' -import ol_Map from 'ol/Map' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_layer_Base from 'ol/layer/Base.js' +import ol_Object from 'ol/Object.js' +import ol_Map from 'ol/Map.js' /* Namespace */ var ol_filter = {}; diff --git a/src/filter/CSS.js b/src/filter/CSS.js index b5839a767..bdb23fb1e 100644 --- a/src/filter/CSS.js +++ b/src/filter/CSS.js @@ -1,4 +1,4 @@ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Add a mix-blend-mode CSS filter (not working with IE or ol<6). * Add a className to the layer to apply the filter to a specific layer. diff --git a/src/filter/CanvasFilter.js b/src/filter/CanvasFilter.js index dbfdcc599..f3fff7ccc 100644 --- a/src/filter/CanvasFilter.js +++ b/src/filter/CanvasFilter.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** @typedef {Object} CanvasFilterOptions * @property {url} url Takes an IRI pointing to an SVG filter element diff --git a/src/filter/Clip.js b/src/filter/Clip.js index 627e9f43f..ec4b4d34a 100644 --- a/src/filter/Clip.js +++ b/src/filter/Clip.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Clip layer or map * @constructor diff --git a/src/filter/Colorize.js b/src/filter/Colorize.js index 2e26b0405..030a9a0c7 100644 --- a/src/filter/Colorize.js +++ b/src/filter/Colorize.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' -import {asString as ol_color_asString} from 'ol/color' -import {asArray as ol_color_asArray} from 'ol/color' +import ol_filter_Base from './Base.js' +import {asString as ol_color_asString} from 'ol/color.js' +import {asArray as ol_color_asArray} from 'ol/color.js' /** @typedef {Object} FilterColorizeOptions * @property {ol.Color} color style to fill with diff --git a/src/filter/Composite.js b/src/filter/Composite.js index ec666c3fd..30ccaad35 100644 --- a/src/filter/Composite.js +++ b/src/filter/Composite.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Add a composite filter on a layer. * With ol6+ you'd better use {@link ol_filter_CSS} instead. diff --git a/src/filter/Crop.js b/src/filter/Crop.js index ebff4f45a..bbe0bfbc4 100644 --- a/src/filter/Crop.js +++ b/src/filter/Crop.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Mask from './Mask' +import ol_filter_Mask from './Mask.js' /** Crop drawing using an ol.Feature * @constructor diff --git a/src/filter/Fold.js b/src/filter/Fold.js index 45728e3dc..c1e4d836e 100644 --- a/src/filter/Fold.js +++ b/src/filter/Fold.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Fold filer map * @constructor diff --git a/src/filter/Halftone.js b/src/filter/Halftone.js index 867a17eb8..f19048751 100644 --- a/src/filter/Halftone.js +++ b/src/filter/Halftone.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' -import {asString as ol_color_asString} from 'ol/color' -import {toHSL as ol_color_toHSL} from '../util/color' +import ol_filter_Base from './Base.js' +import {asString as ol_color_asString} from 'ol/color.js' +import {toHSL as ol_color_toHSL} from '../util/color.js' /** Make a map or layer look like made of a set of Lego bricks. * @constructor diff --git a/src/filter/Lego.js b/src/filter/Lego.js index 5e5d9c62e..d60180b8f 100644 --- a/src/filter/Lego.js +++ b/src/filter/Lego.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Make a map or layer look like made of a set of Lego bricks. * @constructor diff --git a/src/filter/Mask.js b/src/filter/Mask.js index 5dfeeab1b..0768752ce 100644 --- a/src/filter/Mask.js +++ b/src/filter/Mask.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' -import {asString as ol_color_asString} from 'ol/color' +import ol_filter_Base from './Base.js' +import {asString as ol_color_asString} from 'ol/color.js' /** Mask drawing using an ol.Feature * @constructor diff --git a/src/filter/Paper.js b/src/filter/Paper.js index 6c5b11871..b28b6c969 100644 --- a/src/filter/Paper.js +++ b/src/filter/Paper.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' -import ol_ext_SVGFilter_Paper from '../util/SVGFilter/Paper' +import ol_filter_Base from './Base.js' +import ol_ext_SVGFilter_Paper from '../util/SVGFilter/Paper.js' /** @typedef {Object} FilterPointillismOptions * @property {number} saturate saturation, default 2 diff --git a/src/filter/PencilSketch.js b/src/filter/PencilSketch.js index 3f3dd6077..a834b8831 100644 --- a/src/filter/PencilSketch.js +++ b/src/filter/PencilSketch.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** @typedef {Object} FilterPencilSketchOptions * @property {number} blur blur value in pixel, default 8 diff --git a/src/filter/Pointillism.js b/src/filter/Pointillism.js index f41daf3b9..c4fab8408 100644 --- a/src/filter/Pointillism.js +++ b/src/filter/Pointillism.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {asString as ol_color_asString} from 'ol/color' -import ol_filter_Base from './Base' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_filter_Base from './Base.js' /** @typedef {Object} FilterPointillismOptions * @property {number} saturate saturation, default 2 diff --git a/src/filter/SVGFilter.js b/src/filter/SVGFilter.js index b6c389f8e..7605b54c7 100644 --- a/src/filter/SVGFilter.js +++ b/src/filter/SVGFilter.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' +import ol_filter_Base from './Base.js' /** Add a canvas Context2D SVG filter to a layer * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter diff --git a/src/filter/Texture.js b/src/filter/Texture.js index 3f2541dc9..93686ece2 100644 --- a/src/filter/Texture.js +++ b/src/filter/Texture.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_filter_Base from './Base' -import ol_filter_Texture_Image from './TextureImage' +import ol_filter_Base from './Base.js' +import ol_filter_Texture_Image from './TextureImage.js' /** @typedef {Object} FilterTextureOptions * @property {Image | undefined} img Image object for the texture diff --git a/src/format/GeoJSONP.js b/src/format/GeoJSONP.js index a6ddce09f..60975077d 100644 --- a/src/format/GeoJSONP.js +++ b/src/format/GeoJSONP.js @@ -1,7 +1,7 @@ -import ol_format_GeoJSONX from './GeoJSONX' -import ol_format_Polyline from 'ol/format/Polyline' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString' +import ol_format_GeoJSONX from './GeoJSONX.js' +import ol_format_Polyline from 'ol/format/Polyline.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js' /** Feature format for reading and writing data in the GeoJSONP format, * using Polyline Algorithm to encode geometry. diff --git a/src/format/GeoJSONX.js b/src/format/GeoJSONX.js index eaf733ab3..12563dfdc 100644 --- a/src/format/GeoJSONX.js +++ b/src/format/GeoJSONX.js @@ -1,5 +1,5 @@ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import ol_format_GeoJSON from 'ol/format/GeoJSON' +import ol_format_GeoJSON from 'ol/format/GeoJSON.js' /** Feature format for reading and writing data in the GeoJSONX format. * @constructor diff --git a/src/format/GeoRSS.js b/src/format/GeoRSS.js index 892d757bc..81d92f852 100644 --- a/src/format/GeoRSS.js +++ b/src/format/GeoRSS.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Object from 'ol/Object' -import ol_Feature from 'ol/Feature' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_Polygon from 'ol/geom/Polygon' +import ol_Object from 'ol/Object.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' /** Feature format for reading data in the GeoRSS format. * @constructor ol_fromat_GeoRSS diff --git a/src/geom/ConvexHull.js b/src/geom/ConvexHull.js index 0a47dd5b8..3bae08d4c 100644 --- a/src/geom/ConvexHull.js +++ b/src/geom/ConvexHull.js @@ -7,7 +7,7 @@ @see https://en.wikipedia.org/wiki/Convex_hull_algorithms */ -import ol_geom_Geometry from 'ol/geom/Geometry'; +import ol_geom_Geometry from 'ol/geom/Geometry.js'; var ol_coordinate_convexHull; diff --git a/src/geom/DFCI.js b/src/geom/DFCI.js index f47c7be0e..7d4f8954e 100644 --- a/src/geom/DFCI.js +++ b/src/geom/DFCI.js @@ -3,10 +3,10 @@ released under the CeCILL-B license (http://www.cecill.info/). */ -import {get as ol_proj_get} from 'ol/proj'; -import {transform as ol_proj_transform} from 'ol/proj'; -import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js'; -import proj4 from 'proj4'; +import {get as ol_proj_get} from 'ol/proj.js'; +import {transform as ol_proj_transform} from 'ol/proj.js'; +import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js.js'; +import proj4 from 'proj4.js'; /** Convert coordinate to French DFCI grid * @param {ol/coordinate} coord diff --git a/src/geom/Dijkstra.js b/src/geom/Dijkstra.js index c497d5711..5f8c8fa57 100644 --- a/src/geom/Dijkstra.js +++ b/src/geom/Dijkstra.js @@ -3,14 +3,14 @@ released under the CeCILL-B license (http://www.cecill.info/). */ -import ol_Object from 'ol/Object'; -import ol_geom_LineString from 'ol/geom/LineString'; -import ol_geom_Point from 'ol/geom/Point'; -import ol_Feature from 'ol/Feature'; -import ol_source_Vector from 'ol/source/Vector' -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' -import {buffer as ol_extent_buffer} from 'ol/extent' -import {ol_coordinate_dist2d} from "../geom/GeomUtils"; +import ol_Object from 'ol/Object.js'; +import ol_geom_LineString from 'ol/geom/LineString.js'; +import ol_geom_Point from 'ol/geom/Point.js'; +import ol_Feature from 'ol/Feature.js'; +import ol_source_Vector from 'ol/source/Vector.js' +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' +import {buffer as ol_extent_buffer} from 'ol/extent.js' +import {ol_coordinate_dist2d} from "../geom/GeomUtils.js"; /* Define namespace */ diff --git a/src/geom/GPAltiCode.js b/src/geom/GPAltiCode.js index 6a73f0389..e504ec560 100644 --- a/src/geom/GPAltiCode.js +++ b/src/geom/GPAltiCode.js @@ -1,7 +1,7 @@ -import ol_ext_Ajax from '../util/Ajax' -import { ol_geom_createFromType } from './GeomUtils' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString' +import ol_ext_Ajax from '../util/Ajax.js' +import { ol_geom_createFromType } from './GeomUtils.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js' /** French Geoportail alti coding * @param {ol.geom.Geometry} geom diff --git a/src/geom/GeomUtils.js b/src/geom/GeomUtils.js index ad3a0bf76..1dedbeb5b 100644 --- a/src/geom/GeomUtils.js +++ b/src/geom/GeomUtils.js @@ -5,16 +5,16 @@ Usefull function to handle geometric operations */ -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_LinearRing from 'ol/geom/LinearRing' -import ol_geom_MultiLineString from 'ol/geom/MultiLineString' -import ol_geom_MultiPoint from 'ol/geom/MultiPoint' -import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_Circle from 'ol/geom/Circle' -import {getCenter as ol_extent_getCenter} from 'ol/extent' -import {buffer as ol_extent_buffer} from 'ol/extent' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_LinearRing from 'ol/geom/LinearRing.js' +import ol_geom_MultiLineString from 'ol/geom/MultiLineString.js' +import ol_geom_MultiPoint from 'ol/geom/MultiPoint.js' +import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_Circle from 'ol/geom/Circle.js' +import {getCenter as ol_extent_getCenter} from 'ol/extent.js' +import {buffer as ol_extent_buffer} from 'ol/extent.js' /** Distance beetween 2 points * Usefull geometric functions diff --git a/src/geom/LineStringSplitAt.js b/src/geom/LineStringSplitAt.js index b6a141f09..96f15d4a4 100644 --- a/src/geom/LineStringSplitAt.js +++ b/src/geom/LineStringSplitAt.js @@ -1,5 +1,5 @@ -import {ol_coordinate_equal} from "./GeomUtils"; -import ol_geom_LineString from "ol/geom/LineString"; +import {ol_coordinate_equal} from "./GeomUtils.js"; +import ol_geom_LineString from "ol/geom/LineString.js"; /** Split a lineString by a point or a list of points * NB: points must be on the line, use getClosestPoint() to get one diff --git a/src/geom/Scribble.js b/src/geom/Scribble.js index 643c93781..61ea921f8 100644 --- a/src/geom/Scribble.js +++ b/src/geom/Scribble.js @@ -6,11 +6,11 @@ */ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import ol_geom_MultiLineString from 'ol/geom/MultiLineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_MultiPolygon from 'ol/geom/multipolygon' -import '../render/Cspline' -import { ol_coordinate_splitH } from "./GeomUtils"; +import ol_geom_MultiLineString from 'ol/geom/MultiLineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_MultiPolygon from 'ol/geom/multipolygon.js' +import '../render/Cspline.js' +import { ol_coordinate_splitH } from "./GeomUtils.js"; /** * Calculate a MultiPolyline to fill a Polygon with a scribble effect that appears hand-made diff --git a/src/geom/sphere.js b/src/geom/sphere.js index 35822b78e..726a52852 100644 --- a/src/geom/sphere.js +++ b/src/geom/sphere.js @@ -1,5 +1,5 @@ -import {getDistance as ol_sphere_getDistance} from 'ol/sphere' -import {transform as ol_proj_transform} from 'ol/proj' +import {getDistance as ol_sphere_getDistance} from 'ol/sphere.js' +import {transform as ol_proj_transform} from 'ol/proj.js' /** Compute great circle bearing of two points. * @See http://www.movable-type.co.uk/scripts/latlong.html for the original code diff --git a/src/interaction/Blob.js b/src/interaction/Blob.js index 4839900ae..73fc8b0ab 100644 --- a/src/interaction/Blob.js +++ b/src/interaction/Blob.js @@ -1,5 +1,5 @@ -import ol_interaction_Clip from './Clip' -import ol_coordinate_cspline from '../render/Cspline' +import ol_interaction_Clip from './Clip.js' +import ol_coordinate_cspline from '../render/Cspline.js' /** Blob interaction to clip layers in a blob * @constructor diff --git a/src/interaction/CenterTouch.js b/src/interaction/CenterTouch.js index e60ae1db6..c092337f0 100644 --- a/src/interaction/CenterTouch.js +++ b/src/interaction/CenterTouch.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_control_Target from '../control/Target' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_control_Target from '../control/Target.js' /** Handles coordinates on the center of the viewport. * It can be used as abstract base class used for creating subclasses. diff --git a/src/interaction/Clip.js b/src/interaction/Clip.js index 453842c5d..cca971606 100644 --- a/src/interaction/Clip.js +++ b/src/interaction/Clip.js @@ -1,4 +1,4 @@ -import ol_interaction_Pointer from 'ol/interaction/Pointer' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' /** Clip interaction to clip layers in a circle * @constructor diff --git a/src/interaction/ClipMap.js b/src/interaction/ClipMap.js index 472528c07..94c15755d 100644 --- a/src/interaction/ClipMap.js +++ b/src/interaction/ClipMap.js @@ -1,5 +1,5 @@ -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' /** Clip interaction to clip layers in a circle * @constructor diff --git a/src/interaction/CopyPaste.js b/src/interaction/CopyPaste.js index cf1738153..d3d1fa371 100644 --- a/src/interaction/CopyPaste.js +++ b/src/interaction/CopyPaste.js @@ -1,5 +1,5 @@ -import ol_Collection from 'ol/Collection' -import ol_interaction_CurrentMap from './CurrentMap'; +import ol_Collection from 'ol/Collection.js' +import ol_interaction_CurrentMap from './CurrentMap.js'; /** An interaction to copy/paste features on a map. * It will fire a 'focus' event on the map when map is focused (use mapCondition option to handle the condition when the map is focused). diff --git a/src/interaction/CurrentMap.js b/src/interaction/CurrentMap.js index 8cc6ea952..172346aeb 100644 --- a/src/interaction/CurrentMap.js +++ b/src/interaction/CurrentMap.js @@ -1,4 +1,4 @@ -import ol_interaction_Interaction from 'ol/interaction/Interaction' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' /** An interaction to check the current map and add key events listeners. * It will fire a 'focus' event on the map when map is focused (use mapCondition option to handle the condition when the map is focused). diff --git a/src/interaction/Delete.js b/src/interaction/Delete.js index ae7a64b54..f81722262 100644 --- a/src/interaction/Delete.js +++ b/src/interaction/Delete.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Select from 'ol/interaction/Select' -import ol_source_Vector from 'ol/source/Vector' +import ol_interaction_Select from 'ol/interaction/Select.js' +import ol_source_Vector from 'ol/source/Vector.js' /** A Select interaction to delete features on click. * @constructor diff --git a/src/interaction/DragOverlay.js b/src/interaction/DragOverlay.js index 3e24b5165..b777dcc43 100644 --- a/src/interaction/DragOverlay.js +++ b/src/interaction/DragOverlay.js @@ -1,4 +1,4 @@ -import ol_interaction_Pointer from 'ol/interaction/Pointer' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' /** Drag an overlay on the map * @constructor diff --git a/src/interaction/DrawHole.js b/src/interaction/DrawHole.js index bfc8bae2a..5b3dabd49 100644 --- a/src/interaction/DrawHole.js +++ b/src/interaction/DrawHole.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon' -import ol_geom_LinearRing from 'ol/geom/LinearRing' -import ol_interaction_Draw from 'ol/interaction/Draw' -import ol_interaction_Select from 'ol/interaction/Select' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon.js' +import ol_geom_LinearRing from 'ol/geom/LinearRing.js' +import ol_interaction_Draw from 'ol/interaction/Draw.js' +import ol_interaction_Select from 'ol/interaction/Select.js' /** Interaction to draw holes in a polygon. * It fires a drawstart, drawend event when drawing the hole diff --git a/src/interaction/DrawRegular.js b/src/interaction/DrawRegular.js index a8648cd38..30a4d5704 100644 --- a/src/interaction/DrawRegular.js +++ b/src/interaction/DrawRegular.js @@ -3,17 +3,17 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_style_Style_defaultStyle from '../style/defaultStyle' -import ol_Collection from 'ol/Collection' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_source_Vector from 'ol/source/Vector' -import ol_geom_Circle from 'ol/geom/Circle' -import {fromCircle as ol_geom_Polygon_fromCircle} from 'ol/geom/Polygon' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_Feature from 'ol/Feature' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' +import ol_Collection from 'ol/Collection.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_geom_Circle from 'ol/geom/Circle.js' +import {fromCircle as ol_geom_Polygon_fromCircle} from 'ol/geom/Polygon.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_Feature from 'ol/Feature.js' /** Interaction rotate * @constructor diff --git a/src/interaction/DrawTouch.js b/src/interaction/DrawTouch.js index 80c300085..5f138f5a1 100644 --- a/src/interaction/DrawTouch.js +++ b/src/interaction/DrawTouch.js @@ -2,11 +2,11 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_CenterTouch from './CenterTouch' -import ol_style_Style_defaultStyle from '../style/defaultStyle' -import ol_layer_SketchOverlay from '../layer/SketchOverlay' -import {ol_coordinate_equal} from '../geom/GeomUtils'; +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_CenterTouch from './CenterTouch.js' +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' +import ol_layer_SketchOverlay from '../layer/SketchOverlay.js' +import {ol_coordinate_equal} from '../geom/GeomUtils.js'; /** Interaction DrawTouch : pointer is deferred to the center of the viewport and a target is drawn to materialize this point * The interaction modifies map browser event coordinate and pixel properties to force pointer on the viewport center to any interaction that them. diff --git a/src/interaction/DropFile.js b/src/interaction/DropFile.js index 3c3906954..7f259811e 100644 --- a/src/interaction/DropFile.js +++ b/src/interaction/DropFile.js @@ -1,12 +1,12 @@ -import ol_interaction_DragAndDrop from 'ol/interaction/DragAndDrop' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_format_GPX from 'ol/format/GPX' -import ol_format_GeoJSON from 'ol/format/GeoJSON' -import ol_format_IGC from 'ol/format/IGC' -import ol_format_KML from 'ol/format/KML' -import ol_format_TopoJSON from 'ol/format/TopoJSON' -import ol_format_GeoJSONX from '../format/GeoJSONX' -import ol_format_GeoJSONP from '../format/GeoJSONP' +import ol_interaction_DragAndDrop from 'ol/interaction/DragAndDrop.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_format_GPX from 'ol/format/GPX.js' +import ol_format_GeoJSON from 'ol/format/GeoJSON.js' +import ol_format_IGC from 'ol/format/IGC.js' +import ol_format_KML from 'ol/format/KML.js' +import ol_format_TopoJSON from 'ol/format/TopoJSON.js' +import ol_format_GeoJSONX from '../format/GeoJSONX.js' +import ol_format_GeoJSONP from '../format/GeoJSONP.js' /** Extend DragAndDrop choose drop zone + fires loadstart, loadend * @constructor diff --git a/src/interaction/FillAttribute.js b/src/interaction/FillAttribute.js index 00e2a2e9a..822a05c88 100644 --- a/src/interaction/FillAttribute.js +++ b/src/interaction/FillAttribute.js @@ -1,5 +1,5 @@ -import ol_interaction_Select from 'ol/interaction/Select' -import {click as ol_events_condition_click} from 'ol/events/condition' +import ol_interaction_Select from 'ol/interaction/Select.js' +import {click as ol_events_condition_click} from 'ol/events/condition.js' /** A Select interaction to fill feature's properties on click. * @constructor diff --git a/src/interaction/Flashlight.js b/src/interaction/Flashlight.js index ecc4490d6..2e8641022 100644 --- a/src/interaction/Flashlight.js +++ b/src/interaction/Flashlight.js @@ -1,8 +1,8 @@ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import {asString as ol_color_asString} from 'ol/color' -import {asArray as ol_color_asArray} from 'ol/color' -import ol_ext_getMapCanvas from '../util/getMapCanvas' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import {asString as ol_color_asString} from 'ol/color.js' +import {asArray as ol_color_asArray} from 'ol/color.js' +import ol_ext_getMapCanvas from '../util/getMapCanvas.js' /** * @constructor diff --git a/src/interaction/FocusMap.js b/src/interaction/FocusMap.js index da86460b4..a41170e39 100644 --- a/src/interaction/FocusMap.js +++ b/src/interaction/FocusMap.js @@ -1,6 +1,6 @@ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_ext_element from '../util/element' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_ext_element from '../util/element.js' /** An interaction to focus on the map on click. Usefull when using keyboard event on the map. * @deprecated use ol/interaction/CurrentMap instead diff --git a/src/interaction/GeolocationDraw.js b/src/interaction/GeolocationDraw.js index c27a965af..780e0a39b 100644 --- a/src/interaction/GeolocationDraw.js +++ b/src/interaction/GeolocationDraw.js @@ -1,22 +1,22 @@ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_Geolocation from 'ol/Geolocation' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_Circle from 'ol/geom/Circle' -import { fromCircle as ol_geom_Polygon_fromCircle } from 'ol/geom/Polygon' -import ol_style_Style from 'ol/style/Style' -import ol_style_RegularShape from 'ol/style/RegularShape' -import ol_style_Fill from 'ol/style/Fill' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import {containsCoordinate as ol_extent_containsCoordinate, containsExtent as ol_extent_containsExtent} from 'ol/extent' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_Geolocation from 'ol/Geolocation.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_Circle from 'ol/geom/Circle.js' +import { fromCircle as ol_geom_Polygon_fromCircle } from 'ol/geom/Polygon.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import {containsCoordinate as ol_extent_containsCoordinate, containsExtent as ol_extent_containsExtent} from 'ol/extent.js' // import {ol_coordinate_dist2d, ol_coordinate_equal} from '../geom/GeomUtils' -import {transform as ol_proj_transform} from 'ol/proj' -import {getDistance as ol_sphere_getDistance} from 'ol/sphere' +import {transform as ol_proj_transform} from 'ol/proj.js' +import {getDistance as ol_sphere_getDistance} from 'ol/sphere.js' /** Interaction to draw on the current geolocation diff --git a/src/interaction/Hover.js b/src/interaction/Hover.js index ebde991d5..ef66d6911 100644 --- a/src/interaction/Hover.js +++ b/src/interaction/Hover.js @@ -1,4 +1,4 @@ -import ol_interaction_Interaction from 'ol/interaction/Interaction' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' /** Interaction hover do to something when hovering a feature * @constructor diff --git a/src/interaction/LongTouch.js b/src/interaction/LongTouch.js index 085ad5f6a..80b17a63d 100644 --- a/src/interaction/LongTouch.js +++ b/src/interaction/LongTouch.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' /** Interaction to handle longtouch events * @constructor diff --git a/src/interaction/Modify.js b/src/interaction/Modify.js index ce4678881..a6d04c46a 100644 --- a/src/interaction/Modify.js +++ b/src/interaction/Modify.js @@ -1,7 +1,7 @@ -import ol_interaction_Modify from 'ol/interaction/Modify' -import {getUid as ol_util_getUid} from 'ol/util' +import ol_interaction_Modify from 'ol/interaction/Modify.js' +import {getUid as ol_util_getUid} from 'ol/util.js' // Use ol.getUid for Openlayers < v6 -import {getUid as ol_getUid} from 'ol/util' +import {getUid as ol_getUid} from 'ol/util.js' /** Extent the ol/interaction/Modify with a getModifyFeatures * Get the features modified by the interaction diff --git a/src/interaction/ModifyFeature.js b/src/interaction/ModifyFeature.js index 8fc3872e8..eb5c4f1d0 100644 --- a/src/interaction/ModifyFeature.js +++ b/src/interaction/ModifyFeature.js @@ -3,24 +3,24 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_source_Vector from 'ol/source/Vector' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Circle from 'ol/style/Circle' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_geom_Point from 'ol/geom/Point' -import ol_Feature from 'ol/Feature' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import {ol_coordinate_dist2d, ol_coordinate_equal} from "../geom/GeomUtils"; -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' -import {buffer as ol_extent_buffer} from 'ol/extent' -import {altKeyOnly as ol_events_condition_altKeyOnly} from 'ol/events/condition' -import {primaryAction as ol_events_condition_primaryAction} from 'ol/events/condition' -import {always as ol_events_condition_always} from 'ol/events/condition' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import {ol_coordinate_dist2d, ol_coordinate_equal} from "../geom/GeomUtils.js"; +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' +import {buffer as ol_extent_buffer} from 'ol/extent.js' +import {altKeyOnly as ol_events_condition_altKeyOnly} from 'ol/events/condition.js' +import {primaryAction as ol_events_condition_primaryAction} from 'ol/events/condition.js' +import {always as ol_events_condition_always} from 'ol/events/condition.js' -import '../geom/LineStringSplitAt' +import '../geom/LineStringSplitAt.js' /** Interaction for modifying feature geometries. Similar to the core ol/interaction/Modify. * The interaction is more suitable to use to handle feature modification: only features concerned diff --git a/src/interaction/ModifyTouch.js b/src/interaction/ModifyTouch.js index 44a11cefe..40322c380 100644 --- a/src/interaction/ModifyTouch.js +++ b/src/interaction/ModifyTouch.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Modify from 'ol/interaction/Modify' -import ol_Overlay_Popup from '../overlay/Popup' -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' +import ol_interaction_Modify from 'ol/interaction/Modify.js' +import ol_Overlay_Popup from '../overlay/Popup.js' +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' /** Modify interaction with a popup to delet a point on touch device * @constructor diff --git a/src/interaction/Offset.js b/src/interaction/Offset.js index 40a932353..2d31136a7 100644 --- a/src/interaction/Offset.js +++ b/src/interaction/Offset.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import {ol_coordinate_dist2d, ol_coordinate_findSegment, ol_coordinate_offsetCoords} from "../geom/GeomUtils"; +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import {ol_coordinate_dist2d, ol_coordinate_findSegment, ol_coordinate_offsetCoords} from "../geom/GeomUtils.js"; -import ol_style_Style_defaultStyle from '../style/defaultStyle' +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' /** Offset interaction for offseting feature geometry * @constructor diff --git a/src/interaction/Ripple.js b/src/interaction/Ripple.js index 8c33dfe4f..5bb74a439 100644 --- a/src/interaction/Ripple.js +++ b/src/interaction/Ripple.js @@ -13,7 +13,7 @@ @link https://github.com/Viglino */ -import ol_interaction_Pointer from 'ol/interaction/Pointer' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' /** * @constructor diff --git a/src/interaction/SelectCluster.js b/src/interaction/SelectCluster.js index fc47b0d9a..627ec0ac8 100644 --- a/src/interaction/SelectCluster.js +++ b/src/interaction/SelectCluster.js @@ -5,22 +5,22 @@ ol/interaction/SelectCluster is an interaction for selecting vector features in a cluster. */ -import ol_Map from 'ol/Map' -import ol_Collection from 'ol/Collection' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_source_Vector from 'ol/source/Vector' -import ol_interaction_Select from 'ol/interaction/Select' -import ol_Feature from 'ol/Feature' -import ol_geom_LineString from 'ol/geom/LineString' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import ol_geom_Point from 'ol/geom/Point' -import ol_style_Style from 'ol/style/Style' -import ol_style_Circle from 'ol/style/Circle' -import ol_render_getVectorContext from '../util/getVectorContext'; -import { createEmpty as ol_extent_createEmpty } from 'ol/extent' -import { extend as ol_extent_extend } from 'ol/extent' -import { singleClick as ol_events_condition_singleClick } from 'ol/events/condition'; +import ol_Map from 'ol/Map.js' +import ol_Collection from 'ol/Collection.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_interaction_Select from 'ol/interaction/Select.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_render_getVectorContext from '../util/getVectorContext.js'; +import { createEmpty as ol_extent_createEmpty } from 'ol/extent.js' +import { extend as ol_extent_extend } from 'ol/extent.js' +import { singleClick as ol_events_condition_singleClick } from 'ol/events/condition.js'; /** * @classdesc diff --git a/src/interaction/SnapGuides.js b/src/interaction/SnapGuides.js index 802fe80ae..e70c0fc15 100644 --- a/src/interaction/SnapGuides.js +++ b/src/interaction/SnapGuides.js @@ -3,16 +3,16 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import {buffer as ol_extent_buffer, containsCoordinate as ol_extent_containsCoordinate} from 'ol/extent' -import ol_source_Vector from 'ol/source/Vector' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_Collection from 'ol/Collection' -import ol_Feature from 'ol/Feature' -import ol_geom_LineString from 'ol/geom/LineString' -import './Modify' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import {buffer as ol_extent_buffer, containsCoordinate as ol_extent_containsCoordinate} from 'ol/extent.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_Collection from 'ol/Collection.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import './Modify.js' /** Interaction to snap to guidelines * @constructor diff --git a/src/interaction/SnapLayerPixel.js b/src/interaction/SnapLayerPixel.js index f79f37c32..a884752dd 100644 --- a/src/interaction/SnapLayerPixel.js +++ b/src/interaction/SnapLayerPixel.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import {altKeyOnly as ol_events_condition_altKeyOnly} from 'ol/events/condition' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import {altKeyOnly as ol_events_condition_altKeyOnly} from 'ol/events/condition.js' /** An interaction to snap on pixel on a layer * The CenterTouch interaction modifies map browser event coordinate and pixel properties to force pointer on the viewport center to any interaction that them. diff --git a/src/interaction/Split.js b/src/interaction/Split.js index f8b67e335..44abdea10 100644 --- a/src/interaction/Split.js +++ b/src/interaction/Split.js @@ -3,18 +3,18 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_source_Vector from 'ol/source/Vector' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Circle from 'ol/style/Circle' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_geom_Point from 'ol/geom/Point' -import ol_Feature from 'ol/Feature' -import ol_geom_LineString from 'ol/geom/LineString' -import {ol_coordinate_dist2d} from "../geom/GeomUtils"; -import '../geom/LineStringSplitAt' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import {ol_coordinate_dist2d} from "../geom/GeomUtils.js"; +import '../geom/LineStringSplitAt.js' /** Interaction split interaction for splitting feature geometry * @constructor diff --git a/src/interaction/Splitter.js b/src/interaction/Splitter.js index d0a685ed0..e32a83c9b 100644 --- a/src/interaction/Splitter.js +++ b/src/interaction/Splitter.js @@ -4,11 +4,11 @@ */ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_source_Vector from 'ol/source/Vector' -import ol_Collection from 'ol/Collection' -import {boundingExtent as ol_extent_boundingExtent, buffer as ol_extent_buffer} from 'ol/extent' -import '../geom/LineStringSplitAt' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Collection from 'ol/Collection.js' +import {boundingExtent as ol_extent_boundingExtent, buffer as ol_extent_buffer} from 'ol/extent.js' +import '../geom/LineStringSplitAt.js' /** Interaction splitter: acts as a split feature agent while editing vector features (LineString). * @constructor diff --git a/src/interaction/Synchronize.js b/src/interaction/Synchronize.js index a7fd2ae96..d919546b5 100644 --- a/src/interaction/Synchronize.js +++ b/src/interaction/Synchronize.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_Map from 'ol/Map' -import ol_Overlay from 'ol/Overlay' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_Map from 'ol/Map.js' +import ol_Overlay from 'ol/Overlay.js' /** Interaction synchronize * @constructor diff --git a/src/interaction/TinkerBell.js b/src/interaction/TinkerBell.js index 33e5839b4..a4b11a60a 100644 --- a/src/interaction/TinkerBell.js +++ b/src/interaction/TinkerBell.js @@ -7,10 +7,10 @@ @link https://github.com/Viglino */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import {asString as ol_color_asString} from 'ol/color' -import ol_ext_getMapCanvas from '../util/getMapcanvas' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_ext_getMapCanvas from '../util/getMapcanvas.js' /** * @constructor diff --git a/src/interaction/TouchCompass.js b/src/interaction/TouchCompass.js index 914a50299..60c46fcf1 100644 --- a/src/interaction/TouchCompass.js +++ b/src/interaction/TouchCompass.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import ol_ext_getMapCanvas from '../util/getMapCanvas' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import ol_ext_getMapCanvas from '../util/getMapCanvas.js' /** Interaction splitter: acts as a split feature agent while editing vector features (LineString). * @constructor diff --git a/src/interaction/TouchCursor.js b/src/interaction/TouchCursor.js index f2e0b61b3..9879b4954 100644 --- a/src/interaction/TouchCursor.js +++ b/src/interaction/TouchCursor.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_DragOverlay from './DragOverlay' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Interaction from 'ol/interaction/Interaction' +import ol_interaction_DragOverlay from './DragOverlay.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' -import ol_ext_element from '../util/element' -import ol_Overlay_Fixed from '../overlay/Fixed' +import ol_ext_element from '../util/element.js' +import ol_Overlay_Fixed from '../overlay/Fixed.js' /** Handle a touch cursor to defer event position on overlay position * It can be used as abstract base class used for creating subclasses. diff --git a/src/interaction/TouchCursorDraw.js b/src/interaction/TouchCursorDraw.js index 725717d8e..326048819 100644 --- a/src/interaction/TouchCursorDraw.js +++ b/src/interaction/TouchCursorDraw.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_TouchCursor from './TouchCursor' +import ol_interaction_TouchCursor from './TouchCursor.js' -import ol_layer_SketchOverlay from '../layer/SketchOverlay' +import ol_layer_SketchOverlay from '../layer/SketchOverlay.js' /** TouchCursor interaction + ModifyFeature * @constructor diff --git a/src/interaction/TouchCursorModify.js b/src/interaction/TouchCursorModify.js index 9fb99a540..ec5dba5e3 100644 --- a/src/interaction/TouchCursorModify.js +++ b/src/interaction/TouchCursorModify.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_interaction_TouchCursor from './TouchCursor' -import ol_interaction_ModifyFeature from './ModifyFeature' -import ol_style_Style from 'ol/style/Style'; -import ol_style_Stroke from 'ol/style/Stroke'; -import ol_style_RegularShape from 'ol/style/RegularShape'; +import ol_interaction_TouchCursor from './TouchCursor.js' +import ol_interaction_ModifyFeature from './ModifyFeature.js' +import ol_style_Style from 'ol/style/Style.js'; +import ol_style_Stroke from 'ol/style/Stroke.js'; +import ol_style_RegularShape from 'ol/style/RegularShape.js'; /** TouchCursor interaction + ModifyFeature * @constructor diff --git a/src/interaction/TouchCursorSelect.js b/src/interaction/TouchCursorSelect.js index 6ad3e4a30..3a097eae1 100644 --- a/src/interaction/TouchCursorSelect.js +++ b/src/interaction/TouchCursorSelect.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style_defaultStyle from '../style/defaultStyle' -import ol_interaction_TouchCursor from './TouchCursor' +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' +import ol_interaction_TouchCursor from './TouchCursor.js' /** A TouchCursor to select objects on hovering the cursor * @constructor diff --git a/src/interaction/Transform.js b/src/interaction/Transform.js index 558f1ae18..bb2854865 100644 --- a/src/interaction/Transform.js +++ b/src/interaction/Transform.js @@ -1,17 +1,17 @@ -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_source_Vector from 'ol/source/Vector' -import ol_style_Fill from 'ol/style/Fill' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_geom_Point from 'ol/geom/Point' -import ol_Feature from 'ol/Feature' -import ol_Collection from 'ol/Collection' -import ol_interaction_Pointer from 'ol/interaction/Pointer' -import ol_style_RegularShape from 'ol/style/RegularShape' -import {fromExtent as ol_geom_Polygon_fromExtent} from 'ol/geom/Polygon' -import {boundingExtent as ol_extent_boundingExtent, buffer as ol_extent_buffer, createEmpty as ol_extent_createEmpty, extend as ol_extent_extend, getCenter as ol_extent_getCenter} from 'ol/extent' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_geom_Polygon from 'ol/geom/Polygon' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_Feature from 'ol/Feature.js' +import ol_Collection from 'ol/Collection.js' +import ol_interaction_Pointer from 'ol/interaction/Pointer.js' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import {fromExtent as ol_geom_Polygon_fromExtent} from 'ol/geom/Polygon.js' +import {boundingExtent as ol_extent_boundingExtent, buffer as ol_extent_buffer, createEmpty as ol_extent_createEmpty, extend as ol_extent_extend, getCenter as ol_extent_getCenter} from 'ol/extent.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' /** Interaction rotate * @constructor diff --git a/src/interaction/UndoRedo.js b/src/interaction/UndoRedo.js index b8fdd9f5d..6818e89d0 100644 --- a/src/interaction/UndoRedo.js +++ b/src/interaction/UndoRedo.js @@ -1,8 +1,8 @@ -import ol_Collection from 'ol/Collection' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import ol_layer_Vector from 'ol/layer/Vector' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import '../source/Vector' +import ol_Collection from 'ol/Collection.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import '../source/Vector.js' /** Undo/redo interaction * @constructor diff --git a/src/layer/AnimatedCluster.js b/src/layer/AnimatedCluster.js index ad264d304..cf48c07a4 100644 --- a/src/layer/AnimatedCluster.js +++ b/src/layer/AnimatedCluster.js @@ -4,14 +4,14 @@ ol_layer_AnimatedCluster is a vector layer that animate cluster */ -import ol_layer_Vector from 'ol/layer/Vector' -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import {buffer as ol_extent_buffer} from 'ol/extent' -import ol_geom_Point from 'ol/geom/Point' -import ol_render_getVectorContext from '../util/getVectorContext'; -import ol_ext_getVectorContextStyle from '../util/getVectorContextStyle' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import {buffer as ol_extent_buffer} from 'ol/extent.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_render_getVectorContext from '../util/getVectorContext.js'; +import ol_ext_getVectorContextStyle from '../util/getVectorContextStyle.js' /** * A vector layer for animated cluster diff --git a/src/layer/GeoImage.js b/src/layer/GeoImage.js index 2f3a21200..6a4c86fc9 100644 --- a/src/layer/GeoImage.js +++ b/src/layer/GeoImage.js @@ -2,7 +2,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_layer_Image from 'ol/layer/Image' +import ol_layer_Image from 'ol/layer/Image.js' /** * @classdesc diff --git a/src/layer/Geoportail.js b/src/layer/Geoportail.js index f79ed6fae..9b7ad0c6d 100644 --- a/src/layer/Geoportail.js +++ b/src/layer/Geoportail.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_layer_Tile from 'ol/layer/Tile' -import ol_ext_Ajax from '../util/Ajax' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' +import ol_layer_Tile from 'ol/layer/Tile.js' +import ol_ext_Ajax from '../util/Ajax.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' // import {intersects as ol_extent_intersects} from 'ol/extent' -import ol_source_Geoportail from '../source/Geoportail' +import ol_source_Geoportail from '../source/Geoportail.js' /** IGN's Geoportail WMTS layer definition * @constructor diff --git a/src/layer/GetPreview.js b/src/layer/GetPreview.js index 1d6e3e161..2cd59c168 100644 --- a/src/layer/GetPreview.js +++ b/src/layer/GetPreview.js @@ -3,13 +3,13 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_Source from 'ol/source/Source' -import ol_source_Tile from 'ol/source/Tile' -import ol_source_TileWMS from 'ol/source/TileWMS' -import ol_layer_Base from 'ol/layer/Layer' -import {containsCoordinate as ol_extent_containsCoordinate} from 'ol/extent' -import {transform as ol_proj_transform} from 'ol/proj' -import ol_layer_Group from 'ol/layer/Group' +import ol_source_Source from 'ol/source/Source.js' +import ol_source_Tile from 'ol/source/Tile.js' +import ol_source_TileWMS from 'ol/source/TileWMS.js' +import ol_layer_Base from 'ol/layer/Layer.js' +import {containsCoordinate as ol_extent_containsCoordinate} from 'ol/extent.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_layer_Group from 'ol/layer/Group.js' /** * Return a preview image of the source. diff --git a/src/layer/Maplibre.js b/src/layer/Maplibre.js index 0b2c2c443..58267e42d 100644 --- a/src/layer/Maplibre.js +++ b/src/layer/Maplibre.js @@ -2,11 +2,11 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_layer_Layer from 'ol/layer/Layer' -import {ol_ext_inherits} from '../util/ext' -import {ol_ext_element} from '../util/element' -import {toLonLat as ol_proj_toLonLat} from 'ol/proj' -import * as mapboxgl from 'maplibre-gl'; +import ol_layer_Layer from 'ol/layer/Layer.js' +import {ol_ext_inherits} from '../util/ext.js' +import {ol_ext_element} from '../util/element.js' +import {toLonLat as ol_proj_toLonLat} from 'ol/proj.js' +import * as mapboxgl from 'maplibre-gl.js'; /** Layer that use Maplibre GL as render * @constructor diff --git a/src/layer/Render3D.js b/src/layer/Render3D.js index 521c414a3..18ae3d8f7 100644 --- a/src/layer/Render3D.js +++ b/src/layer/Render3D.js @@ -1,13 +1,13 @@ -import ol_layer_Vector from 'ol/layer/Vector' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import ol_Object from 'ol/Object' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' +import ol_layer_Vector from 'ol/layer/Vector.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import ol_Object from 'ol/Object.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' -import {ol_coordinate_getIntersectionPoint} from '../geom/GeomUtils' +import {ol_coordinate_getIntersectionPoint} from '../geom/GeomUtils.js' /** ol.layer.Vector.prototype.setRender3D * @extends {ol.layer.Vector} diff --git a/src/layer/SketchOverlay.js b/src/layer/SketchOverlay.js index 7ef19ef4a..6b1c191b7 100644 --- a/src/layer/SketchOverlay.js +++ b/src/layer/SketchOverlay.js @@ -2,19 +2,19 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_layer_Vector from 'ol/layer/Vector' -import ol_style_Style from 'ol/style/Style' -import ol_style_RegularShape from 'ol/style/RegularShape' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_Circle from 'ol/geom/Circle' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_Circle from 'ol/geom/Circle.js' -import ol_style_Style_defaultStyle from '../style/defaultStyle' -import {ol_coordinate_dist2d} from "../geom/GeomUtils"; +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' +import {ol_coordinate_dist2d} from "../geom/GeomUtils.js"; /** A sketch layer used as overlay to handle drawing sketch (helper for drawing tools) * @constructor diff --git a/src/legend/Item.js b/src/legend/Item.js index 267b23a74..3040315b9 100644 --- a/src/legend/Item.js +++ b/src/legend/Item.js @@ -1,5 +1,5 @@ -import ol_Object from 'ol/Object' -import ol_ext_element from '../util/element' +import ol_Object from 'ol/Object.js' +import ol_ext_element from '../util/element.js' /** ol/legend/Item options * @typedef {Object} olLegendItemOptions diff --git a/src/legend/Legend.js b/src/legend/Legend.js index dd52045e0..a9d8ce76c 100644 --- a/src/legend/Legend.js +++ b/src/legend/Legend.js @@ -1,18 +1,18 @@ -import ol_Object from 'ol/Object' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_Collection from 'ol/Collection' -import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has' -import {toContext as ol_render_toContext} from 'ol/render' -import {asString as ol_color_asString} from 'ol/color' -import ol_Feature from 'ol/Feature' -import ol_geom_Point from 'ol/geom/Point' -import ol_geom_LineString from 'ol/geom/LineString'; -import ol_geom_Polygon from 'ol/geom/Polygon' -import {extend as ol_extent_extend} from 'ol/extent' -import ol_legend_Item from './Item' -import ol_ext_element from '../util/element' -import ol_style_Text from 'ol/style/Text' -import ol_style_Fill from 'ol/style/Fill' +import ol_Object from 'ol/Object.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_Collection from 'ol/Collection.js' +import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has.js' +import {toContext as ol_render_toContext} from 'ol/render.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Point from 'ol/geom/Point.js' +import ol_geom_LineString from 'ol/geom/LineString.js'; +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import {extend as ol_extent_extend} from 'ol/extent.js' +import ol_legend_Item from './Item.js' +import ol_ext_element from '../util/element.js' +import ol_style_Text from 'ol/style/Text.js' +import ol_style_Fill from 'ol/style/Fill.js' /** @namespace ol.legend */ diff --git a/src/map/PerspectiveMap.js b/src/map/PerspectiveMap.js index cacf01054..0ab871e2f 100644 --- a/src/map/PerspectiveMap.js +++ b/src/map/PerspectiveMap.js @@ -2,12 +2,12 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Map from 'ol/Map' -import ol_ext_element from '../util/element'; -import ol_Overlay from 'ol/Overlay' -import { inAndOut as ol_easing_inAndOut } from 'ol/easing' -import ol_matrix3D from '../util/matrix3D' -import { altKeyOnly as ol_events_condition_altKeyOnly } from 'ol/events/condition' +import ol_Map from 'ol/Map.js' +import ol_ext_element from '../util/element.js'; +import ol_Overlay from 'ol/Overlay.js' +import { inAndOut as ol_easing_inAndOut } from 'ol/easing.js' +import ol_matrix3D from '../util/matrix3D.js' +import { altKeyOnly as ol_events_condition_altKeyOnly } from 'ol/events/condition.js' /** A map with a perspective * @constructor diff --git a/src/overlay/AnimatedCanvas.js b/src/overlay/AnimatedCanvas.js index a52fe718e..438faa236 100644 --- a/src/overlay/AnimatedCanvas.js +++ b/src/overlay/AnimatedCanvas.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Overlay from 'ol/Overlay' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_ext_element from '../util/element'; -import ol_particule_Base from '../particule/Base'; +import ol_Overlay from 'ol/Overlay.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_ext_element from '../util/element.js'; +import ol_particule_Base from '../particule/Base.js'; /** An overlay to play animations on top of the map * The overlay define a set of particules animated on top of the map. diff --git a/src/overlay/Fixed.js b/src/overlay/Fixed.js index 7ca27aba8..db1a9d209 100644 --- a/src/overlay/Fixed.js +++ b/src/overlay/Fixed.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Overlay from 'ol/Overlay' +import ol_Overlay from 'ol/Overlay.js' /** * @classdesc diff --git a/src/overlay/FixedPopup.js b/src/overlay/FixedPopup.js index 88dddba31..9eda1d991 100644 --- a/src/overlay/FixedPopup.js +++ b/src/overlay/FixedPopup.js @@ -3,16 +3,16 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_layer_Image from 'ol/layer/Image' -import ol_source_ImageCanvas from 'ol/source/ImageCanvas' -import ol_style_Style from 'ol/style/Style' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_layer_Image from 'ol/layer/Image.js' +import ol_source_ImageCanvas from 'ol/source/ImageCanvas.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' -import ol_ext_element from '../util/element' -import ol_Overlay_Popup from './Popup' -import {ol_coordinate_dist2d} from "../geom/GeomUtils"; +import ol_ext_element from '../util/element.js' +import ol_Overlay_Popup from './Popup.js' +import {ol_coordinate_dist2d} from "../geom/GeomUtils.js"; /** * A popup element to be displayed over the map and attached to a single map diff --git a/src/overlay/Magnify.js b/src/overlay/Magnify.js index c2941c7ce..9067e53f9 100644 --- a/src/overlay/Magnify.js +++ b/src/overlay/Magnify.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_Collection from 'ol/Collection' -import ol_View from 'ol/View' -import ol_Overlay from 'ol/Overlay' -import ol_Map from 'ol/Map' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_Collection from 'ol/Collection.js' +import ol_View from 'ol/View.js' +import ol_Overlay from 'ol/Overlay.js' +import ol_Map from 'ol/Map.js' /** * @classdesc diff --git a/src/overlay/Placemark.js b/src/overlay/Placemark.js index cab390bb6..8e4e2f538 100644 --- a/src/overlay/Placemark.js +++ b/src/overlay/Placemark.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Overlay_Popup from './Popup' +import ol_Overlay_Popup from './Popup.js' /** * @classdesc diff --git a/src/overlay/Popup.js b/src/overlay/Popup.js index 98b0b9b60..82f8533be 100644 --- a/src/overlay/Popup.js +++ b/src/overlay/Popup.js @@ -3,8 +3,8 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Overlay from 'ol/Overlay' -import ol_ext_element from '../util/element' +import ol_Overlay from 'ol/Overlay.js' +import ol_ext_element from '../util/element.js' /** * @classdesc diff --git a/src/overlay/PopupFeature.js b/src/overlay/PopupFeature.js index 55cc230e8..d79576ad0 100644 --- a/src/overlay/PopupFeature.js +++ b/src/overlay/PopupFeature.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Feature from 'ol/Feature' -import ol_Overlay_Popup from './Popup' -import ol_ext_element from '../util/element' +import ol_Feature from 'ol/Feature.js' +import ol_Overlay_Popup from './Popup.js' +import ol_ext_element from '../util/element.js' /** Template attributes for popup diff --git a/src/overlay/Tooltip.js b/src/overlay/Tooltip.js index 01c1a7e2f..e4baf9bb1 100644 --- a/src/overlay/Tooltip.js +++ b/src/overlay/Tooltip.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import ol_interaction_Interaction from 'ol/interaction/Interaction' -import {getArea as ol_sphere_getArea} from 'ol/sphere.js'; -import {getLength as ol_sphere_getLength} from 'ol/sphere.js'; -import ol_Overlay_Popup from './Popup' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import ol_interaction_Interaction from 'ol/interaction/Interaction.js' +import {getArea as ol_sphere_getArea} from 'ol/sphere.js.js'; +import {getLength as ol_sphere_getLength} from 'ol/sphere.js.js'; +import ol_Overlay_Popup from './Popup.js' /** A tooltip element to be displayed over the map and attached on the cursor position. * @constructor diff --git a/src/particule/Base.js b/src/particule/Base.js index 3941b3a81..a6ab3ca64 100644 --- a/src/particule/Base.js +++ b/src/particule/Base.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Object from 'ol/Object' +import ol_Object from 'ol/Object.js' /*global ol*/ if (window.ol && !ol.particule) { diff --git a/src/particule/Bird.js b/src/particule/Bird.js index 922d91d95..35d418aff 100644 --- a/src/particule/Bird.js +++ b/src/particule/Bird.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_particule_Base from './Base' +import ol_particule_Base from './Base.js' /** A cloud particule to display clouds over the map * @constructor diff --git a/src/particule/Cloud.js b/src/particule/Cloud.js index 053c7bb52..85f7c9ee4 100644 --- a/src/particule/Cloud.js +++ b/src/particule/Cloud.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_particule_Base from './Base' +import ol_particule_Base from './Base.js' /** A cloud particule to display clouds over the map * @constructor diff --git a/src/particule/Rain.js b/src/particule/Rain.js index f9cbd45aa..3b7efaa43 100644 --- a/src/particule/Rain.js +++ b/src/particule/Rain.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_particule_Base from './Base' +import ol_particule_Base from './Base.js' /** Rain particules to display clouds over the map * @constructor diff --git a/src/particule/RainDrop.js b/src/particule/RainDrop.js index 7a85078bf..8fc2001de 100644 --- a/src/particule/RainDrop.js +++ b/src/particule/RainDrop.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_particule_Base from './Base' +import ol_particule_Base from './Base.js' /** Raindrop particules to display clouds over the map * @constructor diff --git a/src/particule/Snow.js b/src/particule/Snow.js index 057fa9fb1..92f08945d 100644 --- a/src/particule/Snow.js +++ b/src/particule/Snow.js @@ -3,7 +3,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_particule_Base from './Base' +import ol_particule_Base from './Base.js' /** Rain particules to display clouds over the map * @constructor diff --git a/src/render/AnimExtent.js b/src/render/AnimExtent.js index 5c544239f..e34fe99bb 100644 --- a/src/render/AnimExtent.js +++ b/src/render/AnimExtent.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Map from 'ol/Map' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import {upAndDown as ol_easing_upAndDown} from 'ol/easing' +import ol_Map from 'ol/Map.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import {upAndDown as ol_easing_upAndDown} from 'ol/easing.js' /** Pulse an extent on postcompose * @param {ol.coordinates} point to pulse diff --git a/src/render/Cspline.js b/src/render/Cspline.js index b0a96ccf0..7d7a8d11b 100644 --- a/src/render/Cspline.js +++ b/src/render/Cspline.js @@ -1,10 +1,10 @@ -import ol_geom_Geometry from 'ol/geom/Geometry' -import ol_geom_GeometryCollection from 'ol/geom/GeometryCollection' -import ol_geom_MultiLineString from 'ol/geom/MultiLineString' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon' -import ol_geom_LineString from 'ol/geom/LineString' -import { ol_coordinate_dist2d } from '../geom/GeomUtils' +import ol_geom_Geometry from 'ol/geom/Geometry.js' +import ol_geom_GeometryCollection from 'ol/geom/GeometryCollection.js' +import ol_geom_MultiLineString from 'ol/geom/MultiLineString.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_geom_MultiPolygon from 'ol/geom/MultiPolygon.js' +import ol_geom_LineString from 'ol/geom/LineString.js' +import { ol_coordinate_dist2d } from '../geom/GeomUtils.js' /** Create a cardinal spline version of this geometry. * Original https://github.com/epistemex/cardinal-spline-js diff --git a/src/render/HexGrid.js b/src/render/HexGrid.js index cf147426d..13c1ca196 100644 --- a/src/render/HexGrid.js +++ b/src/render/HexGrid.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Object from 'ol/Object' +import ol_Object from 'ol/Object.js' /** @typedef {'pointy' | 'flat'} HexagonLayout * Layout of a Hexagon. Flat means the bottom part of the hexagon is flat. diff --git a/src/render/InseeGrid.js b/src/render/InseeGrid.js index a7f1a06a5..f37c5e5a9 100644 --- a/src/render/InseeGrid.js +++ b/src/render/InseeGrid.js @@ -3,12 +3,12 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import proj4 from 'proj4' -import ol_Object from 'ol/Object' -import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js'; -import {transform as ol_proj_transform} from 'ol/proj' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_geom_Polygon from 'ol/geom/Polygon' +import proj4 from 'proj4.js' +import ol_Object from 'ol/Object.js' +import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js.js'; +import {transform as ol_proj_transform} from 'ol/proj.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' /** * French INSEE grids diff --git a/src/render/Markup.js b/src/render/Markup.js index ad348ccdb..d7c73abac 100644 --- a/src/render/Markup.js +++ b/src/render/Markup.js @@ -3,15 +3,15 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Map from 'ol/Map' -import {transform as ol_proj_transform} from 'ol/proj' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Image from 'ol/style/Image' -import ol_style_Style from 'ol/style/Style' -import ol_geom_Point from 'ol/geom/Point' +import ol_Map from 'ol/Map.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Image from 'ol/style/Image.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_geom_Point from 'ol/geom/Point.js' /** Show a markup a point on postcompose * @deprecated use map.animateFeature instead diff --git a/src/render/Pulse.js b/src/render/Pulse.js index 52c7a2e9b..3854e2126 100644 --- a/src/render/Pulse.js +++ b/src/render/Pulse.js @@ -3,15 +3,15 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Map from 'ol/Map' -import {transform as ol_proj_transform} from 'ol/proj' -import {unByKey as ol_Observable_unByKey} from 'ol/Observable' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Image from 'ol/style/Image' -import ol_style_Style from 'ol/style/Style' -import ol_geom_Point from 'ol/geom/Point' +import ol_Map from 'ol/Map.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import {unByKey as ol_Observable_unByKey} from 'ol/Observable.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Image from 'ol/style/Image.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_geom_Point from 'ol/geom/Point.js' /** Pulse a point on postcompose * @deprecated use map.animateFeature instead diff --git a/src/source/BinBase.js b/src/source/BinBase.js index dabb1dccc..1c4fa2a98 100644 --- a/src/source/BinBase.js +++ b/src/source/BinBase.js @@ -2,11 +2,11 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_Feature from 'ol/Feature' -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_source_Vector from 'ol/source/Vector' -import { ol_coordinate_getFeatureCenter } from "../geom/GeomUtils"; -import './Vector' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_source_Vector from 'ol/source/Vector.js' +import { ol_coordinate_getFeatureCenter } from "../geom/GeomUtils.js"; +import './Vector.js' /** Abstract base class; normally only used for creating subclasses. Bin collector for data * @constructor diff --git a/src/source/DBPedia.js b/src/source/DBPedia.js index 47bb9fdff..0663748a0 100644 --- a/src/source/DBPedia.js +++ b/src/source/DBPedia.js @@ -13,16 +13,16 @@ */ -import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy' -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import ol_geom_Point from 'ol/geom/Point' -import {transform as ol_proj_transform, transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Style from 'ol/style/Style' -import ol_style_FontSymbol from '../style/FontSymbol' -import ol_ext_Ajax from '../util/Ajax'; +import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Point from 'ol/geom/Point.js' +import {transform as ol_proj_transform, transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_FontSymbol from '../style/FontSymbol.js' +import ol_ext_Ajax from '../util/Ajax.js'; /** * @constructor ol_source_DBPedia diff --git a/src/source/DFCI.js b/src/source/DFCI.js index 5b508be49..c1a5e2228 100644 --- a/src/source/DFCI.js +++ b/src/source/DFCI.js @@ -3,13 +3,13 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_Feature from 'ol/Feature' -import ol_source_Vector from 'ol/source/Vector' -import {ol_coordinate_toDFCI} from '../geom/DFCI' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js'; -import proj4 from 'proj4'; +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_Feature from 'ol/Feature.js' +import ol_source_Vector from 'ol/source/Vector.js' +import {ol_coordinate_toDFCI} from '../geom/DFCI.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import {register as ol_proj_proj4_register} from 'ol/proj/proj4.js.js'; +import proj4 from 'proj4.js'; /** DFCI source: a source to display the French DFCI grid on a map * @see http://ccffpeynier.free.fr/Files/dfci.pdf diff --git a/src/source/DayNight.js b/src/source/DayNight.js index 7ae79e3dd..a7283b89e 100644 --- a/src/source/DayNight.js +++ b/src/source/DayNight.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_geom_Polygon from 'ol/geom/Polygon' -import ol_Feature from 'ol/Feature' -import ol_source_Vector from 'ol/source/Vector' -import {all as ol_loadingstrategy_all} from 'ol/loadingstrategy' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import ol_Feature from 'ol/Feature.js' +import ol_source_Vector from 'ol/source/Vector.js' +import {all as ol_loadingstrategy_all} from 'ol/loadingstrategy.js' /** DayNight source: a source to display day/night on a map * @constructor diff --git a/src/source/Delaunay.js b/src/source/Delaunay.js index 40d4456c7..fb8c8e639 100644 --- a/src/source/Delaunay.js +++ b/src/source/Delaunay.js @@ -1,11 +1,11 @@ /*eslint no-constant-condition: ["error", { "checkLoops": false }]*/ -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import ol_geom_Polygon from 'ol/geom/Polygon' -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' -import {buffer as ol_extent_buffer} from 'ol/extent' -import {ol_coordinate_equal, ol_coordinate_dist2d} from '../geom/GeomUtils' -import ol_coordinate_convexHull from '../geom/ConvexHull' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' +import {buffer as ol_extent_buffer} from 'ol/extent.js' +import {ol_coordinate_equal, ol_coordinate_dist2d} from '../geom/GeomUtils.js' +import ol_coordinate_convexHull from '../geom/ConvexHull.js' /** Delaunay source * Calculate a delaunay triangulation from points in a source diff --git a/src/source/FeatureBin.js b/src/source/FeatureBin.js index 58f71f66f..1eb7b5c8c 100644 --- a/src/source/FeatureBin.js +++ b/src/source/FeatureBin.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_Vector from 'ol/source/Vector' -import ol_source_BinBase from './BinBase' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_source_BinBase from './BinBase.js' /** A source that use a set of feature to collect data on it. * If a binSource is provided the bin is recalculated when features change. diff --git a/src/source/GeoImage.js b/src/source/GeoImage.js index 81b6f6cc1..1f91f8610 100644 --- a/src/source/GeoImage.js +++ b/src/source/GeoImage.js @@ -14,10 +14,10 @@ * @property {Array.} imageMask linestring to mask the image on the map */ -import ol_source_ImageCanvas from 'ol/source/ImageCanvas' -import ol_geom_Polygon from 'ol/geom/Polygon' -import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent' -import {fromExtent as ol_geom_Polygon_fromExtent} from 'ol/geom/Polygon' +import ol_source_ImageCanvas from 'ol/source/ImageCanvas.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' +import {boundingExtent as ol_extent_boundingExtent} from 'ol/extent.js' +import {fromExtent as ol_geom_Polygon_fromExtent} from 'ol/geom/Polygon.js' /** Layer source with georeferencement to place it on a map * @constructor diff --git a/src/source/GeoRSS.js b/src/source/GeoRSS.js index 5a9888411..c5ef19b00 100644 --- a/src/source/GeoRSS.js +++ b/src/source/GeoRSS.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_Vector from 'ol/source/Vector' -import ol_ext_Ajax from '../util/Ajax'; +import ol_source_Vector from 'ol/source/Vector.js' +import ol_ext_Ajax from '../util/Ajax.js'; -import ol_format_GeoRSS from '../format/GeoRSS' +import ol_format_GeoRSS from '../format/GeoRSS.js' /** ol_source_GeoRSS is a source that load Wikimedia Commons content in a vector layer. * @constructor diff --git a/src/source/Geoportail.js b/src/source/Geoportail.js index 960e477ad..28712f876 100644 --- a/src/source/Geoportail.js +++ b/src/source/Geoportail.js @@ -2,11 +2,11 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_WMTS from 'ol/source/WMTS' -import {getWidth as ol_extent_getWidth} from 'ol/extent' -import ol_tilegrid_WMTS from 'ol/tilegrid/WMTS' -import {get as ol_proj_get} from 'ol/proj' -import ol_ext_Ajax from '../util/Ajax' +import ol_source_WMTS from 'ol/source/WMTS.js' +import {getWidth as ol_extent_getWidth} from 'ol/extent.js' +import ol_tilegrid_WMTS from 'ol/tilegrid/WMTS.js' +import {get as ol_proj_get} from 'ol/proj.js' +import ol_ext_Ajax from '../util/Ajax.js' /** IGN's Geoportail WMTS source * @constructor diff --git a/src/source/GridBin.js b/src/source/GridBin.js index 24482e90c..4dce1edea 100644 --- a/src/source/GridBin.js +++ b/src/source/GridBin.js @@ -2,9 +2,9 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_BinBase from './BinBase' -import {transform as ol_proj_transform} from 'ol/proj' -import ol_geom_Polygon from 'ol/geom/Polygon' +import ol_source_BinBase from './BinBase.js' +import {transform as ol_proj_transform} from 'ol/proj.js' +import ol_geom_Polygon from 'ol/geom/Polygon.js' /** A source for grid binning * @constructor diff --git a/src/source/HexBin.js b/src/source/HexBin.js index 99a42fb3e..d97d8a988 100644 --- a/src/source/HexBin.js +++ b/src/source/HexBin.js @@ -2,10 +2,10 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_geom_Polygon from 'ol/geom/Polygon' +import ol_geom_Polygon from 'ol/geom/Polygon.js' -import ol_source_BinBase from './BinBase' -import ol_HexGrid from '../render/HexGrid' +import ol_source_BinBase from './BinBase.js' +import ol_HexGrid from '../render/HexGrid.js' /** A source for hexagonal binning * @constructor diff --git a/src/source/IDW.js b/src/source/IDW.js index dc81145a0..bfff0fe49 100644 --- a/src/source/IDW.js +++ b/src/source/IDW.js @@ -1,8 +1,8 @@ /* Copyright (c) 2021 Jean-Marc VIGLINO, released under the CeCILL-B license (French BSD license) */ -import ol_source_ImageCanvas from 'ol/source/ImageCanvas' -import ol_ext_Worker from '../util/Worker' +import ol_source_ImageCanvas from 'ol/source/ImageCanvas.js' +import ol_ext_Worker from '../util/Worker.js' /** Inverse distance weighting interpolated source - Shepard's method * @see https://en.wikipedia.org/wiki/Inverse_distance_weighting diff --git a/src/source/InseeBin.js b/src/source/InseeBin.js index f300dc71e..8224a5bb0 100644 --- a/src/source/InseeBin.js +++ b/src/source/InseeBin.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_BinBase from './BinBase' -import ol_InseeGrid from '../render/InseeGrid'; +import ol_source_BinBase from './BinBase.js' +import ol_InseeGrid from '../render/InseeGrid.js'; /** A source for INSEE grid * @constructor diff --git a/src/source/Mapillary.js b/src/source/Mapillary.js index 2b83b676d..2fa4e9a60 100644 --- a/src/source/Mapillary.js +++ b/src/source/Mapillary.js @@ -9,10 +9,10 @@ */ -import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy' -import ol_source_Vector from 'ol/source/Vector' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_ext_Ajax from '../util/Ajax'; +import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy.js' +import ol_source_Vector from 'ol/source/Vector.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_ext_Ajax from '../util/Ajax.js'; /** Mapillary test (not tested) * @constructor ol_source_Mapillary diff --git a/src/source/OilPainting.js b/src/source/OilPainting.js index b71d0374d..c10c3591c 100644 --- a/src/source/OilPainting.js +++ b/src/source/OilPainting.js @@ -2,7 +2,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_Raster from 'ol/source/Raster' +import ol_source_Raster from 'ol/source/Raster.js' /** A source to turn your maps into oil paintings... * Original idea: Santhosh G https://www.codeproject.com/Articles/471994/OilPaintEffect diff --git a/src/source/Overpass.js b/src/source/Overpass.js index 9f335d810..0cd3bfdd6 100644 --- a/src/source/Overpass.js +++ b/src/source/Overpass.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy' -import ol_source_Vector from 'ol/source/Vector' -import ol_source_OSM from 'ol/source/OSM' -import {transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_format_OSMXML from 'ol/format/OSMXML' +import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_source_OSM from 'ol/source/OSM.js' +import {transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_format_OSMXML from 'ol/format/OSMXML.js' /** * OSM layer using the Ovepass API diff --git a/src/source/TileWFS.js b/src/source/TileWFS.js index 1b1f1dc44..0a6115b06 100644 --- a/src/source/TileWFS.js +++ b/src/source/TileWFS.js @@ -2,11 +2,11 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_source_Vector from 'ol/source/Vector' -import {tile as ol_loadingstrategy_tile} from 'ol/loadingstrategy' -import {createXYZ as ol_tilegrid_createXYZ} from 'ol/tilegrid' -import ol_format_GeoJSON from 'ol/format/GeoJSON' -import ol_ext_Ajax from '../util/Ajax' +import ol_source_Vector from 'ol/source/Vector.js' +import {tile as ol_loadingstrategy_tile} from 'ol/loadingstrategy.js' +import {createXYZ as ol_tilegrid_createXYZ} from 'ol/tilegrid.js' +import ol_format_GeoJSON from 'ol/format/GeoJSON.js' +import ol_ext_Ajax from '../util/Ajax.js' /** A vector source to load WFS at a tile zoom level * @constructor diff --git a/src/source/Vector.js b/src/source/Vector.js index fd0f4fc39..c64804877 100644 --- a/src/source/Vector.js +++ b/src/source/Vector.js @@ -1,4 +1,4 @@ -import ol_source_Vector from 'ol/source/Vector' +import ol_source_Vector from 'ol/source/Vector.js' ;(function () { var clear = ol_source_Vector.prototype.clear; diff --git a/src/source/Vector3D.js b/src/source/Vector3D.js index f382a00ee..2d9c43406 100644 --- a/src/source/Vector3D.js +++ b/src/source/Vector3D.js @@ -1,10 +1,10 @@ -import ol_layer_Image from 'ol/layer/Image' -import ol_source_ImageCanvas from 'ol/source/ImageCanvas' -import {easeOut as ol_easing_easeOut} from 'ol/easing' -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' +import ol_layer_Image from 'ol/layer/Image.js' +import ol_source_ImageCanvas from 'ol/source/ImageCanvas.js' +import {easeOut as ol_easing_easeOut} from 'ol/easing.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' /** * @classdesc 3D vector layer rendering diff --git a/src/source/WikiCommons.js b/src/source/WikiCommons.js index 663296ff5..5a1bf6328 100644 --- a/src/source/WikiCommons.js +++ b/src/source/WikiCommons.js @@ -8,12 +8,12 @@ Inherits from: */ -import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy' -import ol_source_Vector from 'ol/source/Vector' -import ol_Feature from 'ol/Feature' -import ol_geom_Point from 'ol/geom/Point' -import {transform as ol_proj_transform, transformExtent as ol_proj_transformExtent} from 'ol/proj' -import ol_ext_Ajax from '../util/Ajax'; +import {bbox as ol_loadingstrategy_bbox} from 'ol/loadingstrategy.js' +import ol_source_Vector from 'ol/source/Vector.js' +import ol_Feature from 'ol/Feature.js' +import ol_geom_Point from 'ol/geom/Point.js' +import {transform as ol_proj_transform, transformExtent as ol_proj_transformExtent} from 'ol/proj.js' +import ol_ext_Ajax from '../util/Ajax.js'; /** * @constructor ol_source_WikiCommons diff --git a/src/style/Chart.js b/src/style/Chart.js index 9d780fccc..619ded522 100644 --- a/src/style/Chart.js +++ b/src/style/Chart.js @@ -5,9 +5,9 @@ * Add a chart style to display charts (pies or bars) on a map */ -import ol_style_RegularShape from 'ol/style/RegularShape' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' /** * @classdesc diff --git a/src/style/FillPattern.js b/src/style/FillPattern.js index 252c7c074..622eb1177 100644 --- a/src/style/FillPattern.js +++ b/src/style/FillPattern.js @@ -3,9 +3,9 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' +import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' /** * @classdesc diff --git a/src/style/FlowLine.js b/src/style/FlowLine.js index e0f19cc34..f0a73c8c7 100644 --- a/src/style/FlowLine.js +++ b/src/style/FlowLine.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style from 'ol/style/Style' -import {asString as ol_color_asString} from 'ol/color' -import {asArray as ol_color_asArray} from 'ol/color' -import {ol_coordinate_dist2d} from '../geom/GeomUtils' -import '../geom/LineStringSplitAt' +import ol_style_Style from 'ol/style/Style.js' +import {asString as ol_color_asString} from 'ol/color.js' +import {asArray as ol_color_asArray} from 'ol/color.js' +import {ol_coordinate_dist2d} from '../geom/GeomUtils.js' +import '../geom/LineStringSplitAt.js' /** Flow line style * Draw LineString with a variable color / width diff --git a/src/style/FontAwesome5Def.js b/src/style/FontAwesome5Def.js index 661d49798..2bcb1cdec 100644 --- a/src/style/FontAwesome5Def.js +++ b/src/style/FontAwesome5Def.js @@ -1,4 +1,4 @@ -import ol_style_FontSymbol from './FontSymbol' +import ol_style_FontSymbol from './FontSymbol.js' ol_style_FontSymbol.addDefs({ "font":"\"Font Awesome 5 Free\"", diff --git a/src/style/FontAwesomeDef.js b/src/style/FontAwesomeDef.js index d52efaa75..9539c806a 100644 --- a/src/style/FontAwesomeDef.js +++ b/src/style/FontAwesomeDef.js @@ -1,4 +1,4 @@ -import ol_style_FontSymbol from './FontSymbol' +import ol_style_FontSymbol from './FontSymbol.js' ol_style_FontSymbol.addDefs( { "font":"FontAwesome", diff --git a/src/style/FontMaki2Def.js b/src/style/FontMaki2Def.js index 99f64c577..5ce787f27 100644 --- a/src/style/FontMaki2Def.js +++ b/src/style/FontMaki2Def.js @@ -2,7 +2,7 @@ * * Font definiton to use with fontsymbols */ -import ol_style_FontSymbol from './FontSymbol' +import ol_style_FontSymbol from './FontSymbol.js' ol_style_FontSymbol.addDefs ({ "font": "fontmaki2", diff --git a/src/style/FontMakiDef.js b/src/style/FontMakiDef.js index ee66e5cf8..4a9795f7e 100644 --- a/src/style/FontMakiDef.js +++ b/src/style/FontMakiDef.js @@ -5,7 +5,7 @@ * Font definiton to use with fontsymbols */ -import ol_style_FontSymbol from './FontSymbol' +import ol_style_FontSymbol from './FontSymbol.js' ol_style_FontSymbol.addDefs ({ "font":"fontmaki", diff --git a/src/style/FontSymbol.js b/src/style/FontSymbol.js index aefe7c7c0..54b0ae3ce 100644 --- a/src/style/FontSymbol.js +++ b/src/style/FontSymbol.js @@ -2,8 +2,8 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_RegularShape from 'ol/style/RegularShape' -import {asString as ol_color_asString} from 'ol/color' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import {asString as ol_color_asString} from 'ol/color.js' /** * @classdesc @@ -435,7 +435,7 @@ ol_style_FontSymbol.defs = { 'fonts':{}, 'glyphs':{} }; /* Cool stuff to get the image symbol for a style * @param {number} ratio pixelratio * / -import ol_style_Image from 'ol/style/Image' +import ol_style_Image from 'ol/style/Image.js' ol_style_Image.prototype.getImagePNG = function(ratio) { ratio = ratio || window.devicePixelRatio; var canvas = this.getImage(ratio); diff --git a/src/style/Photo.js b/src/style/Photo.js index 61f88f0e1..bb1aa725e 100644 --- a/src/style/Photo.js +++ b/src/style/Photo.js @@ -4,10 +4,10 @@ * * Photo style for vector features */ -import ol_style_RegularShape from 'ol/style/RegularShape' -import {asString as ol_color_asString} from 'ol/color' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' +import ol_style_RegularShape from 'ol/style/RegularShape.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' /** * @classdesc diff --git a/src/style/Profile.js b/src/style/Profile.js index 479a6b9b5..96c470c00 100644 --- a/src/style/Profile.js +++ b/src/style/Profile.js @@ -3,11 +3,11 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style from 'ol/style/Style' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import {asString as ol_color_asString} from 'ol/color' -import {ol_coordinate_dist2d} from '../geom/GeomUtils' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import {asString as ol_color_asString} from 'ol/color.js' +import {ol_coordinate_dist2d} from '../geom/GeomUtils.js' /** Profile style * Draw a profile on the map diff --git a/src/style/SetTextPath.js b/src/style/SetTextPath.js index 1b371fab4..0df11648b 100644 --- a/src/style/SetTextPath.js +++ b/src/style/SetTextPath.js @@ -1,7 +1,7 @@ -import ol_ext_inherits from '../util/ext' -import ol_layer_Vector from 'ol/layer/Vector' -import ol_style_Style from 'ol/style/Style' -import ol_style_Text from 'ol/style/Text' +import ol_ext_inherits from '../util/ext.js' +import ol_layer_Vector from 'ol/layer/Vector.js' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Text from 'ol/style/Text.js' /** Add a setTextPath style to draw text along linestrings @toto letterpadding/spacing, wordpadding/spacing diff --git a/src/style/Shadow.js b/src/style/Shadow.js index b8f4eea94..dc558b879 100644 --- a/src/style/Shadow.js +++ b/src/style/Shadow.js @@ -5,8 +5,8 @@ * Shadow image style for point vector features */ -import ol_style_Fill from 'ol/style/Fill' -import ol_style_RegularShape from 'ol/style/RegularShape' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_RegularShape from 'ol/style/RegularShape.js' /** * @classdesc diff --git a/src/style/StrokePattern.js b/src/style/StrokePattern.js index 6ae417aaa..c7c8f760c 100644 --- a/src/style/StrokePattern.js +++ b/src/style/StrokePattern.js @@ -3,10 +3,10 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has' -import ol_style_Stroke from 'ol/style/Stroke' -import {asString as ol_color_asString} from 'ol/color' -import ol_style_FillPattern from './FillPattern' +import {DEVICE_PIXEL_RATIO as ol_has_DEVICE_PIXEL_RATIO} from 'ol/has.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import {asString as ol_color_asString} from 'ol/color.js' +import ol_style_FillPattern from './FillPattern.js' /** * @classdesc diff --git a/src/style/defaultStyle.js b/src/style/defaultStyle.js index a27ea4d95..23274cab9 100644 --- a/src/style/defaultStyle.js +++ b/src/style/defaultStyle.js @@ -1,7 +1,7 @@ -import ol_style_Style from 'ol/style/Style' -import ol_style_Circle from 'ol/style/Circle' -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Circle from 'ol/style/Circle.js' +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' var ol_style_Style_defaultStyle; diff --git a/src/style/geoportailStyle.js b/src/style/geoportailStyle.js index 6636db51f..98467fa77 100644 --- a/src/style/geoportailStyle.js +++ b/src/style/geoportailStyle.js @@ -4,11 +4,11 @@ * (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_style_Style from 'ol/style/Style' -import ol_style_Text from 'ol/style/Text'; -import ol_style_Stroke from 'ol/style/Stroke' -import ol_style_Fill from 'ol/style/Fill' -import ol_style_Style_defaultStyle from '../style/defaultStyle' +import ol_style_Style from 'ol/style/Style.js' +import ol_style_Text from 'ol/style/Text.js'; +import ol_style_Stroke from 'ol/style/Stroke.js' +import ol_style_Fill from 'ol/style/Fill.js' +import ol_style_Style_defaultStyle from '../style/defaultStyle.js' /** * Get a style for Geoportail WFS features diff --git a/src/util/Ajax.js b/src/util/Ajax.js index 81a54218e..8ee38a551 100644 --- a/src/util/Ajax.js +++ b/src/util/Ajax.js @@ -1,4 +1,4 @@ -import ol_Object from 'ol/Object' +import ol_Object from 'ol/Object.js' /** Ajax request * @fires success diff --git a/src/util/SVGFilter.js b/src/util/SVGFilter.js index 964167e12..8c03f5d3b 100644 --- a/src/util/SVGFilter.js +++ b/src/util/SVGFilter.js @@ -1,5 +1,5 @@ -import ol_Object from 'ol/Object' -import ol_ext_SVGOperation from './SVGOperation' +import ol_Object from 'ol/Object.js' +import ol_ext_SVGOperation from './SVGOperation.js' /** SVG filter * @param {*} options diff --git a/src/util/SVGFilter/Laplacian.js b/src/util/SVGFilter/Laplacian.js index 51c7d5ccf..de7450fc8 100644 --- a/src/util/SVGFilter/Laplacian.js +++ b/src/util/SVGFilter/Laplacian.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_SVGFilter from '../../util/SVGFilter' +import ol_ext_SVGFilter from '../../util/SVGFilter.js' /** A simple filter to detect edges on images * @constructor diff --git a/src/util/SVGFilter/Paper.js b/src/util/SVGFilter/Paper.js index 0f5d6c8db..0fe5f6a70 100644 --- a/src/util/SVGFilter/Paper.js +++ b/src/util/SVGFilter/Paper.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_SVGFilter from '../SVGFilter' +import ol_ext_SVGFilter from '../SVGFilter.js' /** Apply a sobel filter on an image * @constructor diff --git a/src/util/SVGFilter/Prewitt.js b/src/util/SVGFilter/Prewitt.js index 4826e7f52..e34e38d0b 100644 --- a/src/util/SVGFilter/Prewitt.js +++ b/src/util/SVGFilter/Prewitt.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_SVGFilter from '../../util/SVGFilter' +import ol_ext_SVGFilter from '../../util/SVGFilter.js' /** Apply a Prewitt filter on an image * @constructor diff --git a/src/util/SVGFilter/Roberts.js b/src/util/SVGFilter/Roberts.js index 9f6ca98dd..589608a14 100644 --- a/src/util/SVGFilter/Roberts.js +++ b/src/util/SVGFilter/Roberts.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_SVGFilter from '../../util/SVGFilter' +import ol_ext_SVGFilter from '../../util/SVGFilter.js' /** Apply a Roberts filter on an image * @constructor diff --git a/src/util/SVGFilter/Sobel.js b/src/util/SVGFilter/Sobel.js index 57ff157e8..b3eab834b 100644 --- a/src/util/SVGFilter/Sobel.js +++ b/src/util/SVGFilter/Sobel.js @@ -3,7 +3,7 @@ (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -import ol_ext_SVGFilter from '../../util/SVGFilter' +import ol_ext_SVGFilter from '../../util/SVGFilter.js' /** Apply a sobel filter on an image * @constructor diff --git a/src/util/SVGOperation.js b/src/util/SVGOperation.js index d76ed7573..28b5c5059 100644 --- a/src/util/SVGOperation.js +++ b/src/util/SVGOperation.js @@ -1,4 +1,4 @@ -import ol_Object from 'ol/Object' +import ol_Object from 'ol/Object.js' /** * @typedef {Object} svgOperation diff --git a/src/util/View.js b/src/util/View.js index b2395816e..356ba595b 100644 --- a/src/util/View.js +++ b/src/util/View.js @@ -1,4 +1,4 @@ -import ol_View from 'ol/View' +import ol_View from 'ol/View.js' // Prevent overwrite if (ol_View.prototype.flyTo) { diff --git a/src/util/color.js b/src/util/color.js index 46f08cb08..a9dc441f8 100644 --- a/src/util/color.js +++ b/src/util/color.js @@ -1,4 +1,4 @@ -import {asArray as ol_color_asArray} from 'ol/color' +import {asArray as ol_color_asArray} from 'ol/color.js' /** Converts an RGB color value to HSL. * returns hsl as array h:[0,360], s:[0,100], l:[0,100] diff --git a/src/util/element.js b/src/util/element.js index 65b7ea765..00d26e933 100644 --- a/src/util/element.js +++ b/src/util/element.js @@ -3,9 +3,9 @@ * @see https://plainjs.com/javascript/ * @see http://youmightnotneedjquery.com/ */ -import ol_ext_input_Checkbox from './input/Checkbox' -import ol_ext_input_Switch from './input/Switch' -import ol_ext_input_Radio from './input/Radio' +import ol_ext_input_Checkbox from './input/Checkbox.js' +import ol_ext_input_Switch from './input/Switch.js' +import ol_ext_input_Radio from './input/Radio.js' /** @namespace ol.ext.element */ var ol_ext_element = {}; diff --git a/src/util/getVectorContext.js b/src/util/getVectorContext.js index b3bf6535b..9f4ba078a 100644 --- a/src/util/getVectorContext.js +++ b/src/util/getVectorContext.js @@ -2,8 +2,8 @@ * Create a brand new function for ol5 copy of ol6 function. * Will be ignored using openlayers-ext package or ol5 */ -import { multiply as multiplyTransform } from 'ol/transform'; -import CanvasImmediateRenderer from 'ol/render/canvas/Immediate'; +import { multiply as multiplyTransform } from 'ol/transform.js'; +import CanvasImmediateRenderer from 'ol/render/canvas/Immediate.js'; function getVectorContext(event) { const frameState = event.frameState; diff --git a/src/util/getVectorContextStyle.js b/src/util/getVectorContextStyle.js index f26def5f3..4d83069b3 100644 --- a/src/util/getVectorContextStyle.js +++ b/src/util/getVectorContextStyle.js @@ -1,5 +1,5 @@ -import {VERSION as ol_util_VERSION} from 'ol/util' -import ol_style_Icon from 'ol/style/Icon' +import {VERSION as ol_util_VERSION} from 'ol/util.js' +import ol_style_Icon from 'ol/style/Icon.js' /*global ol*/ if (window.ol) { diff --git a/src/util/imagesLoader.js b/src/util/imagesLoader.js index 3e90f03d6..3b75948de 100644 --- a/src/util/imagesLoader.js +++ b/src/util/imagesLoader.js @@ -1,4 +1,4 @@ -import { asArray as ol_color_asArray } from 'ol/color' +import { asArray as ol_color_asArray } from 'ol/color.js' /** @namespace ol.ext.imageLoader */ diff --git a/src/util/input/Base.js b/src/util/input/Base.js index 940b78502..b346809c1 100644 --- a/src/util/input/Base.js +++ b/src/util/input/Base.js @@ -1,7 +1,7 @@ /** Vanilla JS geographic inputs * color, size, width, font, symboles, dash, arrow, pattern */ -import ol_Object from 'ol/Object' +import ol_Object from 'ol/Object.js' /** @namespace ol.ext.input */ diff --git a/src/util/input/Checkbox.js b/src/util/input/Checkbox.js index b4fa7f45d..b2c2af2dc 100644 --- a/src/util/input/Checkbox.js +++ b/src/util/input/Checkbox.js @@ -1,4 +1,4 @@ -import ol_ext_input_Base from './Base' +import ol_ext_input_Base from './Base.js' /** Checkbox input * @constructor diff --git a/src/util/input/Collection.js b/src/util/input/Collection.js index 16840796a..eda799f17 100644 --- a/src/util/input/Collection.js +++ b/src/util/input/Collection.js @@ -1,5 +1,5 @@ -import ol_Object from 'ol/Object'; -import ol_ext_element from '../element' +import ol_Object from 'ol/Object.js'; +import ol_ext_element from '../element.js' /** A list element synchronize with a Collection. * Element in the list can be reordered interactively and the associated Collection is kept up to date. diff --git a/src/util/input/Color.js b/src/util/input/Color.js index b603a764e..e794f2f08 100644 --- a/src/util/input/Color.js +++ b/src/util/input/Color.js @@ -1,9 +1,9 @@ -import ol_ext_element from '../element'; -import ol_ext_input_PopupBase from './PopupBase' -import ol_Collection from 'ol/Collection'; -import { toHSV as ol_color_toHSV, fromHSV as ol_color_fromHSV } from '../color' -import { toHexa as ol_color_toHexa } from '../color' -import { asArray as ol_color_asArray } from 'ol/color' +import ol_ext_element from '../element.js'; +import ol_ext_input_PopupBase from './PopupBase.js' +import ol_Collection from 'ol/Collection.js'; +import { toHSV as ol_color_toHSV, fromHSV as ol_color_fromHSV } from '../color.js' +import { toHexa as ol_color_toHexa } from '../color.js' +import { asArray as ol_color_asArray } from 'ol/color.js' /** Color picker * @constructor diff --git a/src/util/input/List.js b/src/util/input/List.js index 3e7583b86..26ceb18e4 100644 --- a/src/util/input/List.js +++ b/src/util/input/List.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_Base from './Base' +import ol_ext_element from '../element.js'; +import ol_ext_input_Base from './Base.js' /** Checkbox input * @constructor diff --git a/src/util/input/PopupBase.js b/src/util/input/PopupBase.js index 55132055b..3997f67be 100644 --- a/src/util/input/PopupBase.js +++ b/src/util/input/PopupBase.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_Base from './Base' +import ol_ext_element from '../element.js'; +import ol_ext_input_Base from './Base.js' /** Base class for input popup * @constructor diff --git a/src/util/input/Radio.js b/src/util/input/Radio.js index 4eac649b1..d33445415 100644 --- a/src/util/input/Radio.js +++ b/src/util/input/Radio.js @@ -1,4 +1,4 @@ -import ol_ext_input_Checkbox from './Checkbox' +import ol_ext_input_Checkbox from './Checkbox.js' /** Switch input * @constructor diff --git a/src/util/input/Range.js b/src/util/input/Range.js index 76d717b24..6fbd86fe5 100644 --- a/src/util/input/Range.js +++ b/src/util/input/Range.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_Base from './Base' +import ol_ext_element from '../element.js'; +import ol_ext_input_Base from './Base.js' /** Checkbox input * @constructor diff --git a/src/util/input/Size.js b/src/util/input/Size.js index 3b312ef24..3a77ec9a3 100644 --- a/src/util/input/Size.js +++ b/src/util/input/Size.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_List from './List' +import ol_ext_element from '../element.js'; +import ol_ext_input_List from './List.js' /** Checkbox input * @constructor diff --git a/src/util/input/Slider.js b/src/util/input/Slider.js index 98aa076e7..34f189a8f 100644 --- a/src/util/input/Slider.js +++ b/src/util/input/Slider.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_Base from './Base' +import ol_ext_element from '../element.js'; +import ol_ext_input_Base from './Base.js' /** Checkbox input * @constructor diff --git a/src/util/input/Switch.js b/src/util/input/Switch.js index e2882acce..0528a43c8 100644 --- a/src/util/input/Switch.js +++ b/src/util/input/Switch.js @@ -1,4 +1,4 @@ -import ol_ext_input_Checkbox from './Checkbox' +import ol_ext_input_Checkbox from './Checkbox.js' /** Switch input * @constructor diff --git a/src/util/input/Width.js b/src/util/input/Width.js index 90a97728e..b8c4de7ef 100644 --- a/src/util/input/Width.js +++ b/src/util/input/Width.js @@ -1,5 +1,5 @@ -import ol_ext_element from '../element'; -import ol_ext_input_List from './List' +import ol_ext_element from '../element.js'; +import ol_ext_input_List from './List.js' /** Checkbox input * @constructor diff --git a/src/utils/ExportMap.js b/src/utils/ExportMap.js index b42bc3a9c..4ce74ed6f 100644 --- a/src/utils/ExportMap.js +++ b/src/utils/ExportMap.js @@ -1,5 +1,5 @@ //TODO: Rewrite pdf export module and export -import jsPDF from 'jspdf' +import jsPDF from 'jspdf.js' /** Function to export the map as an image. The function *