[mapguide-users] Google Offset in MGOS 3.1.1

Alec Bell alecbell4 at gmail.com
Thu Feb 28 17:01:09 PST 2019


Hi from memory the original issue was caused by Google Maps API implementing
the Array.prototype.find as it became standard in ECMA 2015.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find

Commenting out the function at the time resolved the issue but then caused
errors with making selections using shift-click.

To get around that, the Array.prototype.find function (in Mapguide.js) was
reinstated and a check added for the test function.

Seems Google may have changed the array.prototype.find function since then
which is causing the alignment issue to come back?

Commenting out the function in MapGuide.js resolves the issue as you have
found but reintroduced the selection issue and possible other(s) that
haven't been found in testing yet?

 



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


More information about the mapguide-users mailing list