Reusing the auto-scaling for items on InformationLayers

2 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Nov 2011

    Posted 09 May 2012 Link to this post

    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.


  2. Andrey
    Andrey avatar
    1681 posts

    Posted 14 May 2012 Link to this post

    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:

    All the best,
    Andrey Murzov
    the Telerik team

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

Back to Top