I use Drush Make to build sites with a custom installation profile, and I just noticed that OpenLayers now attempts to automatically download its library to the profile's libraries directory (in the same way that proj4js does). Proj4js works, and successfully downloads its library, but OpenLayers does not. It merely creates an empty openlayers folder.
I think the issue is in the openlayers.make file:
libraries[openlayers][download][type] = http
libraries[openlayers][download][url] = http://openlayers.org/download/OpenLayers-2.12.tar.gz
libraries[openlayers][directory_name] = openlayers
libraries[openlayers][destination] = "libraries"
Notice the [download][type] line is 'http'. In Proj4js (which works), it is 'file'. However, in the semi-official "Full example drupal-org.make file" (http://drupal.org/node/1432374), it says to use 'get'. I'm not sure why 'file' works for Proj4js, but I think for OpenLayers this should be:
libraries[openlayers][download][type] = get
libraries[openlayers][download][url] = http://openlayers.org/download/OpenLayers-2.12.tar.gz
libraries[openlayers][directory_name] = openlayers
libraries[openlayers][destination] = "libraries"
Comments
Comment #1
PolThanks it's fixed !