changed to openlayers to global