Releases: farmOS/farmOS-map
Releases · farmOS/farmOS-map
v1.0.1
v1.0.0
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
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
v0.9.3
This release includes:
- Move
forEachLayer.js
tosrc/utils
. - Move
formatArea()
andformatLength()
functions tosrc/utils/measure.js
. - Create a
measureGeometry()
function that works withPolygon
andLineString
geometries. - Add
measureGeometry()
as an instance method. - Update all dependencies.
v0.9.2
v0.9.1
This release includes:
- Sort
farmOS.behaviors.map
by an optional weight property. See #56 (comment)
v0.9.0
v0.8.0
This release includes breaking changes:
- Use
addBehavior('draw')
instead ofenableDraw()
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 inzoomToVectors()
andzoomToLayer()
. - Add an
attachBehavior()
method to instances. - Add an
addBehavior()
method to instances to allow adding a behavior by name fromsrc/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
This release includes breaking changes:
- Use
enableDraw()
method instead ofdrawing: 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.