Hello radioman,
is it possible to give 2 Geopoints to a marker?
I want to draw 2 Icons on the map, but they should work as one Marker. First Position is no problem, but the second position is far away...
do you have some idea?
Imports GMap.NET Imports GMap.NET.WindowsForms Imports GMap.NET.WindowsForms.Markers Public Class Test_Marker Inherits GMapMarker Public Property Point2 As PointLatLng Public Sub New(ByVal p1 As PointLatLng, ByVal p2 As PointLatLng) MyBase.New(p1) Point2 = p2 Size = New System.Drawing.Size(My.Resources.Network_icon_32.Width, My.Resources.Network_icon_32.Height) Offset = New Point(-My.Resources.Network_icon_32.Width / 2, -My.Resources.Network_icon_32.Height / 2) End Sub Public Overrides Sub OnRender(ByVal g As Graphics) g.DrawImageUnscaled(My.Resources.Network_icon_32, LocalPosition.X, LocalPosition.Y) Dim LocalPosition2 As New Point() LocalPosition2.X = Form_Main.MainMap.MapProvider.Projection.FromLatLngToPixel(Point2, Form_Main.MainMap.Zoom).X LocalPosition2.Y = Form_Main.MainMap.MapProvider.Projection.FromLatLngToPixel(Point2, Form_Main.MainMap.Zoom).Y g.DrawImageUnscaled(My.Resources.Network_icon_32, px.X, px.Y) End Sub End Class
bye EDE