[Mapbender-commits] r9705 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 9 04:59:56 PST 2017


Author: armin11
Date: 2017-03-09 04:59:56 -0800 (Thu, 09 Mar 2017)
New Revision: 9705

Modified:
   trunk/mapbender/lib/mb.ui.displayKmlFeatures.js
Log:
Fix - disable console log

Modified: trunk/mapbender/lib/mb.ui.displayKmlFeatures.js
===================================================================
--- trunk/mapbender/lib/mb.ui.displayKmlFeatures.js	2017-03-08 14:22:29 UTC (rev 9704)
+++ trunk/mapbender/lib/mb.ui.displayKmlFeatures.js	2017-03-09 12:59:56 UTC (rev 9705)
@@ -181,7 +181,7 @@
         $.each(self._kmls, function(_, itm) {
             $.each(itm.data.features, function(k, v) {
                 if (ispoint) {
-                    console.log( "isPoint" );
+                    //console.log( "isPoint" );
                     self.matchFeatureToPoint(v, clickPoint, matchedIds, res, itm, wgspt, k);
                 } else {
                     self.matchFeatureToBox(v, {
@@ -253,7 +253,7 @@
     },
 
     matchFeatureToPoint: function(feat, clickPoint, matchedIds, res, itm, wgspt, idx) {
-        console.log( "point" );
+        //console.log( "point" );
         if (feat.geometry.type.match(/point/i)) {
             var pt = Proj4js.transform(this.wgs84, this.targetProj, {
                 x: feat.geometry.coordinates[0],
@@ -282,7 +282,7 @@
 
     matchFeatureToBox: function(feat, wgsbox, matchedIds, itm, idx) {
         if (feat.geometry.type.match(/point/i)) {
-            console.log( feat.geometry );
+            //console.log( feat.geometry );
             if (this.pointInBox(feat.geometry.coordinates[0], feat.geometry.coordinates[1], wgsbox.min.x, wgsbox.max.x, wgsbox.min.y, wgsbox.max.y)) {
                 matchedIds.push({
                     url: itm.url,
@@ -1076,7 +1076,7 @@
                 };
                 self.renderLabel(canvas, feature);
             } catch (e) {
-                console && console.log('Problem rendering feature', feature, e)
+                //console && console.log('Problem rendering feature', feature, e)
             }
         }
     },



More information about the Mapbender_commits mailing list