[英]How to scale geofence ellipse on MapControl Windows Phone 8.1 C#?
I am working on a geofence based C# project and I need to show the area of certain geofences on a MapControl. 我正在基于地理围栏的C#项目中工作,我需要在MapControl上显示某些地理围栏的区域。 I tried this by simple adding an ellipse to the map but, it didn't work like it should because the ellipse doesn't scale when the user scrolls to zoom in/out.
我通过在地图上简单地添加一个椭圆来尝试了此操作,但是它并没有像应有的那样工作,因为当用户滚动放大/缩小时,椭圆不会缩放。 How can I solve this problem?
我怎么解决这个问题?
my code: 我的代码:
pin.Children.Add(new Ellipse()
{
Fill = new SolidColorBrush(Colors.Blue),
Width = 24,
Height = 24
});
为此,您需要使用MapElements,而不是Children's集合。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.