public void MarkerEkleTek_eski(Nokta n1, GMarkerGoogleType markerTip, string aciklama, double oncelik) { //harita üzerine markerlerı ekler PointLatLng myNokta = new PointLatLng(n1.lat, n1.lon); GMapMarker myMarker = new GMarkerGoogle(myNokta, markerTip); myMarker.ToolTipText = aciklama; myMarkerList.Add(new MarkerBilgi(myMarker, "adres", "adi", "soyadi", aciklama, oncelik));//markerları liste olarak ta tutmak için GMapMarkerRect rec = new GMapMarkerRect(myMarker.Position); GMapOverlay markerlar = new GMapOverlay(); markerlar.Markers.Add(myMarker); //markerı ekler map.Overlays.Add(markerlar); }
public void MarkerEkleTek(Nokta n1, GMarkerGoogleType markerTip, string hastaID, string aciklama, double oncelik) { // GMarkerGoogle m= new GMarkerGoogle(n1,) //harita üzerine markerlerı ekler string resimyol = @"markers\" + hastaID + ".png"; Bitmap resmim = new Bitmap(resimyol); PointLatLng myNokta = new PointLatLng(n1.lat, n1.lon); GMarkerGoogle myMarker = new GMarkerGoogle(myNokta, resmim); myMarker.ToolTipText = aciklama; myMarkerList.Add(new MarkerBilgi(myMarker, "adres", "adi", "soyadi", aciklama, oncelik));//markerları liste olarak ta tutmak için GMapMarkerRect rec = new GMapMarkerRect(myMarker.Position); GMapOverlay markerlar = new GMapOverlay(); markerlar.Markers.Add(myMarker); //markerı ekler map.Overlays.Add(markerlar); }