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
- Geofield Map depends on the Geofield Module
Installation and Use
- Install the module the drupal way;
- In a Content Type including a Geofield Field, go to "Manage form display" and select "Geofield Map" as geofield Widget;
- 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
Manual reviews of other projects
Comment | File | Size | Author |
---|---|---|---|
#2 | Immagine_Geofiled_Map_module.png | 499.96 KB | itamair |
Comments
Comment #2
itamair CreditAttribution: itamair as a volunteer commentedComment #3
itamair CreditAttribution: itamair as a volunteer commentedComment #4
itamair CreditAttribution: itamair as a volunteer commentedComment #5
itamair CreditAttribution: itamair as a volunteer commentedComment #6
itamair CreditAttribution: itamair as a volunteer commentedComment #7
itamair CreditAttribution: itamair as a volunteer commentedComment #8
itamair CreditAttribution: itamair as a volunteer commentedComment #9
itamair CreditAttribution: itamair commentedComment #10
itamair CreditAttribution: itamair commentedComment #11
PA robot CreditAttribution: PA robot commentedFixed 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.
Comment #12
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedPlease do not assign ticket yourself. Please see the workflow https://www.drupal.org/node/532400
Comment #13
itamair CreditAttribution: itamair commentedComment #14
2phaWhy not submit a patch for the geofield gmap module? I don't really think a new module is needed.
Comment #15
itamair CreditAttribution: itamair commentedI 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.
Comment #16
klausiRemoving 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.
Comment #17
itamair CreditAttribution: itamair commentedComment #18
r3vit CreditAttribution: r3vit as a volunteer commentedGmap 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.
Comment #19
itamair CreditAttribution: itamair commentedThank 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.
Comment #20
itamair CreditAttribution: itamair commentedComment #21
itamair CreditAttribution: itamair commentedComment #22
PA robot CreditAttribution: PA robot commentedClosing 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.