如何使用两个给定的GeoCoordinate创建LocationRectangle [英] How to create a LocationRectangle with two given GeoCoordinate

查看:106
本文介绍了如何使用两个给定的GeoCoordinate创建LocationRectangle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个GeoCoordinate a,b。我想用这两个GeoCoordinate创建一个LocationRectangle,以便我可以在map.setview()中使用它。  我读了msdn上给出的构造函数,但我无法理解。

I have two GeoCoordinate a, b . I want to create a LocationRectangle with these two GeoCoordinate, so that I can use it in map.setview().  I read the constructors given on msdn, but I couldn't understand.

一个例子很棒。

在这方面的任何帮助都将受到高度赞赏。

Any help in this regard would be highly appreciated.

推荐答案

查看  LocationRect构造函数 文档页面。  您可以使用两个位置创建一个LocationRect,其中包含  LocationRect
构造函数(位置,位置) )
 版本,但请确保您使用矩形的西北角和东南角。  您还可以按顺序创建包含North,West,South和East值的矩形。   LocationRect
构造函数(Double,Double,Double,Double)

Look at the LocationRect Constructor documentation page.  You can use two Locations to create a LocationRect with the LocationRect Constructor (Location, Location) version, but make sure you are using the northwest and southeast corners for the rectangle.  You can also create the rectangle with the North, West, South, and East values in that order.  LocationRect Constructor (Double, Double, Double, Double)


这篇关于如何使用两个给定的GeoCoordinate创建LocationRectangle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆