Part of the MAP ecosystem · 5 projects
This module adds a new field type that allows users to draw various shapes like circles, lines, and polygons directly on a map. These shapes can have titles and descriptions that appear when clicked, and their appearance can be customized with colors.
Module provides the field which allows editors to draw shapes(circles, lines, polygons, polylines, markers, rectangles) on Maps. Current version supports Google maps, but more map providers(Yandex, OSM) can be added in future.
Features
- New field type "map_object_field"
- Configurable widget, you can configure types and number of objects available for drawing.
- Configurable formatter, admin can define width and height of displayed map.
- Every drawn shape has title and description which are displayed inside infowindow on click event(see screenshot).
- Editors can define fill and stroke colors for the shape
REQUIREMENTS
Drupal 8.3
INSTALLATION
Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/documentation/install/modules-themes/modules-8 for further information.
CONFIGURATION
- Get Google Map API key(https://developers.google.com/maps/documentation/javascript/get-api-key),then visit /admin/configuration/map-object-field and set the key. More info: (https://developers.google.com/maps/documentation/javascript/usage)
- Don't forget to add your domains to google maps API "white list" for this key
- Attach field to any entity
- Configure field widget
- Configure field formatter
Ask your assistant about Map object field
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- field Drupal core
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the MAP ecosystem
Most installed first