<div dir="ltr"><div>Hello, people!</div><div>The problem came back because of Google!</div><div>They do not pity us !!!!</div><div>When you call the google map api you can establish a version that you want. In this way we understood that as Mapguide worked in version 3.31, we were guaranteed forever ... Well, here is a song that says that forever, always ends ... because it's over!</div><div>The policy of api versions of Google maps and I believe the others too, eliminating these very old versions as the new ones come up ... anyway, now the oldest available is version 3.32 where Mapguide did not work right.</div><div><br></div><div>There was an effort by Jackie to review and create version 3.1.1 of Mapguide and then immediately released a Fusion patch (available on the installation page) that would solve this issue.</div><div><br></div><div>But now, testing better I noticed that in this review there was a problem, which is an easy solution (in theory):</div><div>Jackie I believe you would just review the following code fragment from fusion.js for the code corrected below:</div><div><br></div><div><div>Array.prototype.find = function(searchStr) {</div><div> var returnArray = null;</div><div> for (i=0; i<this.length; i++) {</div><div> if (typeof(searchStr) == 'function') {</div><div> if (typeof(searchStr.test) == 'function') { </div><div> if (searchStr.test(this[i])) {</div><div> if (!returnArray) { returnArray = [] }</div><div> returnArray.push(i);</div><div> } </div><div> }</div><div> } else {</div><div> if (this[i]===searchStr) {</div><div> if (!returnArray) { returnArray = [] }</div><div> returnArray.push(i);</div><div> }</div><div> }</div><div> }</div><div> return returnArray;</div><div>};</div></div><div><br></div><div><span style="color:rgb(33,33,33);font-family:arial,sans-serif;font-size:16px;white-space:pre-wrap">In the original version only this 'if' and '&&' was modified by two 'ifs'</span><br></div><div><br></div><div> if (typeof(searchStr) == 'function' && typeof(searchStr.test) == 'function') {<br></div><div><br></div><div><br class="gmail-Apple-interchange-newline"><span style="color:rgb(33,33,33);font-family:arial,sans-serif;font-size:16px;white-space:pre-wrap">I think the javascript ends up testing both sides, and in the second part of 'and' gives error.
This way it is not necessary to inform the version of the api of google map in the call of mapguide. If you request an old version that does not exist, google api generates a retiredversion message and assumes the oldest version available.
No further</span><br></div><div>Seba</div><div><div><br></div></div><div><br><br><div class="gmail_quote"><div dir="ltr">Em qui, 16 de ago de 2018 às 14:09, BMason <<a href="mailto:masonb12@telus.net">masonb12@telus.net</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sorry Jackie I am still unsure about what action to take. 4 months ago we<br>
had the same problem and it was resolved by using this string in the xml<br>
editor:<br>
<GoogleScript><a href="http://maps.google.com/maps/api/js?v=3.3&sensor=true&client=" rel="noreferrer" target="_blank">http://maps.google.com/maps/api/js?v=3.3&sensor=true&client=</a></GoogleScript> <br>
Today, if we remove all google map layers and just use open layers, we have<br>
no errors. So it is really pointing to google map layers again (I think). <br>
Are you saying that I need to use MapGuideMaestro 6.0m8 and debug? or do we<br>
need to use a different google maps api? Otherwise I will definitely need<br>
more help with resolving this. All of our production maps are down right<br>
now. thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html</a><br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a></blockquote></div></div></div>