Rewrite: Polyline, drawPath and PolygonalChain

92 views
Skip to first unread message

emux

unread,
Apr 27, 2013, 1:05:59 PM4/27/13
to mapsfo...@googlegroups.com
Hi Thilo,

I test Polyline layer with a road route and I see that at rewrite branch there is no more the PolygonalChain class and the drawing is made with canvas.drawLine instead of canvas.drawPath.
Is this final or a temporary implementation?

Because the drawLine with semi-transparent color produced a route line that there are visible the individual segments and their edges. And with Cap.Round and Join.Round the result is even worst. (sample1.png)
At master branch with drawPath the result is a nice semi-transparent line without voids and segments edges. (sample2.png)

Regards.
sample1.png
sample2.png

Thilo Mühlberg

unread,
Apr 28, 2013, 2:03:49 PM4/28/13
to mapsfo...@googlegroups.com
Thanks for reporting this issue. This is clearly unwanted behavior that
must be fixed before we make the official 0.4.0 release. It's just that
I haven't yet decided about the best API for the polyline and polygon
classes, the Google Maps Android API v2 doesn't convince me either ...

Greetings,
Thilo
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


signature.asc

Thilo Mühlberg

unread,
Jun 7, 2013, 2:46:24 PM6/7/13
to mapsfo...@googlegroups.com
I just committed a fix for this problem in the Polyline overlay class.

Greetings,
Thilo

On 27/04/13 19:05, emux wrote:
signature.asc

emux

unread,
Jun 8, 2013, 10:46:27 AM6/8/13
to mapsfo...@googlegroups.com
Yes that resolves the issue.
Thanks!
Reply all
Reply to author
Forward
0 new messages