dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14974
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5235: WMS legend now works for both wms.xml and wmsfigmap.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 5235 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-11-29 14:45:18 +0100
message:
WMS legend now works for both wms.xml and wmsfigmap.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/global.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/javascript/global.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/global.js 2011-11-22 13:58:34 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/global.js 2011-11-29 13:44:05 +0000
@@ -445,7 +445,8 @@
},
convertWMSUrlToLegendString: function(url) {
- return url.replace('.xml','figmap?REQUEST=GetLegendGraphic');
+ var str = url.replace('wms.xml','wmsfigmap');
+ return str += '?REQUEST=GetLegendGraphic';
},
createOverlay: function(name, fillColor, fillOpacity, strokeColor, strokeWidth, url) {