Set Height and Width Pie Chart

Set Height and Width Pie Chart 
Tags: Web Controls

Jun 19 2007 at 7:00 PM
Edited Jun 21 2007 at 7:29 PM
Hi,
I am working on SharpMap.I have generated Map on SharpMap ajaxmap Control and also Pie Chart on it.but when Map Zoom's In or Out,the Size of Pie Chart remains same. So I want's to Increase or decrease the Size according to zoom level of Map. for generating pie Chart I am using Radgraph.dll.
Can anyone suggest me how can I set the Height and Width for pie Chart according to Zoom level,so that Pie Chart also Zoom's In and Out According to Map.

Thanks!

Coordinator
Jun 20 2007 at 4:22 AM
It seems that you want to know the scale of the map given the Zoom?

In versions <= 1.0, the Zoom property equals the number of world units wide the Map is. If you divide this number by the width of the view in pixels, then divide that by the dots per inch in your display, you get a reasonable approximation of the scale (although not very accurate, since an "inch" isn't an inch on displays: it's all relative to the display).

Performing the operation in reverse to compute the desired world width and calling setting Zoom with the resulting value will zoom your map.

To keep the pie chart synchronized, you'll need to subscribe to the MapViewOnChange event, of course.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值