Fixed map issues for new version of openlayers