First, OpenAid is looking for OpenLayers module folder in:

/sites/all/modules/contrib/openlayers/

When the folder is actually here:

/profiles/openaid/modules/site/all/modules/contrib/openlayers/

So I am getting 404s for openlayers GIFs. Openlayers map blocks just blank.

Also getting 404s for mapbox tiles (see screenshot). Any ideas why this is happening?

Comments

mr.honeyfoot’s picture

Component: Miscellaneous » Code
Category: support » bug

Found solution to openlayers GIF 404s. It's on line 22-23 in 'openaid_projects.openlayers_maps.inc.

Currently openlayers path is:

'image_path' => 'sites/all/modules/contrib/openlayers/themes/default_dark/img/',
'css_path' => 'sites/all/modules/contrib/openlayers/themes/default_dark/style.css',

Change the path to:

'image_path' => 'profiles/openaid/modules/sites/all/modules/contrib/openlayers/themes/default_dark/img/',
'css_path' => 'profiles/openaid/modules/sites/all/modules/contrib/openlayers/themes/default_dark/style.css',

Still getting 404s for all Mapbox tiles. Any ideas?

sillygwailo’s picture

I have a similar issue, which I've submitted to the MapBox project: #1648102: MapBox zoom level set to -1 when deployed with Features, tile URLs 404

mr.honeyfoot’s picture

Problem is with Mapbox World Glass settings. Not sure exactly what the problem is, but changing settings to Mapbox World Dark fixes the problem.

1. Just go here:

admin/structure/openlayers/maps/openaid_projects/edit

2. Click the layers and styles tab. Edit default map and enabled map settings, from glass to anything else.

So OpenAid devs, there's a problem with the Mapbox Glass settings specfically.

rballou’s picture

Thanks for looking into this! Is this issue in addition to the "blank" tiles (caused by the background color of the map block)? I am working on a fix for the blank appearance of that block and that should be in dev soon.

rballou’s picture

Status: Active » Postponed (maintainer needs more info)
mr.honeyfoot’s picture

No problem. In reply to your last question: I think you already solved that. It was an additional issue. But I guess you already know that.

I love what you're doing on this distro. Thank you!!!

rballou’s picture

Status: Postponed (maintainer needs more info) » Fixed

I have pushed a change to the dev branch that should put the files into a less-redundant location when using the make file! Please give that a try.

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