Version 3.3.6

December 11, 2021

Smart Map has been deprecated. The plugin has been completely refactored, and re-released as the new Google Maps plugin.

Please switch to the Google Maps plugin as soon as possible. How to update...

Version 3.3.5

November 24, 2020

Fixed

  • Patched Postgres proximity search incompatibility. (thanks @Timusan)

Version 3.3.4

August 22, 2020

Changed

  • Craft 3.5 is now required.
  • Removed unnecessary error message.
  • Improved formatting of UK addresses.

Fixed

  • Fixed field settings styles for improved compatibility with Craft 3.5+.

Version 3.3.3

June 18, 2020

Fixed

  • Fixed field settings bug for improved compatibility with Craft 3.4.22+.

Version 3.3.2

May 8, 2020

Changed

  • Improved support for gestureHandling.
  • Dropped support for scrollZoom.

Version 3.3.1

May 6, 2020

Changed

  • Craft 3.4 is now required.

Fixed

  • Uses an "Export" event introduced in Craft 3.4.

Version 3.3.0

April 20, 2020

Added

  • Added support for Address exports via the native Craft exporter tool.
  • Added filter fallback technique for proximity searches.
  • KML files can now be specified by absolute URL.
  • Added field option to filter field(s) to be included on map.
  • Added hasCoords parameter to filter out results with incomplete coordinates. (thanks @bencroker)
  • Added SearchResultsEvent, which allows you to modify the address lookup results. (thanks @carlcs)
  • All API access keys (for Google, ipstack, and MaxMind) can now be set via environment variables. (thanks @carlcs)

Changed

  • Craft 3.2 is now required.
  • Improved subfield spacing in Craft 3.4.
  • Improved geolocation with better IP autodetection.
  • Allow target coordinates to be provided as a string.

Fixed

  • Guard against missing country in Google results.
  • Replaced problematic migration.
  • Fixed PHP 7.4 compatibility issues.
  • Fixed error when passing icon array to static map.
  • Fixed bug that showed apostrophes as HTML entities.
  • Fixed all bugs in the debug page.

Version 3.2.2.1

April 8, 2019

Changed

  • Neutralized problematic migration.

Version 3.2.2

March 15, 2019

Added

  • Added ability to filter by latitude and/or longitude.

Changed

  • URL encode address during lookup in CP.
  • Cache Google Maps API lookup results for 90 days.
  • Improved formatting of Address field in HUD editor.

Fixed

  • Fixed bug to keep Address subfields in order.
  • Fixed bug erroneously requiring JSON in lookup action.
  • Fixed links to documentation.

Version 3.2.1

December 14, 2018

Added

  • Added deprecation message for missing Google API keys.
  • Added Hungarian translation.

Changed

  • Additional improvements to directionsUrl and googleMapUrl methods.

Fixed

  • Fixed migration issues with Craft 3.1 compatibility.

Version 3.2.0

December 6, 2018

Added

  • Added ipstack geolocation.
  • Added caching for geolocation lookups. (ipstack, MaxMind)
  • Added caching for search target lookups. (Google Maps API)
  • Added a timeout to geolocation calls.
  • Added ability to override Google API keys.
  • Added Italian translation.

Changed

  • Removed FreeGeoIp.net geolocation.
  • Google API Keys are now required.
  • Subfields stack vertically on mobile.
  • Improved compatibility with Super Table.
  • Improved compatibility with CP Field Inspect.

Fixed

  • Fixed formatting for Italian street addresses.
  • Fixed problematic directionsUrl method.
  • Fixed static map URL encoding issue.
  • Fixed Exception error.

Version 3.1.3

August 14, 2018

Fixed

  • Fixed filter bug.

Version 3.1.2

August 8, 2018

Changed

  • Settings page now specifies that API keys are required, not optional.
  • Replaced daddr/saddr with destination/origin in directions links.

Fixed

  • If installed via console, don’t automatically redirect to welcome page.

Version 3.1.1

July 16, 2018

Fixed

  • Fixed EVENT_AFTER_DETECT_LOCATION event.
  • Fixed bug which occurred when an Address field appears in a widget.
  • Patched small issue with Super Table compatibility.

Version 3.1.0

April 6, 2018

Added

Version 3.0.5

March 29, 2018

Fixed

  • Moved JS injection to the correct place.
  • Updated Matrix Block class reference.

Version 3.0.4

March 19, 2018

Fixed

  • Disabled old code which could lead to confusing behavior.

Version 3.0.3

March 16, 2018

Fixed

  • Fixed bug in recursive JSON.

Version 3.0.2

March 15, 2018

Fixed

  • Fixed bug affecting CLI compatibility.

Version 3.0.1

February 26, 2018

Fixed

  • Properly return JSON responses.
  • Fixed bug when mapId is not specified.

Version 3.0.0

February 14, 2018

Added

  • Craft 3 compatibility.

Version 2.4.2

January 20, 2018

Changed

  • Allows nested markerOptions settings.

Version 2.4.1

September 11, 2017

Added

  • Added support for KML files.
  • Added craft.smartMap.visitor.coords.
  • Added entry.myAddressField.coords.
  • Added JavaScript function to easily style maps.
  • Added JavaScript function to easily refresh maps.
  • Added Canadian English translation.

Changed

  • Now compatible with Feed Me 2 plugin.
  • Made maptype and scale configurable for static maps.

Fixed

  • Fixed a matrix compatibility bug.

Version 2.4.0

December 8, 2016

Added

  • Added region biasing.
  • Added ability to set default position & zoom for "Drag Pin" modal.
  • Added British English translation.

Changed

  • Improved compatibility with CP Field Links plugin.
  • Improved logging.
  • Improved error messaging for Google API.

Fixed

  • Fixed PHP 7 race condition.
  • Fixed dual address bug.
  • Prevent geolocation from being triggered within tasks.

Version 2.3.6

March 21, 2016

Changed

  • Improved craft.smartMap.js (now true by default)
  • Improved error handling in info bubbles.

Version 2.3.5

March 16, 2016

Added

  • Added craft.smartMap.serverKey to get Google Server Key.
  • Added craft.smartMap.browserKey to get Google Browser Key.
  • Creating JS objects now returns them.

Changed

  • Better JS logging.

Fixed

  • Fixed bug which allowed modals to overlap.

Version 2.3.4

February 9, 2016

Changed

  • Improved cURL command for address lookups.

Version 2.3.3

February 5, 2016

Fixed

  • Fixed a bug which allowed extra commas in a formatted address.

Version 2.3.2

January 10, 2016

Fixed

  • Fixed bug which would attempt to draw a marker even if the coordinates were invalid

Version 2.3.1

December 10, 2015

Fixed

  • Supports .ids() syntax (with Craft 2.5.2754 and above)
  • Fixed pagination bug (with Craft 2.5.2754 and above)
  • Fixed missing rawurlencode in Google link
  • Fixed url formatting of static map

Version 2.3.0

December 4, 2015

Added

  • REQUIRES CRAFT 2.5
  • New Craft 2.5 flourishes (icon, description, link to docs, element index column)
  • Maps no longer require "zoom" to be specified, they will use fitBounds to determine the appropriate zoom level
  • You can now filter by subfields
  • Now compatible with Feed Me plugin (v1.4.0+)
  • Now compatible with Import plugin (v0.8.26+)
  • Now compatible with Export plugin (v0.5.8+)
  • Now compatible with Minimee plugin
  • Added craft.smartMap.visitor property to get the visitor's current geolocation data in Twig (if geolocation is enabled)
  • Added craft->smartMap->visitor property to get the visitor's current geolocation data in PHP (if geolocation is enabled)
  • Added French translation
  • Added Dutch translation

Changed

  • Better error handling for unsupported .ids() usage

Fixed

  • Fixed validation bug
  • Fixed bug preventing zoom from being set by a dropdown menu

Version 2.2.0

July 7, 2015

Added

  • Full internationalization support!
  • Arrangement of the Address subfields is now completely customizable!
  • All text is now translatable!
  • German language translation.
  • Japanese language translation.
  • Detects if street number should come before or after street name.
  • Added __toString for Address model.

Changed

  • BREAKING CHANGE: Reordered parameters of "directionsUrl".
  • Switched IP detection to Craft native.

Fixed

  • Fixed bug occurring in some address matches.
  • Fixed static map marker bug.
  • Fixed "Live Preview" bug.

Version 2.1.3

May 8, 2015

Added

  • New "googleMapUrl" method on Address model.
  • New "directionsUrl" method on Address model.

Fixed

  • Fixed bug preventing multiple maps from being displayed.

Version 2.1.2

April 20, 2015

Changed

  • Compatible with awesome Super Table plugin.

Version 2.1.1

April 8, 2015

Fixed

  • Fixed minor migration bug.
  • Fixed console.log error in fieldtype JS.

Version 2.1.0

April 7, 2015

Added

  • Added "format" to address model, to easily output formatted addresses.
  • Added "isEmpty" and "hasCoords" to address model, to easily determine if data exists.
  • Added ability to insert "smartMap.js" anywhere in the template.
  • Added ability to perform an address lookup from the front-end.

Changed

  • Retina scaling for static maps.
  • JavaScript console.log messages only appear when devMode is enabled.
  • Greatly improved UI for Settings page (including clearer geolocation options).
  • Split Google API key into "Server Key" & "Browser Key".

Fixed

  • Fixed a bug when rendering a map which includes empty address fields.
  • Fixed a validation bug with coordinates data.
  • Fixed a JavaScript bug on the debug page.

Version 2.0.13

December 14, 2014

Changed

  • Cleaned up UI in Matrix fields.

Fixed

  • Fixed "Undefined index: zipcode" bug.
  • Fixed map page & directions links.

Version 2.0.12

November 12, 2014

Fixed

  • Bug fixes: Globals & blank addresses.

Version 2.0.11

November 10, 2014

Fixed

  • Fixed missing settings bug.

Version 2.0.10

November 8, 2014

Changed

  • Geolocation is now optional.

Version 2.0.9

October 21, 2014

Fixed

  • Tiny bug fix.

Version 2.0.8

October 4, 2014

Fixed

  • Partial bug fix for FreeGeoIp.net failure.

Version 2.0.7

October 4, 2014

Changed

  • Console log enhancements.

Fixed

  • Bug fix (per Mike Pepper).

Version 2.0.6

September 9, 2014

Fixed

  • Minor bug fix.

Version 2.0.5

August 26, 2014

Fixed

  • Fixed deg2rad bug.
  • Fixed minor JS bug.
  • Fixed so many bugs.

Version 2.0.4

August 25, 2014

Changed

  • Improved drag & drop pin auto-location.

Version 2.0.3

August 23, 2014

Fixed

  • Fixed distance bug.

Version 2.0.2

August 23, 2014

Added

  • Fully Matrix-compatible.

Fixed

  • Squashed bugs.

Version 2.0.1

August 13, 2014

Changed

  • Skip geocoding IP when running through yiic.

Fixed

  • Minor bug fixes.

Version 2.0.0

August 11, 2014

Added

  • Major upgrade from v1.2.7.
  • Completely reworked UI of address field & related interface.
  • Drag & drop map pins.
  • Can be linked to a MaxMind account for the most precise location detection accuracy.
  • Can be linked to a Google Maps for Business account for more allowed views and higher quality static maps.

Changed

  • Vastly expanded customization options.
  • Expanded customization via Twig.
  • Expanded customization via JavaScript.
  • Completely refactored JavaScript.
  • Greatly improved automatic location detection.