mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[ios] Fixed wrong ObjC function name that caused warnings
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
committed by
Yannik Bloscheck
parent
9d8e84ae5a
commit
3b1551be52
@@ -40,7 +40,7 @@ NS_SWIFT_NAME(FrameworkHelper)
|
||||
+ (MWMMarkGroupID)invalidCategoryId;
|
||||
+ (void)zoomMap:(MWMZoomMode)mode;
|
||||
+ (void)moveMap:(UIOffset)offset;
|
||||
+ (void)scrollMap:(double)distanceX :(double) distanceY;
|
||||
+ (void)scrollMapToDistanceX:(double)x andY:(double)y;
|
||||
+ (void)deactivateMapSelection;
|
||||
+ (void)switchMyPositionMode;
|
||||
+ (void)stopLocationFollow;
|
||||
|
||||
@@ -114,8 +114,9 @@
|
||||
GetFramework().Move(offset.horizontal, offset.vertical, true);
|
||||
}
|
||||
|
||||
+ (void)scrollMap:(double) distanceX :(double) distanceY {
|
||||
GetFramework().Scroll(distanceX, distanceY);
|
||||
+ (void)scrollMapToDistanceX:(double)x andY:(double)y
|
||||
{
|
||||
GetFramework().Scroll(x, y);
|
||||
}
|
||||
|
||||
+ (void)deactivateMapSelection {
|
||||
|
||||
@@ -423,7 +423,7 @@ extension CarPlayService: CPMapTemplateDelegate {
|
||||
|
||||
func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdatePanGestureWithTranslation translation: CGPoint, velocity: CGPoint) {
|
||||
let scaleFactor = self.carplayVC?.mapView?.contentScaleFactor ?? 1
|
||||
FrameworkHelper.scrollMap(-scaleFactor * translation.x, -scaleFactor * translation.y);
|
||||
FrameworkHelper.scrollMap(toDistanceX:-scaleFactor * translation.x, andY:-scaleFactor * translation.y);
|
||||
}
|
||||
|
||||
func mapTemplate(_ mapTemplate: CPMapTemplate, startedTrip trip: CPTrip, using routeChoice: CPRouteChoice) {
|
||||
|
||||
Reference in New Issue
Block a user