Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
27.82 KB
MD5: 99e8320e767cbdb5abff2d588b50dd90
SHA-1: 1dc7de14e3b57aa878f48dd00fb24c6006de6a7f
SHA-256: eef3d18e1fcde19edc509218d2599d4bb0b37833c8bd08633a5bbff0d1dcc494
Download zip
48.21 KB
MD5: 9861607649eac542c43353559533b6ca
SHA-1: 29c3e452183e9ab5a8d30292319ccf1a3eae158a
SHA-256: 518a82b780c1fd8a7d6809b17b4135f81a649cf52d853989e557151b93b814fb
Release notes
Drupal 11 compatibility, configurable polygon fill opacity, configurable default center and zoom of the map, and default configuration. This release also fixes several bugs and adds automated tests.
Upgrade notes
- Drupal ^10.3 || ^11 is required. Drupal 8, Drupal 9 and Drupal 10 before 10.3 are no longer supported. Stay on 8.x-1.1 for those versions.
- Run the database updates (
drush updb). The sample page at/examples/gmap_polygon_fieldis now restricted to users with the Administer GMap Polygon Field permission, and that permission is now marked as restricted. - Check the settings after the update. The module now ships default configuration, but an existing site keeps its settings as they are. The settings added since 8.x-1.1 (fill opacity, default latitude, longitude and zoom) are empty, and the status report warns about them. Until you fill them in on the settings page (
/admin/config/content/gmap_polygon_field) and save it, a map without a polygon shows the whole world. - If you deploy the configuration from code, save the settings page, export the configuration (
drush cex) and commit it. - API changes:
ConfigService::set()was removed, andConfigService::get()returns the stored value without hardcoded defaults.
New features
- Polygon fill opacity setting.
- Configurable default center and zoom of a map without a polygon.
- The style settings support tokens of the entity the field belongs to, e.g.
[node:field_color]. With the Token module installed, the settings page shows the token browser. - A status report warning when some settings are missing.
Bug fixes
- Polygons longer than 128 characters are no longer truncated in the widget and on the sample page.
- A stored "0" stroke opacity or weight is kept instead of falling back to the default.
- Every map gets its own style, so token values of different entities on one page do not overwrite each other.
- The map is localized to the language of the current page. Before, all visitors got the language of the first visitor.
- The Google Maps library URL is correctly encoded and refreshed after the API key changes.