I’m using OpenLayers and I am using jsonp to retrieve some external data. However, when I get the data back it gives me this error:
OpenLayers.Protocol.Script.registry[3] is not a function
My returned data looks like this when it fails:
OpenLayers.Protocol.Script.registry[3]({"type": "FeatureCollection","features": [
]}
)
The funny things is, it doesn’t fail everytime… Only randomly. In this instance, only the [3] call failed while the rest of [0] through [10] worked.
Any ideas?
I don’t know what is the exact issue in your case, but usually this happens when the script containing the callback function has not been loaded completely before the response comes.