[Mapbender-commits] r8783 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 19 11:57:44 PST 2014
Author: armin11
Date: 2014-02-19 11:57:44 -0800 (Wed, 19 Feb 2014)
New Revision: 8783
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
Bugfix for featureInfo preselect
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2014-02-17 14:33:17 UTC (rev 8782)
+++ trunk/mapbender/http/javascripts/map_obj.js 2014-02-19 19:57:44 UTC (rev 8783)
@@ -973,7 +973,6 @@
var ignoreThisWms = false;
if (typeof ignoreWms !== "undefined" &&
ignoreWms.constructor === Array) {
-
for (var j = 0; j < ignoreWms.length; j++) {
if (ignoreWms[j] == this.wms[i].wms_id) {
ignoreThisWms = true;
@@ -993,11 +992,11 @@
//exchange layer parameter with current layer name
if (typeof(featureInfoRequest) !== 'undefined' && featureInfoRequest !== "" && featureInfoRequest !== false) {
featureInfoRequest = changeURLParameterValue(featureInfoRequest,"LAYERS", this.wms[i].objLayer[j].layer_name);
+ featureInfoRequest = changeURLParameterValue(featureInfoRequest,"QUERY_LAYERS", this.wms[i].objLayer[j].layer_name);
featureInfoObj.request = featureInfoRequest;
- //featureInfoObj.bbox = this.wms[i].objLayer[j].layer_epsg;//array of bbox objects - find the one which have the needed epsg!
var bbox = this.objectFindByKey(this.wms[i].objLayer[j].layer_epsg, "epsg", epsg);
if (bbox) {
- //check if
+ //check if clicked point is in bbox of layer
featureInfoObj.inBbox = this.isPointInBbox(realWorldPoint, bbox);
} else {
featureInfoObj.inBbox = true;
@@ -1042,8 +1041,6 @@
return false;
}
-
-
function changeURLParameterValue(url, param, newValue){
var newAdditionalURL = "";
var tempArray = url.split("?");
More information about the Mapbender_commits
mailing list