gmap.net

Draw a polyline on the map using GMap.net

爱⌒轻易说出口 提交于 2021-02-04 05:19:32
问题 Yep, I am not the first who is asking, but I didn't found an answer (maybe, because my english is bad). How to draw a polyline on a map? Not a route (direction), but just a polyline, like in JS Google Maps API with function Polyline. I can not understand. Thanks anyway. 回答1: Have a good read of this tutorial: http://www.independent-software.com/gmap-net-tutorial-maps-markers-and-polygons/ This should get you started: GMapOverlay polyOverlay = new GMapOverlay("polygons"); IList<PointLatLng>

Draw a polyline on the map using GMap.net

喜你入骨 提交于 2021-02-04 05:11:30
问题 Yep, I am not the first who is asking, but I didn't found an answer (maybe, because my english is bad). How to draw a polyline on a map? Not a route (direction), but just a polyline, like in JS Google Maps API with function Polyline. I can not understand. Thanks anyway. 回答1: Have a good read of this tutorial: http://www.independent-software.com/gmap-net-tutorial-maps-markers-and-polygons/ This should get you started: GMapOverlay polyOverlay = new GMapOverlay("polygons"); IList<PointLatLng>

How to remove the plus sign (+) displayed on GMap centre location?

穿精又带淫゛_ 提交于 2021-01-28 04:55:22
问题 I'm using GMap.NET map control to display maps on my Windows Forms application. I recently upgraded to GMap.NET build "09991dd06609". After upgrading to the latest build, I'm getting the plus sign (+) on the centre of the map. I would like to remove that sign. I have gone through all the GMap.NET control properties but I could not find any property to remove it. When I was using the older build I was not getting the plus sign. 回答1: After some research I found the answer. I have used the

GMap .net offline

帅比萌擦擦* 提交于 2020-01-22 20:15:08
问题 I'm developing an application using Gmap in c# (great API, btw), not to confuse with google-map API, and I did some really cool and useful stuff ever since. My problem is that some of my clients won't have an internet connection, and that is why I need to be able to display the background (the map) offline. I used to use the property GMap.NET.AccessMode.ServerAndCache; to get my data from the server, and now I would like to be able to use GMap.NET.AccessMode.CacheOnly with a full cache.

MVVM in WPF - UserControls and GMap.NET

戏子无情 提交于 2020-01-07 04:38:09
问题 I have read almost all the tutorials and checked stack questions however I still do not know and do not understand how to manage WPF UserControls in MVVM, specially those provided by others like GMap.NET. I am trying to follow MVVM pattern in my app, however I have no idea how to initialize and manage GMap.NET WPF control in it. In standard approach it requires management like this: gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance; GMap.NET.GMaps.Instance.Mode = GMap.NET

How to limit the area/location I want to view in GMap.Net WPF using c#?

送分小仙女□ 提交于 2020-01-04 05:31:07
问题 I have this code that shows specific location I needed on my project. 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; } } But I have to limit the

how to use/extract identity of a control inside an activex control

假如想象 提交于 2020-01-02 12:19:11
问题 I have yet another problem.. Consider looking at THIS first.. on my early problems, I needed to drag a button, and a form in relation to how I drag/move the pictureBox.. All controls are inside .NET Now I am working on this great Control, GMaps in which adapts the google's API in .NET framework. My goal is to create something like the infoWindow on google's API. so I resorted on customizing it by creating a new form (acting as the infoWindow) on the first link above. If you've seen Gmaps.net,

Location information where mouse click on the map GMap.net

China☆狼群 提交于 2019-12-30 08:33:23
问题 I'm working on Win Forms application along with GMap.net(a library that enables us to use Google Maps in Win Forms Application). Coming straight to the point, I be able to get the coordinates i.e (Latitude and Longitude) where my mouse click (left click). private void gm1_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { double lat = gm1.FromLocalToLatLng(e.X, e.Y).Lat; double lng = gm1.FromLocalToLatLng(e.X, e.Y).Lng; } } I did not