[Commits] r2035 - in sandbox/mapgears/geoext.ux/ux/WMSBrowser: examples lib/GeoExt.ux/widgets
commits at geoext.org
commits at geoext.org
Wed Mar 24 15:02:48 CET 2010
Author: adube
Date: 2010-03-24 15:02:48 +0100 (Wed, 24 Mar 2010)
New Revision: 2035
Modified:
sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserExample.js
sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserInWindowExample.js
sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
Log:
wmsbrowser - use of layerStore instead of mapPanel
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserExample.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserExample.js 2010-03-23 19:23:54 UTC (rev 2034)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserExample.js 2010-03-24 14:02:48 UTC (rev 2035)
@@ -23,7 +23,7 @@
allowInvalidUrl: true,
// comment the below line to have a 'textfield' instead of a 'combobox'
serverStore: oServerStore,
- mapPanel: mapPanel
+ layerStore: mapPanel.layers
});
new Ext.Panel({
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserInWindowExample.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserInWindowExample.js 2010-03-23 19:23:54 UTC (rev 2034)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/examples/WMSBrowserInWindowExample.js 2010-03-24 14:02:48 UTC (rev 2035)
@@ -71,7 +71,7 @@
// comment the below line to have a 'textfield' instead of a
// 'combobox'. oServerStore is in ./store.js
serverStore: oServerStore,
- mapPanel: mapPanel
+ layerStore: mapPanel.layers
});
browserWindow = new Ext.Window({
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2010-03-23 19:23:54 UTC (rev 2034)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2010-03-24 14:02:48 UTC (rev 2035)
@@ -36,7 +36,7 @@
useIcons: false,
- mapPanel: null,
+ layerStore: null,
serverStore: null,
@@ -451,15 +451,15 @@
format: "image/png",
transparent: "true"
});
- this.mapPanel.layers.add(copy);
+ this.layerStore.layers.add(copy);
if(this.zoomOnLayerAdded) {
// zoom to added layer extent (in the current map projection)
- this.mapPanel.map.zoomToExtent(
+ this.layerStore.map.zoomToExtent(
OpenLayers.Bounds.fromArray(copy.get("llbbox")).transform(
new OpenLayers.Projection("EPSG:4326"),
new OpenLayers.Projection(
- this.mapPanel.map.getProjection()))
+ this.layerStore.map.getProjection()))
);
}
@@ -482,7 +482,7 @@
},
onWMSCapabilitiesStoreLoad: function(store, records, options) {
- var srs = this.mapPanel.map.getProjection();
+ var srs = this.layerStore.map.getProjection();
var grid = Ext.getCmp('wms_capabilities_grid_panel');
var urlField = Ext.getCmp('wms_url');
More information about the Commits
mailing list