Version 4.1.9

April 15, 2022

Fixed

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

Version 4.1.8

April 11, 2022

Fixed

  • Fixed minor bug in JavaScript tag method.

Version 4.1.7

April 10, 2022

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.

Version 4.1.6

April 1, 2022

Fixed

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

Version 4.1.5

March 25, 2022

Changed

  • Refactored how info windows are loaded.

Version 4.1.4

March 23, 2022

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)

Version 4.1.3

March 9, 2022

Added

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

Fixed

  • Fixed conflict between clustering and info windows.

Version 4.1.2

March 7, 2022

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.

Version 4.1.1

December 24, 2021

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)

Version 4.1.0

December 1, 2021

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.

Version 4.0.11

June 18, 2021

Added

Version 4.0.10

June 8, 2021

Added

Changed

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

Version 4.0.9

May 22, 2021

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.

Version 4.0.8.1

May 10, 2021

Fixed

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

Version 4.0.8

May 8, 2021

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.

Version 4.0.7

April 26, 2021

Added

Changed

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

Version 4.0.6

April 18, 2021

Added

Changed

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

Version 4.0.5

March 27, 2021

Added

Version 4.0.4

March 24, 2021

Added

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

Version 4.0.3

March 14, 2021

Changed

  • Improved IP autodetection for visitor geolocation.

Fixed

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

Version 4.0.2

February 28, 2021

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.

Version 4.0.1

February 26, 2021

Added

Fixed

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

Version 4.0.0

February 22, 2021

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...