All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- It's now possible to paste a comma separated lat/lng string into Location fields, and have that lat/lng string automatically parsed into the Location field's
lat
andlng
attributes.
- Location fields' selected place data is no longer retained when the field value is changed
- Locate now requires Craft 4.3.0 or later
- Location fields are now previewable in element indexes
- Fixed a JS error
Loading the Google Maps JavaScript API without a callback is not supported
- Fixed an issue where an error would be thrown if the plugin hadn't been configured yet, and you added the field to an entry (Typed property must not be accessed before initialization).
- Adds Craft 4.0 compatibility
- Fixes an issue where the Locate field's JS could initialise before Google's JS API had loaded
- Fixes an issue where Locate would not migrate
swixpop/locate
fields on install
- Added additional properties to default fields (
name
,place_id
)
- Fixes Craft 3.5 compatibility issues
- Added
swixpop/locate
->vaersaagod/locate
migration
- Add setting fields in Locate's settings page for API region and language settings
- Settings fields in the CP now display a warning if they are being overridden using a config file
- Settings fields in the CP now shows the stored database/Project Config values, not the overridden values from config
- Settings fields in the CP now accept environment variables
- Locate now sets the
field
Places API options object togeometry
andaddress_components
by default - Added setting keys to example
config.php
file
- Locate now requires Craft 3.5.7 or later
- Adds
apiLanguage
andapiRegion
settings
- Changes plugin vendor name and namespace from "swixpop" to "vaersaagod"
- Bug where place data with emojis would prevent saving of field
- Bug where hitting enter to select a place would instead trigger a save on the entry before place was selected
- Clearing a location field now actually removes all field data from the database :)
- The field now returns
locationData
. This is the full API response from Google. - Returns
locationData.components
which is a keyed array of all the Googleaddress_components
data.
- Scoped all CSS to plugin
- Fixed incorrect repo urls
- Initial Craft3 release
- Initial release