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

Uncaught TypeError: marker.getPosition is not a function #128

Open
instruccionesaldorso opened this issue Dec 10, 2024 · 3 comments
Open
Assignees

Comments

@instruccionesaldorso
Copy link

instruccionesaldorso commented Dec 10, 2024

We're using:

  • TYPO3 12.4.24 and
  • EXT:go_maps_ext 7.0.0

The extension works great, displaying the map and its defined markers.
However, when we click a marker on the map, we get the next error on the console:

Uncaught TypeError: marker.getPosition is not a function

It is related to the next line:
https://github.com/mhirdes/go_maps_ext/blob/main/Resources/Public/Scripts/gomapsext.js#L279

We removed any adaptations we could have made to the Css/Js/Templates/TypoScript settings and the error keeps appearing.

Could you take a look and see if you can reproduce it, @mhirdes?

@mhirdes
Copy link
Owner

mhirdes commented Dec 12, 2024

Please test the changes and let me now if it works for you

@wolfgang007
Copy link

@mhirdes works fine, thx

In console I get "f.getPosition is not a function"?

mhirdes pushed a commit that referenced this issue Dec 12, 2024
@instruccionesaldorso
Copy link
Author

@wolfgang007 @mhirdes I guess file Resources/Public/Scripts/markerclusterer_compiled.js must also be adapted and change all occurrences for f.getPosition() with f.position.

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

3 participants