I'm using this great module, and create view map, using ajax, and exposed filters. When I change value of any exposed filter, and the map return no result, the api of google maps api return error.

TypeError: a is null

Similar error: http://stackoverflow.com/questions/5478450/google-map-error-a-is-null

mi solution is edit ip_geoloc_gmap_multi_loc.js and remplace this code.

var mapDiv = document.getElementById(settings.ip_geoloc_multi_location_map_div);
      // Create map as a global, see #1954876: Allow map to be centered on the location provided by exposed filter when using geolocation_proximity
        map = new google.maps.Map(mapDiv, mapOptions);

by this code

var mapDiv = document.getElementById(settings.ip_geoloc_multi_location_map_div);
      
      // Create map as a global, see #1954876: Allow map to be centered on the location provided by exposed filter when using geolocation_proximity
      if (mapDiv) {
        map = new google.maps.Map(mapDiv, mapOptions);
      }

And it's works.

Comments

rdeboer’s picture

Thanks eloiv. Will implement.
Rik

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

I've checked in something along these lines.
Thanks eloiv.
Rik

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.