0
I am developing an Ionic app where I need to show several points on the Google Maps map, I add all points as markers on the map and place the camera position to the center of the points.
pontos = [[23,13], [11, 45], ..., [22, 21]];
for (let p of pontos) {
this.map.addMarkerSync({
position: {
lat: p[0],
lng: p[1]
}
});
}
The problem is that the zoom does not allow all points to be viewed. My question is: how do I calculate the zoom so that all the added points appear?
Have you ever tried to calculate in any way? It would be good to put your code so that we have a sense of how to help?
– Ricardo