[mapguide-users] Google Offset in MGOS 3.1.1

mayoAbi_GIS daniele.maggiolo.abitat at gmail.com
Thu Feb 28 09:09:23 PST 2019


Ok, I understand where the problem is!!
Inside the Fusion (compressed or no) there is the same function that was
present in the patch of your post. After removing the following part of code
from Fusion, all started working properly!!

Part of code removed from fusion:

Array.prototype.find = function(searchStr) {
  var returnArray = null;
  for (i=0; i<this.length; i++) {
    if (typeof(searchStr) == 'function') {
      if (searchStr.test(this[i])) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    } else {
      if (this[i]===searchStr) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    }
  }
  return returnArray;
};

Or in the Fusion compressed version:

Array.prototype.find=function(a){var
b=null;for(i=0;i<this.length;i++)"function"==typeof
a?a.test(this[i])&&(b||(b=[]),b.push(i)):this[i]===a&&(b||(b=[]),b.push(i));return
b};

I don't know exactly what that function do. But it is the cause of our
problems!!

Bye.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list