mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +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;
|
+ (MWMMarkGroupID)invalidCategoryId;
|
||||||
+ (void)zoomMap:(MWMZoomMode)mode;
|
+ (void)zoomMap:(MWMZoomMode)mode;
|
||||||
+ (void)moveMap:(UIOffset)offset;
|
+ (void)moveMap:(UIOffset)offset;
|
||||||
+ (void)scrollMap:(double)distanceX :(double) distanceY;
|
+ (void)scrollMapToDistanceX:(double)x andY:(double)y;
|
||||||
+ (void)deactivateMapSelection;
|
+ (void)deactivateMapSelection;
|
||||||
+ (void)switchMyPositionMode;
|
+ (void)switchMyPositionMode;
|
||||||
+ (void)stopLocationFollow;
|
+ (void)stopLocationFollow;
|
||||||
|
|||||||
@@ -114,8 +114,9 @@
|
|||||||
GetFramework().Move(offset.horizontal, offset.vertical, true);
|
GetFramework().Move(offset.horizontal, offset.vertical, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (void)scrollMap:(double) distanceX :(double) distanceY {
|
+ (void)scrollMapToDistanceX:(double)x andY:(double)y
|
||||||
GetFramework().Scroll(distanceX, distanceY);
|
{
|
||||||
|
GetFramework().Scroll(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (void)deactivateMapSelection {
|
+ (void)deactivateMapSelection {
|
||||||
|
|||||||
@@ -423,7 +423,7 @@ extension CarPlayService: CPMapTemplateDelegate {
|
|||||||
|
|
||||||
func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdatePanGestureWithTranslation translation: CGPoint, velocity: CGPoint) {
|
func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdatePanGestureWithTranslation translation: CGPoint, velocity: CGPoint) {
|
||||||
let scaleFactor = self.carplayVC?.mapView?.contentScaleFactor ?? 1
|
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) {
|
func mapTemplate(_ mapTemplate: CPMapTemplate, startedTrip trip: CPTrip, using routeChoice: CPRouteChoice) {
|
||||||
|
|||||||
Reference in New Issue
Block a user