getNewPixelOrigin method
Calculates the pixel origin of this MapCamera at the given
center
/zoom
.
Implementation
Point<int> getNewPixelOrigin(LatLng center, [double? zoom]) {
final halfSize = size / 2.0;
return (project(center, zoom) - halfSize).round();
}