Hi!
When I try to add cloudmade layer I received this text: "OpenLayers layers failed the sanity check. See the Drupal log for details".
And few pages (!!!) of errors in Drupal log.

Comments

tmcw’s picture

Version: 6.x-2.0-alpha2 » 6.x-2.x-dev
Status: Active » Needs review

Try the most recent dev version, I've just committed many changes related to CloudMade and layer types in general which should alleviate this issue.

Daniel A. Beilinson’s picture

Unfortunately, no.
I received this warnings and errors:

Location admin/settings/openlayers/layers
Referrer admin/settings/openlayers
Message Layer not found.
Severity error

Location admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Referrer admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Message array_keys() [function.array-map]: Argument #2 should be an array in /home/mysite.com/public_html/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 50.
Severity error

Location admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Referrer admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Message array_map() [function.array-map]: Argument #2 should be an array in /home/mysite.com/public_html/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 50.
Severity error

Location admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Referrer admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Message rsort() expects parameter 1 to be array, null given in /home/mysite.com/public_html/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 51.
Severity error

Location admin/settings/openlayers/layers/cloud_made_night/edit
Referrer admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Message Layer cloud_made_night does not have a projection set.
Severity notice

Location admin/settings/openlayers/layers/cloud_made_night/edit
Referrer admin/settings/openlayers/layers/add/openlayers_layer_type_cloudmade
Message Layer not found.
Severity error

Location admin/reports/dblog
Referrer admin/settings/openlayers/layers/cloud_made_night/edit
Message preg_match() expects parameter 2 to be string, array given in /home/mysite.com/public_html/includes/bootstrap.inc on line 777.
Severity error

Daniel A. Beilinson’s picture

By the way, update to dev version kills "Zoom to Layer" feature.

tmcw’s picture

Did you try resaving the CloudMade layer? You'll need to do that. I don't think there are any major changes to Zoom To Layer. What do you mean by kills?

Daniel A. Beilinson’s picture

Tom, I just tried to create new CloudMade layer.
About zoom: it's happend with my old OSM layer. I have view with preset which have zoom to layer feature and it's stopped working after update. I need to resave preset?

tmcw’s picture

Are you using a local copy of OpenLayers? I've identified a bad interaction between CloudMade and that setting so I'd recommend you test with remote OpenLayers as well (just posted a ticket for that problem). Are you saying the zoom to layer feature isn't working, or that the preset entirely isn't working? And can you get me any Javascript debugging information? It's near-impossible to know exactly what's going on without debug information.

Daniel A. Beilinson’s picture

Hi! About CloudMade. I still have this with latest dev and hosted version of the OpenLayers library:

warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 50.
warning: array_map() [function.array-map]: Argument #2 should be an array in /Applications/MAMP/htdocs/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 50.
warning: rsort() expects parameter 1 to be array, null given in /Applications/MAMP/htdocs/sites/all/modules/openlayers/modules/openlayers_ui/includes/openlayers_ui.layers.inc on line 51.

About Zoom to Layer feature:

Error: syntax error
Source File: http://localhost:8888/sites/all/modules/openlayers/includes/behaviors/js...
Line: 24
Source Code:
}
Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: http://openlayers.org/api/theme/default/style.css
Line: 234
Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: http://openlayers.org/api/theme/default/style.css
Line: 242

tmcw’s picture

Hmm, there was an error in the Javascript for Zoom To Layer, and I just committed a fix. Not sure about the CloudMade problem, I'll look into it.

Daniel A. Beilinson’s picture

Hi! I have one repeating warning now:

Warning: Expected color but found 'undefined'. Error in parsing value for 'fill'. Declaration dropped.
Source File: http://localhost:8888/?q=node/6
Line: 0

And it isn't working now.

tmcw’s picture

Are you using a custom style on your map?

Daniel A. Beilinson’s picture

Yes, I'm using maki icons.

zzolo’s picture

Component: OpenLayers Layers » OpenLayers API

Hey Daniel, this hasnt been touched in awhile, are you still seeing errors?

ckreutz’s picture

Update: I am using the 6.x-1.0-rc1 version and that works now fine. I did not try it with the 6.x-2.x-dev version. Apologies for the confusion.

Cannot get cloudmade running either with 6.x-2.x-dev version. Any newer version does not work due memory issue on localhost (!). I have tried with local openlayers.js library and with http version. Also with cloudmade style and without. The map seems to load but then remains without tiles. I cannot get any error in logs. Where can I look for errors?

tmcw’s picture

What do you mean by 'cloudmade style'? And the map loads, but you get red tiles? Can you try using FireBug or an equivalent to see if it is requesting tiles that are 404'ing? Or using FireBug to see if there is a javascript error?

ckreutz’s picture

In my case the Style ID was wrong and the result was an emtpy map. All fine now.

tmcw’s picture

Status: Needs review » Fixed

Marking as fixed; Daniel, reopen if you're still experiencing problems.

Status: Fixed » Closed (fixed)

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