Search code examples
androidhere-api

Round Dash (Dot) MapPolyline in HereMaps SDK


Android Google Maps SDK provides a way to create round/dot (dash) Polylines (Polyline). Is there a way to do this in HereMaps? The API seems to support only square/rectangular pattern.


Solution

  • Dash is supported, setDashEnabled, and a round cap style CapStyle#ROUND, but specifically round segments of the dashed line are not supported. You could try to reduce the dash length to get a similar aesthetic setDashPrimaryLength, setDashSecondaryLength.