Appears OK as of r9394, although it's still safest to set the area's bounding line colour explicitly even if that is to clNone. If that is not done then it inherits from the body colour of the last-drawn area, and since the opacity is 100% this tends to be obtrusive. (Note that I'm not complaining, just commenting on how it appears best to use this tool).
Please complain, I'm glad to receive any feedback about LMV.
I would like to fix all that 'side-effects' appearing. Any additions as the opacity makes regressions inevitable and it would be nice when they're spotted to pinpoint them.
FYI there is an additional processing to obtain the track width and color (in TMapView.DrawTrack)
- TMapView.TrackLineColor - when the track color is clDefault, it returns the MapView.DefaultTrackColor (or if there is an ExtraData -> ExtraData.Color, which is a kind of a legacy code left)
- TMapView.TrackLineWidth - when the track width is -1, it returns the MapView.DefaultTrackWidth (or if there is an ExtraData -> ExtraData.Width, same legacy)
Please note that the track
width is in mm, not pixels, i.e. = x / 25.4 * ScreenInfo.PixelsPerInchX
I'm surprised that you're observing such a color 'transfer' between objects, there shouldn't be because of the above explained processing, anyway can you tell me what combination of props will show it?
There was such a transfer of opacity, hope it is now fixed.
I've slimmed my example down by moving the perimeter stuff into a separate unit, and attach the result as a useful demo.
Thank you!
I was under impression that the polygon buffering is a something needed for your project, not for the demo itself. I'm not sure it will be valued enough, if noticed at all, when it is executed just once and just shown. However, I hope it will be useful to you and for the forum participants, of course.