-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 do I use the LatLngBounds class in Ionic 2? #298
Comments
import {GoogleMapsLatLngBounds, GoogleMapsLatLng} from 'ionic-native';
...
let southwest: GoogleMapsLatLng = new GoogleMapsLatLng(<lat>, <lng>);
let northeast: GoogleMapsLatLng = new GoogleMapsLatLng(<lat>, <lng>);
let bounds: LatLngBounds = new GoogleMapsLatLngBounds(southwest, northeast);
// do stuff with our bounds object now |
I can not use this way:
|
I changed the constructor in googlemap.js . Thus I can use as described in the above example.
|
thanks @CardosoGit |
gratefull! |
If I may, you also have the animate camera option that should be able to take a GoogleMapsLatLngBounds as target parameter as well as GoogleMapsLatLng. Cordova maps plugin has this feature available. Am saying this in the right place or should I create a new issue ? (sorry I'm quiet new to ionic). |
has this issue been fixed? It appears CardosoGit solution was never merged into the master... EDIT: found the solution: #647 |
I would like to take the center of multiple markers.
The text was updated successfully, but these errors were encountered: