gmap.net

GMap.Net does not show full map in the control

风格不统一 提交于 2019-12-11 08:25:36
问题 I am trying to make a small application which has the capability of showing maps. I came across GMap.Net which is great for my purpose except for the fact that the map does not show completely in the control. I am attaching a picture and hope you can understand my problem. My code of the load button is private void button_Load_Click(object sender, EventArgs e) { MapControl.SetCurrentPositionByKeywords("Pakistan"); MapControl.MapProvider = GMapProviders.BingHybridMap; MapControl.MinZoom = 3;

GMap.NET 1.7 Exception Throw

假如想象 提交于 2019-12-11 07:44:40
问题 Currently, I'm using GMap.NET (1.7 version) for C# with Visual Studio 2008. It works fine, however, I'm not able to run my winform app any more. I'm getting this error when firing InitializeComponent() for my form. The type initializer for GMap.NET.WindowsForms.GMapControl throws an exception. If I revert back to 1.6 version, it works fine. Is there anybody who knows this kind of issue? 回答1: Download precompiled binaries for your .NET version from here. Extract package and copy System.Data

C#,Gmap.net :Generating exception while plotting 5 markers on google map using Gmap.net liabrary

这一生的挚爱 提交于 2019-12-11 07:32:56
问题 i am using Gmap.net library to plot markers at a particular let-long coming after calculation made by triangulation algo on google maps,when i worked for two markers its works fine but when i tries to plot 5 markers its is showing me exception An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll Additional information: Collection was modified; enumeration operation may not execute. what i am doing ,i have created 5 threads for five markers ,which are

GMap - cannot detect clicking on polygon

こ雲淡風輕ζ 提交于 2019-12-10 14:21:07
问题 IsMouseOverMarker property detects clicking on marker just fine, but when trying to use IsMouseOverPolygon property of GMap Control to detect if user clicked on polygon line - it doesn't seem to be working. Note: PolygonEnabled property of GMap control is set to True. The OnPolygonClick event doesn't even fire: private void gMap_OnPolygonClick(GMapPolygon item, MouseEventArgs e) { double pLat = item.From.Value.Lat; } Map Click event does fire, but the 'IsMouseOverPolygon` never gets True

a working GMap.NET application source [closed]

笑着哭i 提交于 2019-12-08 18:50:43
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm using GMap for the first time, but my maps won't show... I'm looking for a working a c# application source. Can you help me? Note: I've downloaded this and this file from http://greatmaps.codeplex.com , but they are just applications, and no source included... Thanks. Here is form with gMapControl1 on it. Add reference on Gmap.NET.Core and Gmap.NET.WindowsForms to your project. using System; using System

How to integrate GMap.NET in WPF? How to work with GMap.NET winforms controls in WPF?

人盡茶涼 提交于 2019-12-08 09:43:46
问题 I can not understand how to integrate GMap.NET in WPF. I am trying to do it using XAML and have no ideas. I am trying smth like that: https://msdn.microsoft.com/en-us/library/ms742875(v=vs.110).aspx. But it doesn't work for me. So, how to do it? I have WPF application and want to use GMap.NET lib winforms controls inside WPF window. Smth like that but in WPF: Also, in general, how to work with WinForms controls parameters in WPF? How to change Map Provider, for example? In winforms its quite

How to add multiple makers on Gmap in c#

六月ゝ 毕业季﹏ 提交于 2019-12-08 05:13:55
问题 I have a text file with a list of GPS coordinates. I am trying to place a marker on each of the coordinates from the document. The problem is that the lengths of the documents change and the way I have it, the marker gets replaced with every iteration. How do I add a marker for each lat/lon point? Here's the relevant code: private GMapOverlay gMapOverlay; private GMapMarker marker; gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance; gmap.MinZoom = 2; gmap.MaxZoom = 25; gmap

Zoom and Pan in GMap.net

北城以北 提交于 2019-12-06 08:05:45
问题 I'm trying to make GMap.Net control multitouch enabled, using WPF build-in events but i wasn't successful. I found a series of articles about multitouch like this and this one. In all of them, ManipulationContainer is a canvas and movable controls placed on it, but in GMap issue ManipulationContainer is GMapControl and there is no control over it. how can i use e.ManipulationDelta data to Zoom and Move? The GMapControl has a Zoom property which by increase or decreasing it, you can zoom in or

Displaying traffic using GMap.NET

元气小坏坏 提交于 2019-12-06 04:13:57
I'm using GMap.NET to render Google Map in my Windows Form application and It works fine. Now I would like to show the traffic information on the map. Is there any way to do that in GMap.NET? Stefano Pieri In the last version, 1.9.2, simply specify this before use control. GoogleMapProvider.Instance.Version = "m,traffic@336000000"; There isn't any way to do that. GMap.Net doesn't support any traffic informations as far as I know. And they didn't any mentions for traffic information in documentation. Documentation 来源: https://stackoverflow.com/questions/42440171/displaying-traffic-using-gmap

GMap.Net marker initially in incorrect position

社会主义新天地 提交于 2019-12-05 02:31:48
问题 I have added a marker using GMap with the lat/long specified. When the application starts, the marker is placed in the incorrect position(at the center of the GMap control) and then when I zoom, it then goes to the specified coordinates. Is this a bug in GMap or am I doing something wrong? Here is the code. GMapOverlay markersOverlay, mo2; GMarkerGoogle marker, marker5; GMapOverlay polyOverlay; List<PointLatLng> points; GMapRoute gr; Graphics g; bool start = true; double move = .0001; double