Skip to content

Latest commit

 

History

History
396 lines (269 loc) · 20.4 KB

CHANGELOG.md

File metadata and controls

396 lines (269 loc) · 20.4 KB

Changelog

5.0.2 - 2024-04-12

Fixed

  • Fixed utility icons.

5.0.1 - 2024-04-12

Fixed

  • Patched bug caused by malformed subfield config.

5.0.0 - 2024-04-02

Warning

The default proximity search range has been changed from 500 to null (no distance limit). Proximity searches relying on the default value might now include additional results. If a maximum range is required, specify it manually.

Changed

  • Dropped the default range value. (#68)
  • Requires non-beta version of Craft 5.
  • Determined stable on Craft 5.

5.0.0-beta.2 - 2024-03-28

Added

  • Added a fieldtype icon.

Fixed

  • Fixed drag & drop bug in subfield config manager.
  • Fixed proximity search bug introduced in Craft 5 beta. (#107)

5.0.0-beta.1 - 2024-02-24

Changed

  • Craft 5 compatibility.

4.5.1 - 2024-03-31

Added

  • Added an event for plugins/modules to define search keywords. (#108)

Fixed

  • Added a null check when compiling search keywords. (#108)

4.5.0 - 2024-03-21

Added

Changed

  • isEmpty and multiline methods now respect whether a subfield is visible. (#82)

4.4.0 - 2024-02-24

Changed

  • Pinned API version to avoid deprecation warnings. (#106)

4.3.11 - 2024-01-06

Changed

4.3.10 - 2023-12-19

Changed

  • Improved support for collections.
  • Restores a required minimum of Craft 4.0.0.

4.3.9 - 2023-12-18

Added

4.3.8 - 2023-10-18

Changed

  • Marked Address field as compatible with the Mapbox plugin.
  • Now requires a minimum of Craft 4.5.7.

4.3.7 - 2023-10-17

Added

  • Address fields can now be added to the search index. (#21)
  • Optionally use minified JavaScript files for dynamic maps on the front-end. (#98)
  • Added ability to convert Address fields from the Mapbox plugin.

4.3.6 - 2023-09-18

Changed

  • Added cache-busting to the Google Maps API URL to prevent a rare map loading error. (#92)

Fixed

  • Fixed a bug which caused subfields to be omitted from "Addresses (expanded)" exports. (#91)
  • Partially fixed a conflict between clustering and info windows. (#95)

4.3.5 - 2023-06-05

Fixed

  • Improved backwards-compatibility of dynamic maps JavaScript. (#85)
  • Removed explicit check for MaxMind’s location value. (#87)
  • Patched minor migration bug which could occur with errant field data.

4.3.4 - 2023-06-01

Fixed

  • Fixed bug which occurred when using multiple Address fields inside a Matrix field. (#80)

4.3.3 - 2023-02-24

Changed

  • When validation fails, only highlight the invalid subfields. (#77)

Fixed

  • Fixed subfield validation bug.
  • Fixed slideout bug. (#69)
  • Fixed Matrix bug. (#74)
  • Fixed NaN console warning.

4.3.2 - 2023-02-21

Added

  • Added a utility for testing the Google API keys. (#8)
  • Added a utility for testing an address lookup.

Fixed

  • Improved coupling of marker IDs and info window IDs.

4.3.1 - 2023-02-06

Fixed

  • Fixed bug in migration to 4.3.0. (thanks @bencroker)

4.3.0 - 2023-01-31

Added

Changed

  • Completely refactored how Vue powers the Address field. Now updated to use Vue 3 and Pinia.

Fixed

  • Set a default noop callback to prevent a Google Maps API console error.
  • Fixed styles option for static maps. (#70)
  • Fixed minor bug in migration from Smart Map. (thanks @bencroker)
  • Fixed bug which occurred when "Geolocation Service" was set to "None". (#72)
  • Fixed a bug which prevented multiple maps from having info windows at the same time.
  • Removed an old symlink which could cause conflicts with rsync. (#63)

4.2.5 - 2022-07-24

{tip} If using Sprig, enable the inline option in the Twig/PHP tag method.

Added

Changed

  • JavaScript will no longer be injected inline automatically when Sprig is installed.

4.2.4 - 2022-07-23

Changed

  • All required JavaScript assets now load with defer attribute. (#61)

Fixed

  • Fixed a minor conflict from recent clustering changes.

4.2.3 - 2022-05-13

Fixed

  • Load JavaScript inline when using Sprig. (#52)

4.2.2 - 2022-05-09

Fixed

  • Fixed bug affecting zoom level of a single marker. (#53)

4.2.1 - 2022-04-25

Fixed

  • Fixed typecasting of event parameters. (#54)

4.2.0 - 2022-04-18

Added

  • Craft 4 compatibility.

4.1.9 - 2022-04-15

Fixed

  • Allow range to be a float between 0 and 1.

4.1.8 - 2022-04-11

Fixed

  • Fixed minor bug in JavaScript tag method.

4.1.7 - 2022-04-10

Changed

  • Prevents the name subfield from being just a copy of street1 subfield.
  • Prevents the map from appearing as a grey box when zoom or center are missing.
  • Changed the default zoom level to 11.

Fixed

  • Actually fixed info window regression. (#49)
  • Fixed a bug which occurs when getting coordinates from a custom Address model.
  • Fixed a bug which occurs when using only a single Address model on a static map.

4.1.6 - 2022-04-01

Fixed

  • Fixed info window regression. (#48)
  • Fixed markerClick regression. (#49)
  • Improved messaging regarding "Required" subfields and coordinates. (#47)

4.1.5 - 2022-03-25

Changed

  • Refactored how info windows are loaded.

4.1.4 - 2022-03-23

Added

  • Address subfields & coordinates can now be marked as required. (#3)
  • Added getZoom JavaScript method. (#35)
  • Added getCenter JavaScript method. (#35)
  • Added getBounds JavaScript method. (#35)

4.1.3 - 2022-03-09

Added

  • Allow multiple subfields to perform Autocomplete. (#42)

Fixed

  • Fixed conflict between clustering and info windows.

4.1.2 - 2022-03-07

Added

  • The setMarkerIcon method now accepts an array of IDs to set an icon for multiple markers at the same time.
  • The setMarkerIcon method now accepts * to set an icon for all markers at the same time.
  • The hideMarker method now accepts an array of IDs to hide multiple markers at the same time.
  • The showMarker method now accepts an array of IDs to show multiple markers at the same time.
  • The openInfoWindow method now accepts an array of IDs to open multiple info windows at the same time.
  • The openInfoWindow method now accepts * to open all info windows at the same time.
  • Added closeInfoWindow method, which accepts an ID, an array of IDs, or * to close multiple info windows.
  • The hideKml method now accepts an array of IDs to hide multiple KML layers at the same time.
  • The showKml method now accepts an array of IDs to show multiple KML layers at the same time.

Changed

  • Improved JavaScript logging.
  • Protect against invalid coordinates when centering.
  • Deprecated api option, replaced with params option.

Fixed

  • Fixed JavaScript chaining bug.

4.1.1 - 2021-12-24

Changed

  • Improved support for using Google Maps JavaScript API constants within Twig/PHP.

Fixed

  • Fixed namespacing bug when an Address field is nested within a Matrix field. (#43)

4.1.0 - 2021-12-01

{warning} If you are using marker clustering, please be aware that the internal library has changed and your code may require minor adjustments as a result.

Added

  • Addresses now include an optional name subfield. (#26)
  • Addresses now include an optional county subfield.
  • Addresses now include an optional placeId subfield. (#25)
  • The hideMarker method now accepts * to hide all markers at the same time. (#39)
  • The showMarker method now accepts * to show all markers at the same time.
  • The hideKml method now accepts * to hide all KML Layers at the same time.
  • The showKml method now accepts * to show all KML Layers at the same time.
  • Added markerLink option for dynamic map markers. (#34)
  • Added markerClick option for dynamic map markers. (#34)
  • Added a JS script and instructions for adding Google Places Autocomplete to front-end forms.

Changed

  • Replaced deprecated MarkerClustererPlus library with newly recommended MarkerClusterer library.
  • Improved autocompletion of Address fields by returning a broader set of results.
  • Improved fit method to more accurately reflect visible markers.
  • Renamed getMarkerCluster JavaScript method to getMarkerClusterer for accuracy.

4.0.11 - 2021-06-18

Added

4.0.10 - 2021-06-08

Added

Changed

  • Ensure static map marker options are set as strings. (#29)

4.0.9 - 2021-05-22

Added

  • On installation, migrates existing Smart Map license key (if available).
  • Logs migration warning messages for recoverable issues.

Changed

  • Requires a minimum of Craft 3.6.14.

Fixed

  • Significantly improved stability of migration from Smart Map.
  • Reinstated alias for the legacy fieldtype.

4.0.8.1 - 2021-05-10

Fixed

  • Reverted field alias, to be reinstated with upcoming Craft release.

4.0.8 - 2021-05-08

Changed

  • Improved error handling on the Visitor Model.
  • Added an alias for the legacy fieldtype.

Fixed

  • Fixed a bug occurring with a null target value.

4.0.7 - 2021-04-26

Added

Changed

  • Allow Address field map to stay open if the field already contains coordinates.

4.0.6 - 2021-04-18

Added

Changed

  • Improved error messaging for when a map ID conflicts with the ID of another DOM element. (#23)

4.0.5 - 2021-03-27

Added

4.0.4 - 2021-03-24

Added

  • Added full support for Matrix, Neo, and Super Table fields. (#1)

4.0.3 - 2021-03-14

Changed

  • Improved IP autodetection for visitor geolocation.

Fixed

  • Fixed normalization bug when handling an Address Model. (#6)
  • Be more defensive against unavailable coordinates.

4.0.2 - 2021-02-28

Added

  • Added api option to Twig/PHP tag method.
  • Added assets option to Twig/PHP tag method.
  • Added callback option to Twig/PHP tag method.

4.0.1 - 2021-02-26

Added

Fixed

  • Fixed overlap between the field handle div and the map's toggle text/icon. (#7)

4.0.0 - 2021-02-22

Added

  • Everything.

This is the direct successor to the Smart Map plugin. Since the final version of Smart Map ended at 3.x, Google Maps begins with version 4.0. To replace Smart Map, simply install the Google Maps plugin. Your data will be migrated automatically.

For more information, please see the complete documentation...