This is a migrated thread and some comments may be shown as answers.

PolygonData borders not scaling correctly

1 Answer 44 Views
Map
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 24 Mar 2014, 04:30 AM
I have a RadMap with a VisualizationLayer on it. The RadMap has UseSpringAnimations="True" set for smooth zooming. My VisualizationLayer has a ShapeFill defined with StrokeThickness="1".

My problem happens when I zoom in on a shape with this Stroke set. It looks like the Stroke doesn't scale down until the map has stopped zooming. This creates a horrible effect where the borders of the shape can get really huge/thick while the user is zooming into the shape, and when the zooming stops, the borders jump down to thickness of 1. I assume I'm doing something wrong here?

Here is the definition of the ShapeFill:
                    <telerik:VisualizationLayer.ShapeFill>
                        <telerik:MapShapeFill Fill="#2000FF7F" Stroke="Black" StrokeThickness="1" />                        
                    </telerik:VisualizationLayer.ShapeFill>

Thanks,
Mike

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 25 Mar 2014, 08:04 AM
Hi Michael,

All things work as designed. This is regular behavior of the VisualizationLayer. Visualization engine uses standard Silverlight shapes to show geographic regions on the map. To avoid extra calculations during zoom animation layer uses render transformation for shapes. Render transformation affects all parts of the shape including the stroke (this is regular behavior of the standard Silverlight shapes).

Regards,
Andrey Murzov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Map
Asked by
Michael
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or