10 votes

How to add a custom marker icon on gmap using the gmap module?

Just thought I'd point out in the this somewhat long-running thread that, due to an update, Dmytro Pastovenskyi's answer is no longer valid in 7.x-2.11. The "Custom markers path" field is still ...
goodtimefamilyband's user avatar
7 votes

Pass node field value to view filter in a block

Finally i made it. First you make a content type for the items (in this case sted / place). Then you make or edit the content type where the relevant items is going to be displayed (in this case ...
eye-wonder's user avatar
7 votes
Accepted

Pass node field value to view filter in a block

The easiest way to use a view in a block (or anything that uses a build array) is as a render element: $node = \Drupal::routeMatch()->getParameter('node'); $current_nid = $node->id(); $...
oknate's user avatar
  • 14.3k
4 votes

Geofield map : add marker on click listener

If it help someone, this is what I came up with : $(document).on('geofieldMapInit', function (e, mapid) { var map = Drupal.geoFieldMapFormatter.map_data[mapid].map; var markers = Drupal....
mt.i.1's user avatar
  • 63
3 votes
Accepted

Geolocation Field Oops! Something went wrong

Usually you see this message when you don't have in the Geolocation module the Google API Key or the Google API Key is not working well. For this you need to go to: http://YOURSITE/admin/config/...
Adrian Cid Almaguer's user avatar
2 votes
Accepted

How do I implement georeferencing?

Have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views & Maps (IPGV&M) is first and foremost a ...
Pierre.Vriens's user avatar
2 votes

How do I implement georeferencing?

If you want to use an existing module - something like GMap is probably the easiest place to start. That being said, the Google Map API is fairly easy to use, so nothing preventing you from writing a ...
JP Dippenaar's user avatar
2 votes

How to export GMap configurations?

I found from my seniors that these configurations (in this case GMap configurations) are stored in variables and Strongarm module can be utilised to export them. After enabling Strongarm module, these ...
user3919682's user avatar
2 votes
Accepted

GMAP views: Use marker field

Have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views & Maps (IPGV&M) is first and foremost a ...
Pierre.Vriens's user avatar
2 votes
Accepted

How to style and add more fields to the bubble in a gmap field?

Quote from the Comparison of mapping modules: GMap is considered a legacy module. So maybe you want to have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: ...
Pierre.Vriens's user avatar
2 votes
Accepted

Geolocation Field - Map Marker in Views

You need to create a display in your content type where you will put the field that you want to show in the tooltip. Home » Administration » Structure » Content types » YOUR CONTENT TYPE » Manage ...
Adrian Cid Almaguer's user avatar
1 vote
Accepted

How can I update a map to display view results with an exposed filter?

Check out the Geofield Maps module (https://www.drupal.org/project/geofield_map). You should then duplicate your Locations List View into a new view and change the display to be "Map". This ...
Yuckle's user avatar
  • 116
1 vote
Accepted

How to create a google map block to display number of nodes for a content type

Use Geofield_map module: Geofield Map is an advanced, complete and easy-to-use Geo Mapping solution for Drupal 8, based on and fully compatible with the Geofield module, that lets you manage ...
Yuseferi's user avatar
  • 22k
1 vote
Accepted

Drupal Google Maps clustering of nodes.

In order to cluster your map pins/node results, you'll need to write your own javascript function to call the Google Maps Clustering Library/initialize the map (since as of Feb 23, 2018, the GMap ...
Anson W Han's user avatar
  • 1,252
1 vote
Accepted

How to create new markers into a Google map with click?

Well, after a one days work I figured it out. Perhaps this could have been explained by Google maps module developer in 5 minutes and/or with a clear documentation. Following script solved it: (...
user1271930's user avatar
1 vote

How to create new markers into a Google map with click?

This is working example at my side please check here Demo function initCentraDistrictmap() { var mapOptions = { zoom: 12, center: new google.maps.LatLng(1.3050618171691895, 103.8240737915039), ...
Kamal Oberoi's user avatar
1 vote
Accepted

Rendering a 'google_map_field' when referenced via entity reference field

The most out of the box way to display a referenced entity is this: 1) Create a custom view mode "google_map". 2) Set field_entity_reference to render the entity with that view mode. 3) Output the ...
oknate's user avatar
  • 14.3k
1 vote

Rendering a 'google_map_field' when referenced via entity reference field

I would recommend using a view mode to render out the referenced entity. For instance, A's display settings is set to display B using the 'teaser' view mode. Then, you can configure B's teaser ...
Willito's user avatar
  • 11
1 vote
Accepted

How should I add multiple markers using geofield module?

Have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views & Maps (IPGV&M) is first and foremost a ...
Pierre.Vriens's user avatar
1 vote
Accepted

How to acces gmap markers after map is generated?

Here is a quote from the Comparison of mapping modules: GMap is considered a legacy module. So maybe you want to have a look at the IP Geolocation Views & Maps module. Partial quote from its ...
Pierre.Vriens's user avatar
1 vote
Accepted

Change the google marker icon on Geofield module

Have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views & Maps (IPGV&M) is first and foremost a ...
Pierre.Vriens's user avatar
1 vote
Accepted

How to get a dynamic Google map with filtered views and show a marker related to the selected item?

Have a look at the IP Geolocation Views & Maps module. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views & Maps (IPGV&M) is first and foremost a ...
Pierre.Vriens's user avatar
1 vote
Accepted

Taking node map from /map/node and using it on home page

Just create an appropriate view, give that view some path that you like, and set that path as your homepage. To actually create such view with the kind of data your question is about, have a look at ...
Pierre.Vriens's user avatar
1 vote

Gmap cluster different marker types seperatly

The Comparison of mapping modules includes this: GMap is considered a legacy module. So maybe you want to have a look at the IP Geolocation Views & Maps module. Partial quote from its project ...
Pierre.Vriens's user avatar
1 vote

Behavior for displaying map doesn't run

The issue ended up being my CSS. I was using styles from the sample page that had a height of 100%. Once I added some height and width to my naa-map div, my map showed up fine.
wonder95's user avatar
  • 1,201
1 vote

Establish relation between node and gmap marker

I suggest you to use this module to create views related to your nodes to create gmap with markers: https://www.drupal.org/project/ip_geoloc
DarkteK's user avatar
  • 427
1 vote

Does Gmap work with geofield?

Maybe you should investigate to what extend the IP Geolocation Views & Maps module could help you. Partial quote from its project page: Despite what the name may suggest, IP Geolocation Views &...
Pierre.Vriens's user avatar
1 vote
Accepted

Gmap won't show infobubbles when clicking markers (with View Module)

I just found the issue myself through googling better. Sorry https://www.drupal.org/node/2241573#comment-10493640 Some bad code at line 999 of the gmap.module file, remove this and it will work :)
wesvb's user avatar
  • 151

Only top scored, non community-wiki answers of a minimum length are eligible