diff options
author | Jason Wray <jason@mapbox.com> | 2017-07-18 19:17:11 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-08-18 12:26:25 -0400 |
commit | cd36ec00bc44990df1bde02668e104307b30e7d2 (patch) | |
tree | e2ac0491e0cdedf3347a58602c3a965ecfc642ca /platform/darwin/src/MGLPolyline.mm | |
parent | 1188707dc3ca6d88349d4bf323d03e3e93c0e548 (diff) | |
download | qtlocation-mapboxgl-cd36ec00bc44990df1bde02668e104307b30e7d2.tar.gz |
[ios] Add debug descriptions to shapes and features
Diffstat (limited to 'platform/darwin/src/MGLPolyline.mm')
-rw-r--r-- | platform/darwin/src/MGLPolyline.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLPolyline.mm b/platform/darwin/src/MGLPolyline.mm index fd75dc2795..0e371a4dda 100644 --- a/platform/darwin/src/MGLPolyline.mm +++ b/platform/darwin/src/MGLPolyline.mm @@ -201,4 +201,14 @@ @"coordinates": coordinates}; } +- (NSString *)description +{ + return [NSString stringWithFormat:@"<%@: %p; title = %@, subtitle: = %@, count = %lu; bounds = %@>", + NSStringFromClass([self class]), (void *)self, + self.title ? [NSString stringWithFormat:@"\"%@\"", self.title] : self.title, + self.subtitle ? [NSString stringWithFormat:@"\"%@\"", self.subtitle] : self.subtitle, + (unsigned long)self.polylines.count, + MGLStringFromCoordinateBounds(self.overlayBounds)]; +} + @end |