[Mapbender-commits] r2097 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 19 08:40:10 EST 2008
Author: christoph
Date: 2008-02-19 08:40:10 -0500 (Tue, 19 Feb 2008)
New Revision: 2097
Modified:
branches/2.5/http/javascripts/map_obj.js
Log:
jslinted
Modified: branches/2.5/http/javascripts/map_obj.js
===================================================================
--- branches/2.5/http/javascripts/map_obj.js 2008-02-19 13:37:57 UTC (rev 2096)
+++ branches/2.5/http/javascripts/map_obj.js 2008-02-19 13:40:10 UTC (rev 2097)
@@ -54,7 +54,7 @@
gui_wms_featureinfoformat,
gui_wms_exceptionformat,
gui_wms_epsg,
- parseInt(gui_wms_visible),
+ parseInt(gui_wms_visible, 10),
gui_wms_sldurl);
wms_layer[wms.length - 1] = [];
}
@@ -340,7 +340,7 @@
for(var k=0; k< this.objLayer[i].layer_style.length; k++){
if(this.objLayer[i].layer_style[k].name == guiLayerStyle){
var legendUrl = this.objLayer[i].layer_style[k].legendurl;
- if (this.gui_wms_sldurl != "") {
+ if (this.gui_wms_sldurl !== "") {
legendUrl += "&SLD="+escape(this.gui_wms_sldurl);
}
if(legendUrl !=='' && legendUrl !== null && typeof(legendUrl) != 'undefined'){
@@ -449,10 +449,10 @@
break;
}
if(type == "visible") {
- this.objLayer[j].gui_layer_visible = parseInt(value);
+ this.objLayer[j].gui_layer_visible = parseInt(value, 10);
}
else if(type=="querylayer") {
- this.objLayer[j].gui_layer_querylayer = parseInt(value);
+ this.objLayer[j].gui_layer_querylayer = parseInt(value, 10);
}
}
@@ -624,14 +624,14 @@
gui_layer_wms_id,
gui_layer_status,
gui_layer_style,
- parseInt(gui_layer_selectable),
- parseInt(gui_layer_visible),
- parseInt(gui_layer_queryable),
- parseInt(gui_layer_querylayer),
- parseInt(gui_layer_minscale),
- parseInt(gui_layer_maxscale),
+ parseInt(gui_layer_selectable, 10),
+ parseInt(gui_layer_visible, 10),
+ parseInt(gui_layer_queryable, 10),
+ parseInt(gui_layer_querylayer, 10),
+ parseInt(gui_layer_minscale, 10),
+ parseInt(gui_layer_maxscale, 10),
gui_layer_wfs_featuretype );
- var parentLayer = wms[wms.length-1].getLayerByLayerPos(parseInt(layer_parent));
+ var parentLayer = wms[wms.length-1].getLayerByLayerPos(parseInt(layer_parent, 10));
if(parentLayer) {
parentLayer.has_childs = true;
}
@@ -703,9 +703,9 @@
* @type boolean
*/
wms_layer.prototype.checkScale = function(mapObj){
- var minScale = parseInt(this.gui_layer_minscale);
- var maxScale = parseInt(this.gui_layer_maxscale);
- var currentScale = parseInt(mapObj.getScale());
+ var minScale = parseInt(this.gui_layer_minscale, 10);
+ var maxScale = parseInt(this.gui_layer_maxscale, 10);
+ var currentScale = parseInt(mapObj.getScale(), 10);
if(minScale === 0 && maxScale === 0){
return true;
}
@@ -719,7 +719,7 @@
* @param boolean visible visibility on/off
*/
wms_layer.prototype.setVisible = function(visible){
- this.gui_layer_visible = parseInt(visible);
+ this.gui_layer_visible = parseInt(visible, 10);
//console.log("setVisible(%i) for Layer %s",visible, this.layer_name);
};
@@ -729,6 +729,6 @@
*/
wms_layer.prototype.setQueryable = function(queryable){
- this.gui_layer_querylayer = parseInt(queryable);
+ this.gui_layer_querylayer = parseInt(queryable, 10);
//console.log("setQueryable(%i) for Layer %s",queryable, this.layer_name);
};
\ No newline at end of file
More information about the Mapbender_commits
mailing list