gmap.net

Gmap.net Error in WPF

白昼怎懂夜的黑 提交于 2019-12-25 16:53:31
问题 After adding the reference component in the Toolbox, the following error occurs when trying to use the component: " A reference to "GMap.Net.WindowsPresentation,Version=1.6.0.0, Culture=neutral, PublicKeyToken=b8b9027b614afef" has been added to the project. In rder to use types from the new reference,press OK to restart the XAML designer. After the XAML Designer restarts, re-create the control on the artboard. " Already restarted Visual Studio, but not resolved. 回答1: This worked for me. Use

GMAP.NET adding labels underneath markers

笑着哭i 提交于 2019-12-23 02:25:05
问题 I have just started using gmap.net and I was looking for the functionality of adding labels under the markers. I see there's tooltips but I would like to have a constant label under my marker with a one word description. I searched for docs or other answers but I cannot find anything which leads me to believe that it is not implemented. If someone can verify this I would appreciate it. 回答1: You need to create your own custom marker. Based on the source of GMapMarker and the derived

a working GMap.NET application source [closed]

那年仲夏 提交于 2019-12-23 02:19:35
问题 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. 回答1: Here is form with gMapControl1 on it

Displaying traffic using GMap.NET

点点圈 提交于 2019-12-22 12:13:21
问题 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? 回答1: In the last version, 1.9.2, simply specify this before use control. GoogleMapProvider.Instance.Version = "m,traffic@336000000"; 回答2: 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

GMap.NET shows no map

♀尐吖头ヾ 提交于 2019-12-18 17:33:52
问题 I'm trying to use the GMap.NET.WindowsForms control in my Windows forms application but I cannot make it show me any map. Here is what I did: I added the control to my Visual Studio's 2010 toolbox by clicking 'Choose Items...' from the toolbox's context menu and browsing for the GMap.NET.WindowsForms.dll included in the downloaded zip archive. I also added references to GMap.NET.Core.dll and System.Data.SQLite.dll in my solution. Then I put the GMapControl that appeared in the toolbox on the

Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0

我是研究僧i 提交于 2019-12-13 20:23:18
问题 I am trying to load a map on my project. I'm using WPF on my project but since I can't use the "Overlays" I'm using to put a marker, and it's working on WindowsForm, I am now using it and calling it to the WPF form, until I encountered this error. Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0, Culture=neutral, PublicKeyToken=b85b9027b614afef' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:

How to create a route in Gmap.net wpf?

旧街凉风 提交于 2019-12-12 01:34:45
问题 I hope you can help me. I can not find anything helpful in the web for the WPF version of GMap.net. Problem: I don't see my route. List<Location> points = PolylinePoint.Decode(responseData.routes.First().overview_polyline.points); GMap.NET.WindowsPresentation.GMapRoute route = new GMap.NET.WindowsPresentation.GMapRoute(points.Select(x => new PointLatLng(x.Latitude.Value, x.Longitude.Value))); route.ZIndex = ROUTESLIST; route.Shape = new Line() { StrokeThickness = 4, Stroke = System.Windows

GMap.NET in WPF, don't work Markers

做~自己de王妃 提交于 2019-12-11 19:23:49
问题 How can I add Marker to my map? I use: PointLatLng point = gMap.FromLocalToLatLng(62.03175418653, 129.731884002686); GMapMarker marker = new GMapMarker(point); gMap.Markers.Add(marker); it's don't work.. my gMap: gMap.MapProvider = GoogleMapProvider.Instance; gMap.Manager.Mode = AccessMode.ServerAndCache; GMapProvider.WebProxy = null; gMap.Position = new PointLatLng(62.03175418653, 129.731884002686); gMap.MinZoom = 1; gMap.MaxZoom = 20; gMap.Zoom = 10; Pls Help! 回答1: Add a shape to your

How to respond to click event with GMap.net for WPF

你离开我真会死。 提交于 2019-12-11 18:59:35
问题 I am writing a WPF program that uses GMapControl. I would like to allow the user to click on the map and add a marker where the user have clicked. I do not want to use the "MouseUp" and "MouseDown" events so that the event will only be caught when the user actually clicks the map and ignore drag and drop. Also, I would like to be able to catch stylus and touch events the same way. I noticed that there is no "click" event. Is there any other best practice to how this should be done? Thnx, 回答1:

GMap marker is placed in wrong position

拟墨画扇 提交于 2019-12-11 14:38:29
问题 Im using winforms and GMap.NET in order to learn how to use it. I have a mouse click action on the Gmap controller and when the user clicks on some place on the map i'm getting the x y coordinates, converting them to latitude and longtitude and then draw the marker on the map. But the marker is not placed in the real mouse cursor location, it looks like the marker has a default place and that's it. I tried to move the mouse to another place and when I clicked the marker was also created at