- Removed Polyfill.io (https://sansec.io/research/polyfill-supply-chain-attack)
- Fix issue when using count query on location search results (Fixes #391)
- French translations (via @pascalminator)
- Fix referred on Mapbox geo requests (Fixes #338, via @maxdmyers)
- Fix type errors in front-end usage (Fixes #379, via @samhibberd)
- Fix error when normalizing invalid location (Fixes #368, #380, via @Decyphr)
- Fix intermittent issues w/ Google Maps API loading (Fixes #294, via @davidwebca)
- Allow nullable zoom value (Fixes #381)
- Pass site language to embedded Google map (Fixes #373)
- Support casting map to string (Fixes #362)
- Remove reference to MaxMind Lite from docs (Fixes #358)
- Update settings autosuggest input (Fixes #374)
- Fixed $id embed issue (Fixes #353)
- Allow all Parts to be null as well as an empty string (Fixes #349)
- Fix issue placing marker along coastline when using Mapbox (Fixes #322)
- Removed WikiMedia tiles, falling back to OpenStreetMap (Fixes #307)
- Misc fixes via @davidwebca & @jamesedmonston
- Fix Geo Location Token only allowing string (Fixes #343)
- Mostly functional, only slightly buggy, Craft 4 Support
- Fix Mapbox Forbidden issue (Fixes #218, via @Saboteur777)
- Change default map tileset to Carto Voyager
- Fix some geolocation services conversion failing when the given location is not a valid address (Fixes #322)
- Fix error when upgrading due to missing
type
field (via @cornernote)
- Add Guzzle 7 support (via @dwheeldo)
- Improved GQL docs
- Fix GQL Coords type missing
lng
- Removed distance field from GQL mutation input
{warning} BREAKING: This release changes how GraphQL querying works for the map field. You should now pass the search query as an input rather than a JSON string.
- Added GraphQL support for query filtering and mutations
- Address inputs will span full width when map is disabled (Fixes #282)
- Add
centerFallback
option to map embeds (Fixes #263)
- Prefix name of
Map
graphql elements
- Reduce search radius to 0 if location is not valid (Fixes #277)
- Fix mapbox geocode error when country is not valid ISO code (Fixes #276)
- Remove MaxMind Lite option
- Fix url encode issue for markers in static map images
- Allow zoom override on Google/Mapbox embeds
- Allow style override on Mapbox embeds (Fixes #256)
- Cast embed center coordinates to floats
- Upgraded Mapbox to use new Static Tiles API
- 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