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

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

Closed
vamsibassetty08 opened this issue Aug 1, 2019 · 3 comments

Comments

@vamsibassetty08
Copy link

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 **

@dockleryxk
Copy link

dockleryxk commented Aug 1, 2019

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.

@ghost
Copy link

ghost commented Aug 1, 2019

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

@ghost ghost closed this as completed Aug 1, 2019
@vamsibassetty08
Copy link
Author

vamsibassetty08 commented Aug 2, 2019

Below is the stackoverflow query link for this post

https://stackoverflow.com/questions/57320696/how-to-reset-the-mapview-if-there-is-a-dynamic-content-to-be-showed-in-the-snazz

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

No branches or pull requests

2 participants