- Added JSON support when filtering by a map field. Very useful for Crafts current GQL implementation (Fixes #248)
- Markers coodinates are now cast to floats (via @Sekonda)
- Exclude empty map fields when sorting by distance (Fixes #245)
- Fix issue where elements failed to save when searching for a location via Google or Here (Fixes #242)
- Fix what3words not updating when searching for a location
- Add env support to settings (Closes #241)
- Improve settings page appearance during load
- Add What3Words support (Closes #236)
- Fix issue when trying to render a static map without markers (Fixes #225)
- Fix error when attempts to populate missing data return null (Fixes #233)
- Fix issue with getting distance when lat/lng was stored as string (Fixes #230)
- Fix issue when upgrading maps for fields that no longer exist (Fixes #227)
- Add config option to disable missing field data population (Fixes #226)
- Add Current Location button to Map (Closes #219)
- 🔥 Improved location searching and distance sorting by up to 1800%! ⚡️
- Fix issue with Mapbox parts lookup when address property is missing
- Fix issue with count when doing a location search
- Embed map width and height can now be set to
null
(Fixes #221)
- Fix map embed / static options not converting center string correctly
- Fix multiple leaflet maps not rendering correctly
- Fix map not being draggable on mobile (Fixes #220)
- Fix mini-map going off screen on small laptops (Fixes #222)
- Add support for
:empty:
and:notempty:
(Fixes #214)
- Fix
embed
andimgSrcSet
not setting options correctly when outputting from a map field (Fixes #215)
- Add docs
- Add Craft GraphQL support
- Add Pro edition
- Add static map image support
- Add new map field size options
- Add IP based user location lookup
- Add ability to redirect to a specific site based off user location
- Add
coordinate
query argument to CraftQL (Closes #205) - Add "mini" size for a tiny field footprint (Closes #203)
- Add
address()
method to map value for easy address formatting - Add galactic address parts
- 🍆 New, sexier UI! 💦
- Mapbox, Apple Maps, and Here are now only available in Maps Pro
- Now requires Craft 3.2.1 or newer
- Remove Vue from JS bundle to reduce file size
- Removed fly animation when updating map location for snappier UI (Closes #202)
- Fix map not showing when other Vue based plugins interfere (Fixes #196)
- Fix issue when migrating from an older version of Maps (Fixes #195)
- Fix project config migration issue (Fixes #207)
- Fix issues upgrading Maps from Craft 2 to 3 (via @roelvanhintum)
- Fix issue when trying to save map field on initial draft entry
- Don't update project config unnecessarily during migration (Closes #194)
- Fix migration error when upgrading from 3.3.4 or lower (Fixes #192)
- Fix error when populating legacy parts server-side from lat/lng
- Fix error when logging invalid legacy part
- Remove errant debug code causing migration to run every request (Fixes #190)
- Fix migration trying to change a column type to a table (Fixes #189, #188)
- Add min / max zoom settings to map field (Closes #186)
- Fix migration from Craft 2 (Fixes #153)
- Fix issue when column already exists during migration (Fixes #187)
- Fix migration issue when matrix / super table blocks don't have any fields (Fixes #184)
- Fix migration issue when no matrix or SuperTable blocks exist (Fixes #182)
- Fix issue with Google trying to set legacy parts that aren’t supported (Fixes #183)
- Fix getting top-level map value part if no parts exist (Fixes #181)
- Add
postal_code_suffix
toPartsLegacy
(Fixes #179)
- Fix migration error when upgrading from 3.4.x to 3.6.x (Fixes #178)
- Fix project config content column type being string instead of text (Fixes #180)
- Add support for getting parts without having to go via the
parts
property. (i.e.myMap.parts.number
can be simplymyMap.number
). This doesn't work for theaddress
part, which is already in use and returns the full address as a string (alternatively, use thestreetAddress
alias). (Closes #154) - Add
streetAddress
alias ofaddress
to Parts.
PartsLegacy
will be used when Google is the chosen Geo service, giving access to additional Google specific parts (Fixes #167)
- Fix error when normalizing value without an element (Fixes #174)
- Fix JS error when using two different API keys for Google maps services (Fixes #165)
- Fix parts being lost when moving from new to legacy (any other geo service to google)
- Fix issue with Mapbox geo service when country was unrestricted
- Fix JS issues when using Apple or Google Maps in an element edit HUD (Fixes #175)
{warning} This update changes how map data is stored, moving away from an element type. This means if you are eager loading the a map field, you'll want to remove the
with
from your query and[0]
when outputting the map (if you have it). We also strongly recommend taking a backup before updating.
{tip} If you get a
Column not found
error when upgrading, try running./craft migrate/all
.
- Reformat data structure to remove map element type and need for eager loading
- Fix missing postcode warning (Fixes #169)
- Fix map save DB issue in Craft 3.2 (Fixes #170)
- Fix map not retrieving saved values in Craft 3.2 (Fixes #171)
- Fix DB error on duplicate import via FeedMe (Fixes #168)
- Fix maps not propagating across sites (Fixes #141)
- FeedMe can now import the individual map parts
- Maps can now populate address and lat/lng data based off only a postcode
- Added FeedMe support!
- Fixed results being duplicated when searching by location when an entry has multiple map fields within the search catchment.
- Account for missing Craft 2 API keys
- Fix HERE search not working when no country restriction was set
- Add default zoom to map element
- Update preferred country instructions to be clearer
- Support rendering a map field without a value
- Use field handle as table alias suffix, instead of random bytes
- Map records are no longer double saved when upgrading to from Craft 2 to 3
- Map records are no longer double saved when upgrading to >3.4.x
- Added option to show lat / lng fields
- Fixed map not validating correctly
- Fixed wrong map value being shown on element index with multiple sites
- Fixed missing table prefix in map element query
- Fixed migration issue when upgrading due to duplicate element IDs
- Scrolling to zoom disabled on map
- Clearing the map will no longer store the default data
- Fix error when migrating a field from Craft 2 when
countryRestriction
isn't set - Location search excludes elements that have been soft-deleted
- Fixed issue restoring trashed elements that have a map field
- Map field elements are trashed and deleted correctly
- Fixed syntax issue on PHP <7.1.0
- Fixed error during repair migration when element doesn't exist
- Fixed JS error when clearing field
- Fixed missing parts when using Google maps for geo-coding
- Clear button now translatable
- Added "Clear" button
- Always show full address field even if address block is hidden
- The really shitty element stuff. Is good now. I think.
- Fixed maps failing to get value after save
- Using Google Maps geo service will result in legacy parts always being used, meaning you can access all available address components.
- Fixed some issues when upgrading from older versions of Maps. We recommend upgrading from 3.3.4 or lower directly to this release or later.
- You can now pass a map to the location query (fixes #99)
- Fixed issue when
cp-field-inspect
plugin is installed (fixes #127) - Fixed
elementId cannot be null
error on saving new entries with map fields (fixes #126)
- Fixed issue setting old field settings after upgrade.
- Fixed an issue where the map field class broke after upgrading.
{warning} This is a major update, we strongly recommend taking a database backup before updating!
- SimpleMap is now Maps! We've re-written the plugin from the ground-up while keeping it backwards compatible (even back to Craft 2!)
- Maps is now powered by Vue!
- New icon yo
- OpenStreetMap Support and map tiles
- Mapbox Support and map tiles
- Apple MapKit Map Tiles
- Here Maps Support and map tiles
- Wikimedia Map Tiles
- Carto Map Tiles
- Address inputs for manually settings address parts data.
- We've normalized the map "Parts", so you'll always know what data you have available.
- CraftQL support: you can now query and mutate Maps fields via Graph!
- Field Customization: It's now possible to hide the location search, map, and address inputs.
- Maps are now multi-site aware and can be translated.
- Removed lat/lng inputs from field
- Removed restrict by type
- Removed boundary restriction
- Fixed a bug where SimpleMap would not validate required fields. (via @samhibberd)
- Fixed a bug where SimpleMap would cause the
ResaveElements
job to error when triggered via console.
- Added docs for using a config file to configure the plugin.
- Fixed JOIN alias issue when using the Element API plugin (via @idontmessabout)
- Fixed JS bug on settings page
- Added a fix for those annoying
Call to a member function getMap() on null
bugs
- Map height no longer jumps when page loads
- Vastly improved the map fields settings UI/UX
- No more nasty text fields!
- Map height and position is now set by resizing and moving a map
- Auto-complete search bounds can now be drawn directly onto a map
- Radio buttons are now drop-downs
- Now using the plugins
afterInstall
function instead of the plugin after install event - The "Hide Lat/Lng" option is now true by default
- Fixed bug where pagination would error when querying via a map field. #70
- Updated CraftQL support (via @markhuot)
- Removed webonyx/graphql-php dependency #71
- Improved address and lat/lng input sizing on smaller screens and in a HUD #73
- Updated Mapbox example to use latest API #74
- Map fields no longer cause global sets to fail to save!
- Fixed settings not translating for non-English languages
- Fixed boundary settings fields not accepting decimals
- Fixed bug where maps were failing to save.
- CraftQL support!
- Added
craft.simpleMap.getLatLngFromAddress($addressString[, $country])
.
- The maps
parts
now contains all available options from here (including the_small
variants). Any options without values are returned as empty strings.
- Added ability to restrict location search by country
- New icon!
- It's now possible to save the map field with only an address! Useful for populating the field from the front-end. (Requires the Geocoding API).
- The address and lat/lng are now validated.
- Fixed a bug where location searches would error if
orderBy
was not defined
- Fixed maps not rendering
- Initial Craft 3 Release