Created
November 13, 2019 06:48
-
-
Save MrKistic/98ff865c2edc40bd34e50bbed560d0d3 to your computer and use it in GitHub Desktop.
Drupal 8 Geolocation/Google maps IE11 bug patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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