Skip to content

Latest commit

 

History

History
428 lines (284 loc) · 14.4 KB

CHANGELOG.md

File metadata and controls

428 lines (284 loc) · 14.4 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[v2.2.2] - 2023-09-02

Fixed

  • Update ol-geocoder to ^4.3 to fix search results. #197

v2.2.1 - 2023-05-11

Fixed

  • Fix #195 measure behaviour handling of adding/clearing features. #196

v2.2.0 - 2023-05-10

Added

  • Save dist folder to an artifact in run-build.yml workflow. #193
  • Expose methods for reading features from GeoJSON and WKT. #194

v2.1.0 - 2022-11-15

Added

  • Add loading indicator as default behavior. #187
  • Add --farmos-map-accent-color CSS property. #186

Fixed

  • Fix color scheme compliance of remaining icons. #181

Changed

  • Improve interaction and control docs. #185

v2.0.8 - 2022-09-28

Changed

  • Allow the public path to be set for Webpack chunk loading. #182
  • Use this.getFeatures() for consistency in edit control. #173

v2.0.7 - 2022-09-22

Fixed

  • Fix GitHub/NPM releases being out of sync due to a release procedure error by Symbioquine.

v2.0.6 - 2022-09-22

Changed

  • Improve edit control icons to make them clearer and more intuitive #179 (ref: #146 #152)

Fixed

  • Fix remaining edit control icons to allow them to better follow the page color scheme #179

v2.0.5 - 2022-08-29

Changed

  • Update ol-grid and ol-side-panel to latest versions.

v2.0.4 - 2022-04-07

Changed

  • Update openlayers to version 6.14.1.

Fixed

  • Fix y position of edit controls for small screens.

v2.0.3 - 2021-12-08

Fixed

  • Avoid creating empty license files in the Webpack output by only adding the farmOS-map version banner to the entry-point js files.

Added

  • Enforce that every pull request includes updates to the CHANGELOG.md (this) file.
  • Add simple example of using the instance.addPopup method.

Changed

  • Change the Github release workflow to use softprops/action-gh-release v0.1.13.
  • Decrease the popup padding.
  • Update openlayers to version 6.9.0.
  • Update all dependencies.

v2.0.2 - 2021-09-13

Fixed

  • Fixed a race condition in the layerSwitcherInSidePanel behavior.
  • Update ol-side-panel to pick up a small bug fix - see ol-side-panel#1.

v2.0.1 - 2021-09-08

Fixed

  • Fixed release workflow to include all built JS/CSS/etc with the "farmOS-map" prefix.

v2.0.0 - 2021-09-08

Changed

  • Update all dependencies.

Added

  • Add a SidePanel control and support for displaying the layer switcher in a pane thereof.
  • Add stylelint to ensure css stays more consistent.
  • Run build on pushes to 2.x branches and related PRs.

v2.0.0-alpha.0 - 2021-06-18

Added

  • Add a number of example consumers and a performance test harness around them.

Changed

  • Check in diff of package.json/package-lock.json from moving to NPM v7
  • Update all dependencies.
  • Update eslint to allow import() within code.
  • Remove redundant defaults.behaviors in favor of existing farmOS.map.behaviors mechanism for specifying the default behaviors.
  • Make instance behavior methods async.
  • Lazily load behaviors as separate Webpack chunks.
  • Decouple map instance creation/management from window.farmOS.map.
  • Distribute CSS as separate files/chunks instead of bundled with the JS.
  • BREAKING CHANGES: Note: As one might expect from a new major version, there are breaking changes involved in moving from 1.x to 2.x of farmOS-map. See the README for upgrade instructions.
  • Update to Webpack 5 to take advantage of Automatic Public Path support for chunk loading.
  • Expose MapInstanceManager and the default projection settings at window.farmOS.map.

Fixed

  • Fixed broken SnappingGrid snapping

v1.4.2 - 2021-04-02

Changed

  • Import ol-layerswitcher css from dist.
  • SVG cleanup #105
  • Make geocoder size and positioning more consistent. #107
  • Update all dependencies.

Fixed

  • Fix CHANGELOG links in releases #106
  • Set a max-height to scroll the layer switcher when needed. #100

v1.4.1 - 2021-02-09

Added

  • Add .npmignore. Do not ignore /dist/.

Changed

  • Publish GitHub release with a link to CHANGELOG.md.

v1.4.0 - 2021-02-08

Added

  • Add support for customizing layer groups #91
  • Publish to NPM #64
  • Create a CHANGELOG.md following keepachangelog.com convention.

Changed

  • Switch to NPM release of ol-grid #86
  • Update link to google maps api key documentation. #92
  • Update LICENSE from GPLv2 to MIT #96
  • Update all dependencies.
  • Build into dist directory instead of build.
  • Use @farmos.org/farmos-olgm fork of ol3-google-maps. See #99

v1.3.0 - 2020-08-11

This release includes the following changes:

  • Integrate a snapping grid into farmOS-map #85

v1.2.0 - 2020-07-29

This release includes the following changes:

  • Add GeoJSON layer from object, instead of URL #76 #77
  • Add support for style functions #72 #78
  • Expose tileSize parameter for XYZ layers. #83
  • Update OpenLayers and other dependencies.

v1.1.0 - 2020-04-16

This release includes the following changes:

  • Publish with a Google Maps key that only works on farmOS GitHub Pages.
  • Layer attribution #73
  • Add MapBox watermark and attribution.
  • Convert layer visibility to a string before saving it to localStorage with JSON.stringify(). See #65
  • Test localStorage layer visibility is a boolean after parsing it with JSON.parse(), in case some browsers convert it to boolean automatically in localStorage.getItem(). See #65
  • Explicitly check to see if localStorage.getItem() is not null before syncing it to OpenLayers. See #65

v1.0.1 - 2020-04-10

This release includes the following changes:

  • Provide an 'arcgis-tile' layer type #67
  • Fix TypeError: this.snapInteraction is undefined #69
  • Add a GitHub action for packaging releases #45

v1.0.0 - 2020-02-25

This is the first official stable release of farmOS-map.js! 🎉

For information about everything that was done leading up to this, see the v1.0.0 milestone: https://github.com/farmOS/farmOS-map/milestone/1

Changes from v0.9.5 include:

  • Enable high accuracy in the Geolocate control.
  • Update OpenLayers to 6.2.1.
  • Use SVG icons instead of Unicode characters for drawing and geolocate control buttons #41

v0.9.5 - 2020-02-21

This release changes the license of the project to GPLv2, so that it is compatible with Drupal.org packaging requirements.

See: https://www.drupal.org/project/drupalorg_whitelist/issues/3114971

v0.9.4 - 2020-02-15

This release includes the following changes:

  • Base layers will be added to the top of the group, instead of the bottom.

v0.9.3 - 2020-02-08

This release includes:

  • Move forEachLayer.js to src/utils.
  • Move formatArea() and formatLength() functions to src/utils/measure.js.
  • Create a measureGeometry() function that works with Polygon and LineString geometries.
  • Add measureGeometry() as an instance method.
  • Update all dependencies.

v0.9.2 - 2020-02-07

This release includes:

  • Don't let OLGoogleMaps manage tile or image layers.

v0.9.1 - 2020-02-03

This release includes:

  • Sort farmOS.behaviors.map by an optional weight property. See #56 (comment)

v0.9.0 - 2020-01-30

This release includes:

  • Add layer(s): Google Maps #8

v0.8.0 - 2020-01-30

This release includes breaking changes:

  • Use addBehavior('draw') instead of enableDraw() method.

Other updates include:

  • Split features when importing GEOMETRYCOLLECTION in WKT.
  • Remove constrainResolution option from zoom methods so it can be set globally elsewhere.
  • Provide instance method for getting a layer by name (recursing into groups): getLayerByName()
  • Add base layers to the bottom of the group.
  • Fix walkermatt/ol-layerswitcher#259 in layer switcher.
  • Collapse Base Layers group by default.
  • Set a maxZoom of 20 in zoomToVectors() and zoomToLayer().
  • Add an attachBehavior() method to instances.
  • Add an addBehavior() method to instances to allow adding a behavior by name from src/behavior.
  • Allow vector layer to be added without any options.
  • Default layer colors to orange.
  • Allow options to be passed in to behavior attach functions.
  • Convert enableDraw() method to a new 'edit' behavior.
  • Default interaction listener format to GeoJSON.
  • Allow 'disable' event listeners to be run when disableAll() fires.
  • Pass the event object into event listener callbacks as a second parameter.
  • Refactor measure logic into a behavior.

v0.7.0 - 2019-12-12

This release includes breaking changes:

  • Use enableDraw() method instead of drawing: true initialization option. #50
  • Remove setWKT and setGeoJSON methods.

Other updates include:

  • Add support for cluster layers #37
  • Allow rotating map and show North arrow #39
  • Change button color scheme to match farmOS #43
  • Accept an optional layer param for enableDraw.
  • Save instance initialization options to the instance so they are available for later use.
  • Replace OL core function for transforming from EPSG:3857 to EPSG:4326 to fix longitudes that have crossed the international date line. Fixes #49.

v0.6.0 - 2019-11-13

This release includes:

  • Add Snap interaction #24
  • Allow options to be passed into defaultControls() and defaultInteractions() - Fixes #48
  • Refactor a bunch of Edit control code
  • Snap to all vector layer features in the map #24
  • Add GeoJSON methods to Edit control #46
  • Measure lines and polygons in the drawing layer #47

v0.5.0 - 2019-10-31

This release includes:

  • Update OpenLayers to 6.1.0.
  • Make system of measurement (metric/us) configurable #13
  • Drawing controls: next steps #40
  • Require focus to use scroll zoom #44
  • Disable all edit interactions when escape key is pressed #42
  • Remember visibility state of base layers with localStorage #21
  • Add example behavior which adds a MapBox Satellite base layer.
  • In wktOn(), if event is "change", add interaction listeners for all event types that result in feature changes.
  • Update ol-geocoder to 4.0.0 to fix Dominique92/ol-geocoder#199
  • Add a forEachLayer() method for recursively iterating through layer groups.
  • Reorganize instance code and methods.

v0.4.0 - 2019-10-31

This release includes:

  • Add control: geolocate (GPS pinpoint) #6
  • Provide a method for adding an XYZ layer.
  • Allow WMS and XYZ layers to be set as base layers for the layerswitcher.
  • Add controls for drawing points, lines, and polygons #18

v0.3.0 - 2019-09-18

This release includes:

  • Ability to create layer groups #35
  • Ability to add popups to the map #17
  • Provide GeoJSON loader function to prevent 403's. (See #34)
  • Make options optional in createInstance().
  • Add GPLv3 LICENSE file.
  • Multiple fixes/additions to README.md.

v0.2.0 - 2019-08-12

This release

  • Unifies the add*Layer method calls into a single addLayer method;
  • Expands the options for configuring controls and interactions when calling the create method;
  • Changes some zoom behavior and adds a zoomToLayer method.

I think that's just about everything. 🙂

v0.1.0 - 2019-07-16

v0.0.5 - 2019-07-16

v0.0.4 - 2019-07-14

v0.0.3 - 2019-07-12

v0.0.2 - 2019-07-11

v0.0.1 - 2019-07-11

Initial commit.