Well, if OpenLayers isn't attached to window then it won't work...
You need to use the technique I told you about and add this line to the
script.
window.OpenLayers = OpenLayers;
- Trevor
On 11/8/10 3:54 PM, Jeroen De Dauw wrote:
Hey,
Using only a single resource module seems to fix the scope problem. However,
the script is still breaking. For some reason I'm getting an error in the
OpenLayers lib when I try to create a new Map object in my script, and code
execution stops there. See line 56 in this file [0]. As far as I can tell,
the code I have there is pretty equivalent to what I have in the old
non-RL-using version, which is working. Any idea's there?
[0]
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Maps/includes/se…
Cheers
--
Jeroen De Dauw
*
http://blog.bn2vs.com
*
http://wiki.bn2vs.com
Don't panic. Don't be evil. 50 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69
66 65!
--
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l