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

[TYPO3 11] Google Maps is centered at wrong position #242

Closed
PhilippKuhlmay opened this issue Feb 23, 2022 · 5 comments
Closed

[TYPO3 11] Google Maps is centered at wrong position #242

PhilippKuhlmay opened this issue Feb 23, 2022 · 5 comments
Assignees
Labels
Need Feedback TYPO3 12 Get maps2 TYPO3 12 ready

Comments

@PhilippKuhlmay
Copy link

The Google Maps is centered at a wrong position when showing at the location details page.
It seems that it is showing the positon Lat: 0.0000 / Lon: 0.0000.
(I am not using an API key for Google maps at the moment)

Bildschirmfoto 2022-02-23 um 10 27 15

@froemken
Copy link
Contributor

froemken commented Mar 2, 2022

Hello @PhilippKuhlmay

"At the location detail page"? You mean the location page of EXT:events2, right?

I have just tested that scenario and it works without any problems. Have you updated the Location.html or, are you using the most current version of events2:

https://github.com/jweiland-net/events2/blob/typo3_11_compatibility/Resources/Private/Templates/Location/Show.html

@froemken froemken self-assigned this Mar 2, 2022
@froemken froemken added the TYPO3 12 Get maps2 TYPO3 12 ready label Mar 3, 2022
@froemken
Copy link
Contributor

froemken commented Mar 7, 2022

Hello @PhilippKuhlmay

today I have released version 10.0.0 of maps2. There are some changed in settings. Could you please check, is this issue is still valid?

Nice greetings

Stefan

@PhilippKuhlmay
Copy link
Author

Hello @PhilippKuhlmay

"At the location detail page"? You mean the location page of EXT:events2, right?

I have just tested that scenario and it works without any problems. Have you updated the Location.html or, are you using the most current version of events2:

https://github.com/jweiland-net/events2/blob/typo3_11_compatibility/Resources/Private/Templates/Location/Show.html

@froemken
I mean the page which shows after I hit the link for the location (here "Sternwarte Presberg").
Bildschirmfoto 2022-03-10 um 16 28 14

I haven't modified any of the templates so it is still the default template. I am using the dev-typo3_11_compatibility branch for EXT:events2

I stil have this issue with the new maps2 version 10.0

@froemken
Copy link
Contributor

Good morning @PhilippKuhlmay

I just found the issue. Please use latest typo3_11_compatibility branch or update events2 Location/Show.html template and change partial to this line:

<f:render partial="Maps2/PoiCollection"
   section="showMap"
   arguments="{poiCollections: {0: location.txMaps2Uid}, override: {settings: {mapWidth: '100%', mapHeight: '300', zoom: '14'}}}" />

The problem was, that the partial expects poiCollections instead of just poiCollection.

Thank you for your help

Stefan

@PhilippKuhlmay
Copy link
Author

Hi @froemken This works now, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Feedback TYPO3 12 Get maps2 TYPO3 12 ready
Projects
None yet
Development

No branches or pull requests

2 participants