Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Supporting organizations:
Project information
- Module categories: Site Structure
- 28 sites report using this module
- Created by dmitry.kazberovich on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.