Skip to content

Instantly share code, notes, and snippets.

@MrKistic
Created November 13, 2019 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrKistic/98ff865c2edc40bd34e50bbed560d0d3 to your computer and use it in GitHub Desktop.
Save MrKistic/98ff865c2edc40bd34e50bbed560d0d3 to your computer and use it in GitHub Desktop.
Drupal 8 Geolocation/Google maps IE11 bug patch
diff --git a/modules/geolocation_google_maps/js/geolocation-google-maps-api.js b/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
index 66cc97c..d515767 100644
--- a/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
+++ b/modules/geolocation_google_maps/js/geolocation-google-maps-api.js
@@ -172,7 +172,7 @@
return;
}
Drupal.geolocation.GeolocationMapBase.prototype.removeMapMarker.call(this, marker);
- marker.setMap(null);
+ !!marker.setMap ? marker.setMap(null) : null;
};
GeolocationGoogleMap.prototype.getMarkerBoundaries = function (locations) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment