dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10153
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2786: Improved code.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 2786 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-01-31 15:20:44 +0100
message:
Improved code.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js 2011-01-31 11:21:00 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js 2011-01-31 14:19:30 +0000
@@ -319,7 +319,7 @@
G.vars.map.layers[i].setZIndex(index);
}
}
- },
+ }
};
G.vars = {
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-31 11:21:00 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-31 14:19:30 +0000
@@ -1945,36 +1945,6 @@
},
contextMenuBaselayer: new Ext.menu.Menu({
items: [
- /*{
- text: 'Show WMS legend',
- iconCls: 'menu-layeroptions-wmslegend',
- handler: function(item, e) {
- var layer = item.parentMenu.contextNode.layer;
-
- var frs = layer.getFullRequestString({
- REQUEST: "GetLegendGraphic",
- WIDTH: null,
- HEIGHT: null,
- EXCEPTIONS: "application/vnd.ogc.se_xml",
- LAYERS: layer.params.LAYERS,
- LAYER: layer.params.LAYERS,
- SRS: null,
- FORMAT: 'image/png'
- });
-
- var wmsLayerLegendWindow = new Ext.Window({
- title: 'WMS Legend: <span style="font-weight:normal;">' + layer.name + '</span>',
- items: [
- {
- xtype: 'panel',
- html: '<img src="' + frs + '">'
- }
- ]
- });
- wmsLayerLegendWindow.setPagePosition(Ext.getCmp('east').x - 500, Ext.getCmp('center').y + 50);
- wmsLayerLegendWindow.show();
- }
- },*/
{
text: 'Opacity',
iconCls: 'menu-layeroptions-opacity',
@@ -2198,16 +2168,6 @@
}
},
bbar: [
-/* {
- xtype: 'button',
- id: 'baselayers_b',
- text: 'Base layers',
- iconCls: 'icon-add',
- handler: function() {
- Ext.getCmp('baselayers_w').setPagePosition(Ext.getCmp('east').x - (G.conf.window_width + 15 + 5), Ext.getCmp('center').y + 41);
- Ext.getCmp('baselayers_w').show();
- }
- },*/
{
xtype: 'button',
id: 'overlays_b',
@@ -2457,12 +2417,11 @@
height: 65,
anchor: '100%',
bodyStyle: 'padding-left: 4px;',
- items:
- [
+ items: [
new Ext.form.Label({
id: 'featureinfo_l',
text: G.i18n.no_feature_selected,
- style: 'color:#666'
+ style: 'color:#666666'
})
]
},
@@ -2528,9 +2487,22 @@
pointLayer.svgId = G.vars.parameter.overlays.length ?
document.getElementsByTagName('svg')[G.vars.parameter.overlays.length + 1].id : document.getElementsByTagName('svg')[1].id;
}
+
+ Ext.getCmp('mapdatetype_cb').setValue(G.vars.mapDateType.value);
+
+ choropleth.prepareMapViewValueType();
+ symbol.prepareMapViewValueType();
+
+ choropleth.prepareMapViewDateType();
+ symbol.prepareMapViewDateType();
+
+ choropleth.prepareMapViewLegend();
+ symbol.prepareMapViewLegend();
}
}
});
+
+ G.vars.map.addControl(new OpenLayers.Control.ZoomBox());
G.vars.map.addControl(new OpenLayers.Control.MousePosition({
displayClass: 'void',
@@ -2543,27 +2515,8 @@
div: $('overviewmap'),
size: new OpenLayers.Size(188, 97),
minRectSize: 0,
- layers: [
- new OpenLayers.Layer.WMS(
- "World",
- "http://labs.metacarta.com/wms/vmap0",
- {layers: "basic"}
- )
- ]
+ layers: [new OpenLayers.Layer.OSM.Osmarender("OSM Osmarender")]
}));
- G.vars.map.addControl(new OpenLayers.Control.ZoomBox());
-
- Ext.getCmp('mapdatetype_cb').setValue(G.vars.mapDateType.value);
-
- choropleth.prepareMapViewValueType();
- symbol.prepareMapViewValueType();
-
- choropleth.prepareMapViewDateType();
- symbol.prepareMapViewDateType();
-
- choropleth.prepareMapViewLegend();
- symbol.prepareMapViewLegend();
-
}});
});