Very Low Activity
3
I Use This!
Project Vulnerability Report

News

Analyzed 5 days ago. based on code collected 5 days ago.
Posted 18 days ago by Tanakay
I found this code put labels under markers in Gmap.NET. The problem is that the marker is at a wrong place, whatever position you give to it, it is always at the same default place. Can someone help me? this is the code: public class ... [More] GmapMarkerWithLabel : GMapMarker, ISerializable { private Font font; private GMarkerGoogle innerMarker; public string Caption; public GmapMarkerWithLabel(PointLatLng p, string caption, GMarkerGoogleType type) : base(p) { font = new Font("Arial", 14); innerMarker = new GMarkerGoogle(p, type); Caption = caption; } public override void OnRender(Graphics g) { if (innerMarker != null) { innerMarker.OnRender(g); } g.DrawString(Caption, font, Brushes.Black, new PointF(0.0f, innerMarker.Size.Height)); } public override void Dispose() { if(innerMarker != null) { innerMarker.Dispose(); innerMarker = null; } base.Dispose(); } #region ISerializable Members void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); } protected GmapMarkerWithLabel(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion [Less]
Posted 18 days ago by Tanakay
I found this code put labels under markers in Gmap.NET. The problem is that the marker is at a wrong place, whatever position you give to it, it is always at the same default place. Can someone help me? this is the code: public class ... [More] GmapMarkerWithLabel : GMapMarker, ISerializable { private Font font; private GMarkerGoogle innerMarker; public string Caption; public GmapMarkerWithLabel(PointLatLng p, string caption, GMarkerGoogleType type) : base(p) { font = new Font("Arial", 14); innerMarker = new GMarkerGoogle(p, type); Caption = caption; } public override void OnRender(Graphics g) { if (innerMarker != null) { innerMarker.OnRender(g); } g.DrawString(Caption, font, Brushes.Black, new PointF(0.0f, innerMarker.Size.Height)); } public override void Dispose() { if(innerMarker != null) { innerMarker.Dispose(); innerMarker = null; } base.Dispose(); } #region ISerializable Members void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); } protected GmapMarkerWithLabel(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion [Less]
Posted 18 days ago by fabs
Hi. I recently update a WPF application which was using an older version of GMap.Net to the latest version on NuGet 1.7.1.Since the update, I am getting some errors. It looks like GMapMarker.Route and GMapMarker.RegenerateRouteShape do not exist ... [More] anymore? Is there an alternate implementation that I should be using now?My code is as follows:```GMapMarker routeMarker = new GMapMarker();routeMarker.Route.AddRange((IEnumerable<PointLatLng>)mapRoute.Points);routeMarker.RegenerateRouteShape(gMapControl1);```It complains on the bottom two lines....The errors are:_'GMapMarker' does not contain a definition for 'Route' and no extension method 'Route' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?)__'GMapMarker' does not contain a definition for 'RegenerateRouteShape' and no extension method 'RegenerateRouteShape' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?)_ [Less]
Posted 18 days ago by fabs
Hi. I recently update a WPF application which was using an older version of GMap.Net to the latest version on NuGet 1.7.1.Since the update, I am getting some errors. It looks like GMapMarker.Route and GMapMarker.RegenerateRouteShape do not exist ... [More] anymore? Is there an alternate implementation that I should be using now?My code is as follows:```GMapMarker routeMarker = new GMapMarker();routeMarker.Route.AddRange((IEnumerable<PointLatLng>)mapRoute.Points);routeMarker.RegenerateRouteShape(gMapControl1);```It complains on the bottom two lines.... [Less]
Posted 18 days ago by fabs
Hi. I recently update a WPF application which was using an older version of GMap.Net to the latest version on NuGet 1.7.1. Since the update, I am getting some errors. It looks like GMapMarker.Route and GMapMarker.RegenerateRouteShape do not exist ... [More] anymore? Is there an alternate implementation that I should be using now? My code is as follows: GMapMarker routeMarker = new GMapMarker(); routeMarker.Route.AddRange((IEnumerable<PointLatLng>)mapRoute.Points); routeMarker.RegenerateRouteShape(gMapControl1); It complains on the bottom two lines.... The errors are: 'GMapMarker' does not contain a definition for 'Route' and no extension method 'Route' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?) 'GMapMarker' does not contain a definition for 'RegenerateRouteShape' and no extension method 'RegenerateRouteShape' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?) [Less]
Posted 18 days ago by fabs
Hi. I recently updated a WPF application which was using an older version of GMap.Net to the latest version on NuGet (version 1.7.1). Since the update, I am getting some errors. It looks like GMapMarker.Route and GMapMarker.RegenerateRouteShape do ... [More] not exist anymore? Is there an alternate implementation that I should be using now? My code is as follows: GMapMarker routeMarker = new GMapMarker(); routeMarker.Route.AddRange((IEnumerable<PointLatLng>)mapRoute.Points); routeMarker.RegenerateRouteShape(gMapControl1); It complains on the bottom two lines.... The errors are: 'GMapMarker' does not contain a definition for 'Route' and no extension method 'Route' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?) 'GMapMarker' does not contain a definition for 'RegenerateRouteShape' and no extension method 'RegenerateRouteShape' accepting a first argument of type 'GMapMarker' could be found (are you missing a using directive or an assembly reference?) [Less]
Posted 20 days ago by rame2040
Hi I like this mapping . I just need your help,to get the latitude and longitude of a marker in a button click and save the multiple markers latitude and longitude in a text file. private void button1_Click(object sender, EventArgs e) { marker1 (lat,long); marker2 (lat,long)...... save (lat,long) in a text file }
Posted 23 days ago by NDennis
Just realized I should have include this: public class Win32 { [DllImport("User32.Dll")] public static extern long SetCursorPos(int x, int y); [DllImport("User32.Dll")] public static extern ... [More] bool ClientToScreen(IntPtr hWnd, ref POINT point); [StructLayout(LayoutKind.Sequential)] public struct POINT { public int x; public int y; } } [Less]
Posted 24 days ago by NDennis
I kept having problems with ViewArea not being accurate and not updating after zooming. Perhaps because I use factions to zoom. So I created something that works for me everytime. I'm posting it here in case Radioman can use it. private RectLatLng ... [More] MyViewArea(GMapControl gmc) { RectLatLng map_area = gMapControl1.ViewArea; // KEEP HERE before MyViewArea code - resets something? RectLatLng r = new RectLatLng(); Point pts = PointToScreen(gmc.Location); Win32.POINT p = new Win32.POINT(); p.x = -1; // -1 because of the GMapControl border is shown? p.y = -1; Win32.ClientToScreen(gmc.Handle, ref p); PointLatLng gtop = new PointLatLng(gmc.FromLocalToLatLng(p.x - pts.X, p.y - pts.Y - 1).Lat, gmc.FromLocalToLatLng(p.x - pts.X, p.y - pts.Y - 1).Lng); p.x = gmc.Width - 3; // not sure why - 3 but partly because of the border p.y = gmc.Height - 3; Win32.ClientToScreen(gmc.Handle, ref p); PointLatLng gleft = new PointLatLng(gmc.FromLocalToLatLng(p.x - pts.X, p.y - pts.Y - 1).Lat, gmc.FromLocalToLatLng(p.x - pts.X, p.y - pts.Y - 1).Lng); r.Lng = gtop.Lng; r.Lat = gtop.Lat; r.WidthLng = (gleft.Lng - gtop.Lng); r.HeightLat = (gtop.Lat - gleft.Lat); return (r); } [Less]
Posted 24 days ago by ColinA
Hi I can get the route between 2 point no problems with openstreetmap, can you add waypoints and force the route from start to end ie delivery route or give it a starting point and several location to get the best route Regards Colin