latLngToScreenPoint method
Implementation
CustomPoint latLngToScreenPoint(LatLng latLng) {
final nonRotatedPixelOrigin =
(project(getCenter(), zoom) - originalSize! / 2.0).round();
var point = options.crs.latLngToPoint(latLng, zoom);
final mapCenter = options.crs.latLngToPoint(center, zoom);
if (rotation != 0.0) {
point = rotatePoint(mapCenter, point, counterRotation: false);
}
return point - nonRotatedPixelOrigin;
}