Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

How to recenter map based on marker position? #789

@nthonymiller

Description

@nthonymiller

** Question **

I have implemented a fullscreen option for the map but when I go to the fullscreen and back I call triggerResize() on the map to update the bounds for the map.

However, when going to fullscreen or returning to normal size, the marker is no longer centered on the screen.

How could I trigger the map control to recenter for the given marker position.

angular2 & angular2-google-maps version
Angular: 2.12
Angular2-google-maps: 0.16.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions