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

Feature Request: Powerlaw Scaling

1 Answer 50 Views
Map
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 25 Dec 2009, 07:48 PM
Hi,

I thought I would put this out as a feature request.  I would love to see built in support for powerlaw scaling in the layers so that items on the map can scale relative to their zoom ranges.  I am currently using a custom layer that supports this feature but I would expect that once you have support spring animations on all of the layers then my layer won't be so appropriate.  The only reason I have this custom layer is to support powerlaw scaling.

I am currently using the following but of course a more configurable version would be desirable.

 

double scale = Math.Pow(0.05 * (this.MapControl.ZoomLevel + 1), 2) + 0.01;   
 
if (scale > 1) // Max scaling   
{  
    scale = 1;  
}  
else if (scale < 0.125) // Min scaling  
{  
    scale = 0.125;   
}  
 
// Set the transform origin to the center of the object.  
ScaleTransform transform = new ScaleTransform();   
transform.ScaleX = scale;  
transform.ScaleY = scale;  
container.RenderTransformOrigin = new Point(0.5, 0.5);   
container.RenderTransform = transform; 

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 29 Dec 2009, 07:49 AM
Hello Clint Singer,

We have a similar functionality in our RadMap's "To Do" list already. We will do our best to make it available with the 2010.Q1 release.

All the best,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Map
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or