我有这段代码,显示了我项目所需的具体位置。
public partial class ViewLocation : Window
{
public ViewLocation()
{
InitializeComponent();
}
private void gmap_Loaded(object sender, RoutedEventArgs e)
{
gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;
gmap.Position = new GMap.NET.PointLatLng(13.4107591, 121.1764547);
//gmap.SetPositionByKeywords("Calapan, Philippines");
gmap.MinZoom = 13;
gmap.MaxZoom = 18;
gmap.Zoom = 9;
}
}
但我必须限制它显示的区域。例如,我只想看到离我位置2英里的区域。有可能吗?我该怎么办呢?