project method
Projects geographical coordinates into coordinates in units accepted for this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
Implementation
@override
UPoint project(LatLng? position) {
pj4.Point point = epsg4326.transform(
pj4Projection,
pj4.Point(
x: position!.lng,
y: position.lat,
));
return UPoint(point.x, point.y);
}