I'm facing a problem with geofield map and I can't find a solution. So I have a view with all nodes of a content type, where I add an attachment of geofield map format. There I show all nodes from one node type as markers.

I have added the Content title expose as Filer criteria. With this, I can filter my content with a title both in the list and attached map view.

I set the Marker Infowindow Content from as - Rendered node entity via Ajax (Quicker Map start / Slower Infowindow show) - and the view mode as full content

Now the problem: I want to show the marker popup when I click on the title. For title I added the Rewrite setting <a href='#'><div class='disbo-title'>{{ title }}</div></a> in the view.

What I tried:

//First one I tried
(function ($) {  
  Drupal.behaviors.geofieldMap = { 
    attach: function (context, settings) {
        $(this).bind('click', function() {
google.maps.event.trigger(Drupal.settings.geofieldMap.auto1map.markers[i].marker, 'click');
          return false;
//second one I tried
    (function ($) {  
      Drupal.behaviors.geoFieldMap = {
        attach: function (context, drupalSettings) {
          $('.view-content > .views-row .views-field-title .field-content').each(function(i){
            $(this).bind('click', function(){
            google.maps.event.addListener(marker[i], 'click');
            return false;
  • Hi @Hashmat, Can you please answer my question – Drupalie Mar 5 '19 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.