private void AddMaker(PointLatLng pointLatLng) // adiciona o marcador e mostra informação quando passado mouse por cima do ponto marcado { Bitmap bitmapMaker0 = new Bitmap(Resources.number_0); Bitmap bitmapMaker1 = new Bitmap(Resources.number_1); Bitmap bitmapMaker2 = new Bitmap(Resources.number_2); Bitmap bitmapMaker3 = new Bitmap(Resources.number_3); Bitmap bitmapMaker4 = new Bitmap(Resources.number_4); Bitmap bitmapMaker5 = new Bitmap(Resources.number_5); MakerPoint = new Connections(ID, pointLatLng, false); GetConnections.Add(MakerPoint); Map.Overlays.Add(overlay); RefreshMap(); GMarkerGoogle Marker; switch (MakerPoint.Id) { case 0: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker0) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; case 1: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker1) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; case 2: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker2) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; case 3: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker3) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; case 4: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker4) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; case 5: Marker = new GMarkerGoogle(pointLatLng, bitmapMaker5) { ToolTipText = $"ID: {MakerPoint.Id}" }; overlay.Markers.Add(Marker); break; default: break; } }