Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroundOverlay has stopped working in TYPO3 12 #123

Open
Dani-mam opened this issue Sep 26, 2024 · 1 comment
Open

GroundOverlay has stopped working in TYPO3 12 #123

Dani-mam opened this issue Sep 26, 2024 · 1 comment

Comments

@Dani-mam
Copy link

Up until TYPO3 11.5.38 with go_maps_ext 5.1.0 we've had a small script that put an overlay image over the map. Now with TYPO3 12.4.20 and go_maps_ext 6.1.1. it has stopped working and we can't quite figure out why. Any help would be greatly appreciated.

The script:

$(document).ready(function(){ 
  $(function () {
  var mapOverlay;
  var element = $(".js-map");
  
  var imageBounds = {
    north: 52.75099,
    south: 52.74379,
    east: 8.30016,
    west: 8.28697
  };   
  
  //Karte mit Overlay
  mapOverlay = new google.maps.GroundOverlay(
      'https://www.my-website.de/fileadmin/user_upload/img/GoogleMaps/map-overlay.png',
      imageBounds
  );
  mapOverlay.setMap(element.data("map"));
  });	
}); 

@mhirdes
Copy link
Owner

mhirdes commented Oct 11, 2024

We removed jQuery.

To get the map try sth like this:

document.querySelectorAll('.js-map').forEach(function(el) { 
       console.log( el.gomapsext.map );
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants