Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The code is an abomination, in fact I've not seen a worse add-on in five years of working with and helping users of Version 2. It overwrites GMap (part of the Version 2 API to provide compatibility with Version 1) with no redeclaration. The error you're getting is a direct result of a hack to minified code: this was bound to fail at some point and should never have been implemented.</p> <p>The best thing you can do is to remove the <code>var digraph</code> line and then redefine the new method <code>GMap2.prototype.addOverlays</code> which follows it. That will allow the code to use the API's <code>addOverlay()</code> function and should eliminate the problem.</p> <pre><code>GMap2.prototype.addOverlays = function(a) { var i = a.length; while (i--) { this.addOverlay(a[i]); } </code></pre> <p>It appears that <code>addOverlays()</code> takes an array of overlays. The existing method attempts to add them directly to the <em>internal</em> array of overlays, which has moved. The suggested method simply uses GMap2's own <code>addOverlay()</code> method to add each member of the array of objects. Thus we use an exposed method and don't try and hijack the minified code of the API &mdash; if we did that again, it would almost certainly break again.</p> <hr> <p><code>GMarker.prototype.openInfoWindowFX</code> and <code>GMarker.prototype.updateInfoWindow</code> are additions to GMarker and unlikely to cause problems (especially if they currently work), although even they use properties of GMarker -- which isn't really recommnded.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload