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

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

Open
andrzej-wisla opened this issue Jul 18, 2019 · 0 comments
Open

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

andrzej-wisla opened this issue Jul 18, 2019 · 0 comments

Comments

@andrzej-wisla
Copy link

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));
  }
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

1 participant