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

Reusing the auto-scaling for items on InformationLayers

1 Answer 52 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 09 May 2012, 02:13 PM
We have background image data for our map (Blue Marble). When you zoom in using the wheel, It scales the image nice an neatly over some period of time.

We have canvas items that are drawn on the map. Their points are drawn geo-rectified within the canvas. When the zoom is changed, we redraw the item on the canvas. The problem is that the RadMap immediately scales the canvas to the new zoom scale level, while the map is being smoothly scaled over a few seconds to the new scale level. This creates a wierd effect for the item where it seems to be moving on the map.

I have a couple of questions...

So, is there a way we can hook into that smooth zoom capability so that it changes the scale the items on the layer?
If not, is there a way to get/set the 'scale' time? I can then scale my items myself over the appropriate time.

Thanks,
Michael


1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 May 2012, 09:17 AM
Hello Michael,

It is very complicated to advise you without your sample code. Unfortunately the RadMap does not contain any events which rise during zooming from one zoom level to another and which contain any data about current intermediate zoom level.  Also it does not contain any properties like the 'scale' time.
I think you can use map shapes instead of drawing items when the zoom is changed. They are scaled smoothly when the zoom level is changed. For more information about map shapes please take a look at the following documentation topic:
http://www.telerik.com/help/silverlight/radmap-features-map-shapes.html

All the best,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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