- Fixed minor bug in migration from Smart Map. (thanks @bencroker)
- Removed an old symlink which could cause conflicts with
rsync. (#63)
{tip} If using Sprig, enable the
inlineoption in the Twig/PHPtagmethod.
- Added a new
inlineoption for the Twig/PHPtagmethod.
- JavaScript will no longer be injected inline automatically when Sprig is installed.
- All required JavaScript assets now load with
deferattribute. (#61)
- Fixed a minor conflict from recent clustering changes.
- Load JavaScript inline when using Sprig. (#52)
- Fixed bug affecting zoom level of a single marker. (#53)
- Fixed typecasting of event parameters. (#54)
- Craft 4 compatibility.
- Allow
rangeto be a float between 0 and 1.
- Fixed minor bug in JavaScript
tagmethod.
- Prevents the
namesubfield from being just a copy ofstreet1subfield. - Prevents the map from appearing as a grey box when zoom or center are missing.
- Changed the default zoom level to 11.
- 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.
- Fixed info window regression. (#48)
- Fixed
markerClickregression. (#49) - Improved messaging regarding "Required" subfields and coordinates. (#47)
- Refactored how info windows are loaded.
- Address subfields & coordinates can now be marked as required. (#3)
- Added
getZoomJavaScript method. (#35) - Added
getCenterJavaScript method. (#35) - Added
getBoundsJavaScript method. (#35)
- Allow multiple subfields to perform Autocomplete. (#42)
- Fixed conflict between clustering and info windows.
- The
setMarkerIconmethod now accepts an array of IDs to set an icon for multiple markers at the same time. - The
setMarkerIconmethod now accepts*to set an icon for all markers at the same time. - The
hideMarkermethod now accepts an array of IDs to hide multiple markers at the same time. - The
showMarkermethod now accepts an array of IDs to show multiple markers at the same time. - The
openInfoWindowmethod now accepts an array of IDs to open multiple info windows at the same time. - The
openInfoWindowmethod now accepts*to open all info windows at the same time. - Added
closeInfoWindowmethod, which accepts an ID, an array of IDs, or*to close multiple info windows. - The
hideKmlmethod now accepts an array of IDs to hide multiple KML layers at the same time. - The
showKmlmethod now accepts an array of IDs to show multiple KML layers at the same time.
- Improved JavaScript logging.
- Protect against invalid coordinates when centering.
- Deprecated
apioption, replaced withparamsoption.
- Fixed JavaScript chaining bug.
- Improved support for using Google Maps JavaScript API constants within Twig/PHP.
- Fixed namespacing bug when an Address field is nested within a Matrix field. (#43)
{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.
- Addresses now include an optional
namesubfield. (#26) - Addresses now include an optional
countysubfield. - Addresses now include an optional
placeIdsubfield. (#25) - The
hideMarkermethod now accepts*to hide all markers at the same time. (#39) - The
showMarkermethod now accepts*to show all markers at the same time. - The
hideKmlmethod now accepts*to hide all KML Layers at the same time. - The
showKmlmethod now accepts*to show all KML Layers at the same time. - Added
markerLinkoption for dynamic map markers. (#34) - Added
markerClickoption for dynamic map markers. (#34) - Added a JS script and instructions for adding Google Places Autocomplete to front-end forms.
- Replaced deprecated MarkerClustererPlus library with newly recommended MarkerClusterer library.
- Improved autocompletion of Address fields by returning a broader set of results.
- Improved
fitmethod to more accurately reflect visible markers. - Renamed
getMarkerClusterJavaScript method togetMarkerClustererfor accuracy.
- Added
clusteroption to easily cluster map markers. (#9) - Added
getMarkerClusterJavaScript method. (#9) - Added
openInfoWindowuniversal method. (#10)
- Added
hideKmluniversal method. (#24) - Added
showKmluniversal method. (#24) - Added
getKmlJavaScript method. (#24)
- Ensure static map marker options are set as strings. (#29)
- On installation, migrates existing Smart Map license key (if available).
- Logs migration warning messages for recoverable issues.
- Requires a minimum of Craft 3.6.14.
- Significantly improved stability of migration from Smart Map.
- Reinstated alias for the legacy fieldtype.
- Reverted field alias, to be reinstated with upcoming Craft release.
- Improved error handling on the Visitor Model.
- Added an alias for the legacy fieldtype.
- Fixed a bug occurring with a null
targetvalue.
- Allow Address field map to stay open if the field already contains coordinates.
- Added the subfield filter fallback mechanism for proximity searches. (#5)
- Improved error messaging for when a map ID conflicts with the ID of another DOM element. (#23)
- Added
fieldControlSizesetting to control the UI size for Address fields. (#19) - Added
fieldParamssetting to adjust the API URL for Address fields. (#18)
- Added full support for Matrix, Neo, and Super Table fields. (#1)
- Improved IP autodetection for visitor geolocation.
- Fixed normalization bug when handling an Address Model. (#6)
- Be more defensive against unavailable coordinates.
- Added
apioption to Twig/PHPtagmethod. - Added
assetsoption to Twig/PHPtagmethod. - Added
callbackoption to Twig/PHPtagmethod.
- Added
getInfoWindowJavaScript method.
- Fixed overlap between the field handle div and the map's toggle text/icon. (#7)
- 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...