Skip to content

Releases: MelihAltintas/vue3-openlayers

Release 12.1.1

06 Sep 18:15
Compare
Choose a tag to compare

12.1.1 (2025-09-06)

Bug Fixes

Release 12.1.0

31 Aug 19:57
Compare
Choose a tag to compare

12.1.0 (2025-08-31)

Features

  • ol-graticule-layer: provide new layer <Layers.OlGraticuleLayer> (69ea135), closes #436

Release 12.0.2

31 Aug 18:38
Compare
Choose a tag to compare

12.0.2 (2025-08-31)

Bug Fixes

  • run correct build command when cutting new release (6f97bcc), closes #435
  • use correct exports order (2bc5db2)

Release 12.0.1

30 Aug 21:45
Compare
Choose a tag to compare

12.0.1 (2025-08-30)

Bug Fixes

  • use correct path mapping to styles.css (44eaa6f)

Release 12.0.0

30 Aug 21:09
Compare
Choose a tag to compare

12.0.0 (2025-08-30)

🚨 Breaking Changes

peer dependencies

The project uses now a minimum node version of 22.0.0.
Also the following minimum peerDependencies are required:

fix(ol-swipe-control): explicitly set layers and rightLayers

Before, only the second passed layer was added to the right side. Now you can explicitly pass (multiple) layers for the left (or top) using layers and for the right (bottom) using rightLayers.

With this version ol-swipe-control:
property layerList has been removed and splitted into layers and rightLayers.
Please pass explicitly layers for the left side (or top, depending on the orientation) and rightLayers for the right side (or bottom, depending on the orientation)

Tree-Shaking Support & New Import Structure

  • Full tree-shaking support: You can now import only the modules you need, significantly reducing bundle size.
  • New modular import syntax: Import components from specific subpaths instead of the main package.

Migration Examples:

// ❌ Old import syntax (v11 and below)
import { OlMap, OlTileLayer, OlSourceOSM } from "vue3-openlayers";

// ✅ New import syntax (v12+)
import { OlMap } from "vue3-openlayers/map";
import { OlTileLayer } from "vue3-openlayers/layers";
import { OlSourceOSM } from "vue3-openlayers/sources";
import { OlFullScreenControl } from "vue3-openlayers/controls";
import { OlStyle } from "vue3-openlayers/styles";
import { OlInteractionSelect } from "vue3-openlayers/interactions";

Component Renaming for Consistency

All components now use consistent PascalCase naming. Duplicate files with inconsistent casing have been removed.

Source Components:

  • OlSourceOsm ➡️ renamed to OlSourceOSM
  • OlSourceBingmaps ➡️ renamed to OlSourceBingMaps
  • OlSourceGeoTiff ➡️ renamed to OlSourceGeoTIFF
  • OlSourceImageWms ➡️ renamed to OlSourceImageWMS
  • OlSourceTileArcgisRest ➡️ renamed to OlSourceTileArcGISRest
  • OlSourceTileJson ➡️ renamed to OlSourceTileJSON
  • OlSourceTileWms ➡️ renamed to OlSourceTileWMS
  • OlSourceWmts ➡️ renamed to OlSourceWMTS
  • OlSourceXyz ➡️ renamed to OlSourceXYZ

Map Controls:

  • OlFullscreenControl ➡️ renamed to OlFullScreenControl
  • OlLayerswitcherControl ➡️ renamed to OlLayerSwitcherControl
  • OlLayerswitcherimageControl ➡️ renamed to OlLayerSwitcherImageControl
  • OlMousepositionControl ➡️ renamed to OlMousePositionControl
  • OlOverviewmapControl ➡️ renamed to OlOverviewMapControl
  • OlPrintdialogControl ➡️ renamed to OlPrintDialogControl
  • OlScalelineControl ➡️ renamed to OlScaleLineControl
  • OlVideorecorderControl ➡️ renamed to OlVideoRecorderControl
  • OlZoomsliderControl ➡️ renamed to OlZoomSliderControl
  • OlZoomtoextentControl ➡️ renamed to OlZoomToExtentControl

Interactions:

  • OlInteractionClusterselect ➡️ renamed to OlInteractionClusterSelect
  • OlInteractionDragbox ➡️ renamed to OlInteractionDragBox
  • OlInteractionDragrotate ➡️ renamed to OlInteractionDragRotate
  • OlInteractionDragrotatezoom ➡️ renamed to OlInteractionDragRotateAndZoom

Layers:

  • OlAnimatedClusterlayer ➡️ renamed to OlAnimatedClusterLayer

Map Components:

  • OlGeolocation component location/naming has been updated

Styles No Longer Auto-Imported

  • Styles are no longer automatically imported with the package
  • You must explicitly import both OpenLayers and vue3-openlayers styles
// Required imports for styles
import 'ol/ol.css';
import 'vue3-openlayers/vue3-openlayers.css';

Available Import Paths

The following subpaths are now available for tree-shaking:

  • vue3-openlayers/animations
  • vue3-openlayers/composables
  • vue3-openlayers/controls
  • vue3-openlayers/geometries
  • vue3-openlayers/helpers
  • vue3-openlayers/interactions
  • vue3-openlayers/layers
  • vue3-openlayers/map
  • vue3-openlayers/sources
  • vue3-openlayers/styles

🔧 Migration Guide

  1. Update imports: Replace single-package imports with subpath imports
  2. Fix component names: Update any components using the old inconsistent casing
  3. Add style imports: Explicitly import CSS files where needed
  4. Review bundle: Take advantage of smaller bundle sizes with selective imports

Bug Fixes

  • ol-swipe-control: explicitly set layers and rightLayers (35bca40), closes #376

✨ Other Changes

  • Internal refactoring for better modularity and future maintenance
  • Documentation and examples updated to reflect new import patterns
  • Improved TypeScript support with better type definitions for tree-shaken imports
  • package.json exports configured for all new subpaths
  • Removed duplicate component files to eliminate confusion

Release 11.6.2

05 Jun 12:10
Compare
Choose a tag to compare

11.6.2 (2025-06-05)

Bug Fixes

  • ol-interaction-select: the style property was always overruled with a default style (6871d48), closes #428 #431

Release 11.6.1

05 May 05:20
Compare
Choose a tag to compare

11.6.1 (2025-05-05)

Bug Fixes

  • ol-*-layer: support missing preview option (1c3e85c), closes #423
  • ol-interaction-transform: ol-interaction-transform not working (f027dca)

Release 11.6.0

03 May 05:40
Compare
Choose a tag to compare

11.6.0 (2025-05-03)

Bug Fixes

  • import correctly (9c6fa3d)
  • ol-layer-*: handle undefined layer opacity correctly (#425) (84943c8)

Features

  • ol-style-text: support all ol props (c1d050f), closes #411

Release 11.5.0

26 Feb 09:56
Compare
Choose a tag to compare

11.5.0 (2025-02-26)

Features

Release 11.4.0

26 Feb 09:45
Compare
Choose a tag to compare

11.4.0 (2025-02-26)

Features

  • export utility functions and types LayersCommonProps, layersCommonDefaultProps and useLayerDefaults for layers (ae1f2f1)