[Commits] r1670 - in sandbox/redlining/ux/RedLining: examples ux/widgets ux/widgets/form
commits at geoext.org
commits at geoext.org
Fri Jan 8 14:38:35 CET 2010
Author: adube
Date: 2010-01-08 14:38:35 +0100 (Fri, 08 Jan 2010)
New Revision: 1670
Modified:
sandbox/redlining/ux/RedLining/examples/RedLiningExample.js
sandbox/redlining/ux/RedLining/ux/widgets/MainControler.js
sandbox/redlining/ux/RedLining/ux/widgets/form/ComplexRedLiningForm.js
Log:
auto map detection with guess()
Modified: sandbox/redlining/ux/RedLining/examples/RedLiningExample.js
===================================================================
--- sandbox/redlining/ux/RedLining/examples/RedLiningExample.js 2010-01-08 10:40:30 UTC (rev 1669)
+++ sandbox/redlining/ux/RedLining/examples/RedLiningExample.js 2010-01-08 13:38:35 UTC (rev 1670)
@@ -12,9 +12,8 @@
});
redLiningTool = new GeoExt.ux.form.ComplexRedLiningForm({
- title: "RedLining Manager",
+ title: "RedLining Manager",
region: "east",
- map: mapPanel.map,
width: 300
});
Modified: sandbox/redlining/ux/RedLining/ux/widgets/MainControler.js
===================================================================
--- sandbox/redlining/ux/RedLining/ux/widgets/MainControler.js 2010-01-08 10:40:30 UTC (rev 1669)
+++ sandbox/redlining/ux/RedLining/ux/widgets/MainControler.js 2010-01-08 13:38:35 UTC (rev 1670)
@@ -40,7 +40,7 @@
}
if(!this.map) {
- alert("error");
+ this.map = GeoExt.MapPanel.guess().map;
}
},
Modified: sandbox/redlining/ux/RedLining/ux/widgets/form/ComplexRedLiningForm.js
===================================================================
--- sandbox/redlining/ux/RedLining/ux/widgets/form/ComplexRedLiningForm.js 2010-01-08 10:40:30 UTC (rev 1669)
+++ sandbox/redlining/ux/RedLining/ux/widgets/form/ComplexRedLiningForm.js 2010-01-08 13:38:35 UTC (rev 1670)
@@ -60,7 +60,7 @@
}
if(!this.map) {
- alert("error");
+ this.map = GeoExt.MapPanel.guess().map;
}
},
More information about the Commits
mailing list