Jun 09, 2011, 8:38 PM
How to start with EXT.NET.UX
Good afternoon, im trying to insert a gmap in my application by codebehind, and i can't get it. My code is:
Thanks
Ext.Net.UX.GMapPanel GMapPanel1 = new Ext.Net.UX.GMapPanel();
GMapPanel1.ID = "GMapPanel1";
GMapPanel1.Width = 800;
GMapPanel1.Height = 600;
GMapPanel1.MapControls.GLargeMapControl = true;
GMapPanel1.MapControls.GHierarchicalMapTypeControl = true;
GMapPanel1.MapConfiguration.DoubleClickZoom = true;
GMapPanel1.MapConfiguration.ContinuousZoom = true;
GMapPanel1.MapConfiguration.ScrollWheelZoom = true;
Ext.Net.UX.Marker mk = new Ext.Net.UX.Marker();
mk.Lat = 48.858281;
mk.Lng = 2.294533;
GMapPanel1.Markers.Add(mk);
GMapPanel1.CenterMarker.Lat = 48.858281;
GMapPanel1.CenterMarker.Lng = 2.294533;
Ext.Net.Window win = new Ext.Net.Window("mi mapa");
win.ID = "win";
win.Height = 600;
win.Width = 800;
win.Render();
GMapPanel1.Render(win);
And also I tried withwin.Items.Add(GMapPanel1);
I get the error : GMap2 is not definedThanks
Last edited by nailuj-nallim; Jun 09, 2011 at 10:15 PM.
Reason: Now im using Ext.Net.UX.GMapPanel