protected void Page_Load(object sender, EventArgs e) { GLatLng latlon = new GLatLng(10.2, 22); GMap1.setCenter(latlon, 4); /****** INFOWINDOWTAB 1 ******/ GInfoWindowTabs iwTabs = new GInfoWindowTabs(); iwTabs.point = latlon; List<GInfoWindowTab> tabs = new List<GInfoWindowTab>(); for (int i = 0; i < 3; i++) { tabs.Add(new GInfoWindowTab("Tab " + i.ToString(), i.ToString())); } iwTabs.tabs = tabs; GMap1.Add(iwTabs); /****** INFOWINDOWTAB 2 ******/ GInfoWindowTabs iwTabs2 = new GInfoWindowTabs(); GMarker icono = new GMarker(new GLatLng(5, 19)); iwTabs2.gMarker = icono; iwTabs2.tabs = tabs; GMap1.Add(iwTabs2); }
protected void Page_Load(object sender, EventArgs e) { GLatLng latlon = new GLatLng(10.2, 22); GMap1.setCenter(latlon, 4); /****** INFOWINDOWTAB 1 ******/ GInfoWindowTabs iwTabs = new GInfoWindowTabs(); iwTabs.point = latlon; List <GInfoWindowTab> tabs = new List <GInfoWindowTab>(); for (int i = 0; i < 3; i++) { tabs.Add(new GInfoWindowTab("Tab " + i.ToString(), i.ToString())); } iwTabs.tabs = tabs; GMap1.Add(iwTabs); /****** INFOWINDOWTAB 2 ******/ GInfoWindowTabs iwTabs2 = new GInfoWindowTabs(); GMarker icono = new GMarker(new GLatLng(5, 19)); iwTabs2.gMarker = icono; iwTabs2.tabs = tabs; GMap1.Add(iwTabs2); }
protected void Page_Load(object sender, EventArgs e) { //مواقع البيوت على الخريطه //some test //مدينة بغداد GLatLng latlng = new GLatLng(33.303708016355245, 44.3720680475235); GLatLng latlng1 = new GLatLng(33.30494095074294, 44.3713653087616); GLatLng latlng2 = new GLatLng(33.306223184015565, 44.37358617782593); //مدينة كربلاء GLatLng latlng3 = new GLatLng(32.615039238431486, 44.03835028409958); GLatLng latlng4 = new GLatLng(32.61548656961024, 44.03770387172699); GLatLng latlng5 = new GLatLng(32.61622759816053, 44.037339091300964); GMap1.enableHookMouseWheelToZoom = true; GMap1.setCenter(latlng, 7, GMapType.GTypes.Hybrid); //اضهار صورة مقربة للموقع //GMarker marker = new GMarker(latlng); //GInfoWindowOptions IWoptions = new GInfoWindowOptions(17, GMapType.GTypes.Hybrid); //GShowMapBlowUp mbUp = new GShowMapBlowUp(marker, false, IWoptions); //gMap.addShowMapBlowUp(mbUp); GInfoWindowTabs iwTabs = new GInfoWindowTabs(); GMarker icono1 = new GMarker(latlng); iwTabs.gMarker = icono1; iwTabs.point = latlng; List<GInfoWindowTab> tabs = new List<GInfoWindowTab>(); tabs.Add(new GInfoWindowTab("معلومات عامه " , "نكتب بعض المعلومات")); tabs.Add(new GInfoWindowTab("صور ", "نضغ بعض الصور")); tabs.Add(new GInfoWindowTab("الإتصال ", "<div class='info' >الإتصال بالمكتب العقاري</div>")); iwTabs.tabs = tabs; GMap1.addInfoWindowTabs(iwTabs); GMarker icono2 = new GMarker(latlng3); GInfoWindow window2 = new GInfoWindow(icono2, "عماره <b>عماره سلام ان شاء الله</b>", false, GListener.Event.click); GMap1.addInfoWindow(window2); GInfoWindowTabs iwTabs2 = new GInfoWindowTabs(); GMarker icono = new GMarker(latlng5); iwTabs2.gMarker = icono; iwTabs2.tabs = tabs; GMap1.addInfoWindowTabs(iwTabs2); }
protected void Page_Load(object sender, EventArgs e) { //مواقع البيوت على الخريطه var table = Helper.GetTable("Select * from House"); GMap1.enableHookMouseWheelToZoom = true; GMap1.setCenter(new GLatLng(33.303708016355245, 44.3720680475235), 7, GMapType.GTypes.Hybrid); foreach (DataRow row in table.Rows) { var h = new House(row); var iwTabs = new GInfoWindowTabs(); var icono1 = new GMarker(h.LatLng); iwTabs.gMarker = icono1; iwTabs.point = h.LatLng; iwTabs.tabs = new List<GInfoWindowTab> { new GInfoWindowTab("Description", h.Html()), new GInfoWindowTab("الإتصال ", "<div class='info' >الإتصال بالمكتب العقاري</div>") }; GMap1.addInfoWindowTabs(iwTabs); } //some test /* //مدينة بغداد var latlng = new GLatLng(33.303708016355245, 44.3720680475235); var latlng1 = new GLatLng(33.30494095074294, 44.3713653087616); var latlng2 = new GLatLng(33.306223184015565, 44.37358617782593); //مدينة كربلاء var latlng3 = new GLatLng(32.615039238431486, 44.03835028409958); var latlng4 = new GLatLng(32.61548656961024, 44.03770387172699); var latlng5 = new GLatLng(32.61622759816053, 44.037339091300964); var iwTabs = new GInfoWindowTabs(); var icono1 = new GMarker(latlng); iwTabs.gMarker = icono1; iwTabs.point = latlng; var tabs = new List<GInfoWindowTab>(); tabs.Add(new GInfoWindowTab("معلومات عامه ", "نكتب بعض المعلومات")); tabs.Add(new GInfoWindowTab("صور ", "نضغ بعض الصور")); tabs.Add(new GInfoWindowTab("الإتصال ", "<div class='info' >الإتصال بالمكتب العقاري</div>")); iwTabs.tabs = tabs; GMap1.addInfoWindowTabs(iwTabs); var icono2 = new GMarker(latlng3); var window2 = new GInfoWindow(icono2, "عماره <b>عماره سلام ان شاء الله</b>", false, GListener.Event.click); GMap1.addInfoWindow(window2); var iwTabs2 = new GInfoWindowTabs(); var icono = new GMarker(latlng5); iwTabs2.gMarker = icono; iwTabs2.tabs = tabs; GMap1.addInfoWindowTabs(iwTabs2); * * */ }