Geofield Map module provides a (Google and Leaflet) Map widget for the Geofield Module.
Represent the perfect option to input a Location / Geofield value to a content type, throughout an Interactive Map widget.

Enhancements over Similar Projects

Geofield Map extends, the Drupal 8 way, the same functionalities of the Geofield Gmap module,
adding the option to manage a Leaflet Map, besides the only Google Map type one.

Moreover, it embeds the following enhancements:

  • the ability to search an address throughout a Geocoder Field, with Autocompletion based on the Google Places API,
  • a Reverse Geocoding on the same field based on the map click or marker dragging, etc.,
  • the possibility to permanently store the Geocoded address in the Entity Title or in a "string" type field.

Requirements / Dependencies

Installation and Use

  1. Install the module the drupal way;
  2. In a Content Type including a Geofield Field, go to "Manage form display" and select "Geofield Map" as geofield Widget;
  3. Specify the Widget further settings for both Google or Leaflet Map types;

Specifications

The Geofield Map Widget provides interactive Map Click and Geo Marker Dragging functionalities to set Geofield Lat/Lon values.
An input search field is embedded in the Widget with Google Api Geocoding functionalities, for detailed Addresses Geocoding.

The Module settings comprehend the following options:

  • Use HTML5 Geolocation to find user location;
  • Choose among different Map Types between Google Maps (Roadmap, Satellite, Hybrid, Terrain) and Leaflet ones;
  • Set specific Zoom levels for the Map (start, min, max);
  • Click to Find marker: Provides a button to recenter the map on the marker location;
  • Click to place marker: Provides a button to place the marker in the center location;
  • Allows to choose the Entity Title, or a "string" type field (among the content type ones), to sync and populate with the Search / Reverse Geocoded Address. Further settings allows to hide and disable this "Geo address" Field in the content edit form;

Setting up repository for the first time

git clone --branch 8.x-1.x https://git.drupal.org/sandbox/itamair/2838853.git geofield_map
cd geofield_map

Link to sandbox project: https://www.drupal.org/sandbox/itamair/2838853

Pareview.sh

https://pareview.sh/node/537

Manual reviews of other projects

https://www.drupal.org/node/2838998#comment-11840649

CommentFileSizeAuthor
#2 Immagine_Geofiled_Map_module.png499.96 KBitamair
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

itamair created an issue. See original summary.

itamair’s picture

itamair’s picture

itamair’s picture

Assigned: Unassigned » itamair
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
PA robot’s picture

Issue summary: View changes

Fixed the git clone URL in the issue summary for non-maintainer users.

I'm a robot and this is an automated message from Project Applications Scraper.

visabhishek’s picture

Assigned: itamair » Unassigned

Please do not assign ticket yourself. Please see the workflow https://www.drupal.org/node/532400

itamair’s picture

Issue summary: View changes
2pha’s picture

Geofield Map extends, the Drupal 8 way, the same functionalities of the Geofield Gmap module,
adding the option to manage a Leaflet Map, besides the only Google Map type one.

Why not submit a patch for the geofield gmap module? I don't really think a new module is needed.

itamair’s picture

I already posted a new issue on the Geofield_Gmap module with a new Drupal 8 (Coding Standards compliant) working version of it (https://www.drupal.org/node/2761731) but it still stays an-answered / un-considered since several months ...
BUT I realize that Geofield_Gmap is called in that (its) way really because it is based on Google Maps (GMAP: stays for Google Map).
This module/sandbox wants to be more general (that's way it is more generally called Geofield_Map ...) and moreover adds some brand new features not present in its somehow sibling, such as the possibility to choose a "string" type field (among the ones on the content type) to sync and populate with the Search / Reverse Geocoded Address result of this module.

That's why I guessed a brand new module might be worth to spin off ...

Tnx on your review.
Waiting for a final feedback on this.

klausi’s picture

Issue summary: View changes
Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not done all manual reviews, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.

itamair’s picture

Issue summary: View changes
r3vit’s picture

Category: Task » Bug report

Gmap API key is necessary in every case.

Steps to reproduce:

Home -> Administration -> Structure -> Content types -> Geoplace
Manage form display -> Geofield_map

when selecting the “Map Library” -> Leaflet js
the Gmap API key disappear, even though needs it to work for reverse geocode.

itamair’s picture

Status: Needs review » Needs work
Issue tags: +SprintWeekend2017

Thank you @r3vit ... indeed te GMapKey is needed by the Google Geocoder in the search field anyway, now (also when the Leaflet Map Widget is chosen).
Going to provide a nice workaround.

itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.