Angular-google-maps: How to reset the mapView if there is a dynamic content to be showed in the snazzy window popup?

Created on 1 Aug 2019  ·  3Comments  ·  Source: SebastianM/angular-google-maps

How to reset the mapView if there is a dynamic content to be showed in the snazzy window popup?

When we open the snazzywindow modal on click of the marker it populates with details, for the first time the map view doesn't set properly to the complete view of the modal but when we open for the second time the map view adjusts to the full view of the popup

stackblitz URL of the problem: https://angular-tst926.stackblitz.io/

stackblitz code: https://stackblitz.com/edit/angular-tst926

Upon launching of the stackblitz url, click on one of the marker which is closer to the top of the browser, the intial popup will not have the content but after second based on the mock response the Modal populates with the right content but the full view of the modal is blocked, but when click once again on the marker to open the window it readjusts to the full view

based on the response of the API, the calculated content would be pasted on to the modal popup and subsequently the map view should readjust to show the full modal content at first time itself instead of clicking on the marker once again

*refer to the stackblitz: https://stackblitz.com/edit/angular-tst926 for the angular version and dependent versions *

All 3 comments

This really belongs on stackoverflow. If you ask on there and send the link I'll give you the answer :-)

Otherwise this should be closed, it's not a bug and this functionality is offered and clearly explained in the docs.

docleryxk is correct. But thanks for creating the stackblitzes, it will help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carl09 picture carl09  ·  35Comments

ramnes picture ramnes  ·  54Comments

ssypi picture ssypi  ·  27Comments

lazarljubenovic picture lazarljubenovic  ·  30Comments

RedFour picture RedFour  ·  42Comments