Skip to content

Error: fitBounds: latLngBounds must be of type LatLngBounds. #290

@andrzej-wisla

Description

@andrzej-wisla

Sometimes I receive this error, what does it means?
Where I can add type to latLngBounds.

setViewport() {
    const sw = new google.maps.LatLng(this.places.viewportSwLat, this.places.viewportSwLng;
    const ne = new google.maps.LatLng(this.places.viewportNeLat, this.places.viewportNeLng;

    this.map.fitBounds(new google.maps.LatLngBounds(sw, ne));
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions