openlayers/ol2

Explicity export OpenLayers as a global

edg2s opened this issue · 0 comments

Currently we rely on 'var OpenLayers' being in the global scope, which may not be true in some minifiers (such as MediaWiki's ResourceLoader). It would be just as easy and more reliable to explicitly export this variable as window.OpenLayers.