Skip to content

Commit

Permalink
Clarify time units in TGMapViewController markerSetPointEased
Browse files Browse the repository at this point in the history
  • Loading branch information
matteblair committed Feb 15, 2017
1 parent 99a7afc commit bad1e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/src/TGMapViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ NS_ASSUME_NONNULL_BEGIN

- (BOOL)markerSetPoint:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordinate;

- (BOOL)markerSetPointEased:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordinate duration:(float)duration easeType:(TGEaseType)ease;
- (BOOL)markerSetPointEased:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordinate duration:(float)seconds easeType:(TGEaseType)ease;

- (BOOL)markerSetPolyline:(TGMapMarkerId)identifier polyline:(TGGeoPolyline *)polyline;

Expand Down
4 changes: 2 additions & 2 deletions ios/src/TGMapViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ - (BOOL)markerSetPoint:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordin
return self.map->markerSetPoint(identifier, lngLat);
}

- (BOOL)markerSetPointEased:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordinates duration:(float)duration easeType:(TGEaseType)ease
- (BOOL)markerSetPointEased:(TGMapMarkerId)identifier coordinates:(TGGeoPoint)coordinates duration:(float)seconds easeType:(TGEaseType)ease
{
if (!self.map || !identifier) { return NO; }

Tangram::LngLat lngLat(coordinates.longitude, coordinates.latitude);

return self.map->markerSetPointEased(identifier, lngLat, duration, [TGHelpers convertEaseTypeFrom:ease]);
return self.map->markerSetPointEased(identifier, lngLat, seconds, [TGHelpers convertEaseTypeFrom:ease]);
}

- (BOOL)markerSetPolyline:(TGMapMarkerId)identifier polyline:(TGGeoPolyline *)polyline
Expand Down

0 comments on commit bad1e60

Please sign in to comment.