henrichen / zkgmapsz

Automatically exported from code.google.com/p/zkgmapsz
0 stars 0 forks source link

Loading mask not cleared without network #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Loading mask should be cleared after 10 second (loading failed) but it is not.

reproduce:

write a page contains a gmap, disable network (e.g., simply setup an invalid 
proxy exclude localhost)

workaround:

modify callback of loadAPIs as below:

gmapsGapi.loadAPIs(wgt, function() {
        try {
            wgt._tryBind(dt, skipper, after);
        } catch (err) {
            var mopts = wgt._maskOpts;
            if (mopts && mopts._mask && mopts._mask.mask)
                gmapsGapi.clearMask(wgt, wgt._maskOpts);
        }
    },
    'Loading Google Ajax APIs');

fix:

can either simply apply the workaround above, or clear mask in 'function 
waitUntil' of gapi.js

Original issue reported on code.google.com by benbai...@gmail.com on 27 Nov 2013 at 4:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r62.

Original comment by raymondchao@potix.com on 29 Nov 2013 at 3:46