Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] mbglFeature -> geoJSONObject
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni committed Dec 15, 2016
1 parent d6915c0 commit 1b60d6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions platform/darwin/src/MGLFeature.mm
Expand Up @@ -46,7 +46,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLPointFeature class]]) return NO;

MGLPointFeature *otherPointFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherPointFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherPointFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -95,7 +95,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLPolylineFeature class]]) return NO;

MGLPolylineFeature *otherPointFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherPointFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherPointFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -144,7 +144,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLPolygonFeature class]]) return NO;

MGLPolygonFeature *otherPolygonFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherPolygonFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherPolygonFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -193,7 +193,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLPointCollectionFeature class]]) return NO;

MGLPointCollectionFeature *otherPointFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherPointFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherPointFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -242,7 +242,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLMultiPolylineFeature class]]) return NO;

MGLMultiPolylineFeature *otherMultiPolylineFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherMultiPolylineFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherMultiPolylineFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -291,7 +291,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLMultiPolygonFeature class]]) return NO;

MGLMultiPolygonFeature *otherMultiPolygonFeature = other;
return [super isEqual:other] && [self mbglFeature] == [otherMultiPolygonFeature mbglFeature];
return [super isEqual:other] && [self geoJSONObject] == [otherMultiPolygonFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down Expand Up @@ -346,7 +346,7 @@ - (BOOL)isEqual:(id)other {
if (![other isKindOfClass:[MGLShapeCollectionFeature class]]) return NO;

MGLShapeCollectionFeature *otherShapeCollectionFeature = other;
return [super isEqual:other] && [self mbglFeatureCollection] == [otherShapeCollectionFeature mbglFeatureCollection];
return [super isEqual:other] && [self geoJSONObject] == [otherShapeCollectionFeature geoJSONObject];
}

- (NSUInteger)hash {
Expand Down

0 comments on commit 1b60d6a

Please sign in to comment.