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

Pol’s picture

Status: Active » Fixed

Thanks it's fixed !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.