heremaps / here-ios-sdk-examples

Objective-C and Swift projects using the HERE SDK for iOS.
MIT License
60 stars 56 forks source link

Unexpected Marker/Polyline behaviour #130

Closed marcomilov closed 4 years ago

marcomilov commented 4 years ago

Hi all, I'm currently experiencing some weird issues with markers and polylines. When placing a marker on the current user position and adding a dashed polyline to a specific destination, they can be moved by scrolling the mapview. This does not happen with the marker at the destination. Furthermore, they positions align when positioning in the middle of View. I already played around with the transformCenter property without any success. I have attached a screenrecord that shows the unexpected behaviour. Any help in this regard would be highly appreciated, since this issue is bugging me for days.

HereMaps_Polybug (7)

marcomilov commented 4 years ago

Finally fixed it! The problem was that I did not the altitude of the geocoordinate into consideration. Since I use the user position, the marker and polyline have an altitude, which lead to the behaviour.

NasrullahKhan commented 3 years ago

@marcomilov how you're drawing dashed polyline in iOS. i found nothing related to dashed polyline in documentation.

Please share the code snippet and documentation link if you can.

Thanks