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.

ERROR Error: google is not defined when using fitBounds #1586

@alexdabast

Description

@alexdabast

Issue description
It's not possible to use fitBounds attribute with LatLngBoundsLiteral object only boolean.
I discover this only on 1.0.0-beta.5

Steps to reproduce and a minimal demo of the problem
Very easy to reproduce https://stackblitz.com/edit/agm-fitbounds-issue

Current behavior
Using a LatLngBoundsLiteral object as fitBounds lead to an error

Expected/desired behavior
We should be able to set a LatLngBoundsLiteral object as fitBounds

angular2 & angular-google-maps version
angular 6.0.0
agm/core 1.0.0-beta.5

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions