createEvent method
Implementation
TapEvent createEvent(Offset offset) {
PositionInfo positionInfo = RotateHelper.normalize(startPosition!, size, offset.dx, offset.dy);
// interpolate the new center between the old center and where we
// pressed now. The new center is half-way between our double-pressed point and the old-center
TapEvent tapEvent = TapEvent(
latitude: positionInfo.latitude,
longitude: positionInfo.longitude,
projection: startPosition!.projection,
mappoint: positionInfo.mappoint,
);
return tapEvent;
}