Hi, I am relatively new to Drupal. I am working on Openlayers maps now and I could succesfully get the openlayers map in a node but see this list of Array elements at the top of the node just above the map, its not an error report but it goes like this:

... (Array, 11 elements)
Called from C:\xampp\htdocs\drupal\sites\all\modules\openlayers\includes\openlayers.render.inc, line 257 Krumo version 0.2a | http://krumo.sourceforge.net

There are multiple rows of such array elements and they are expandable.
I want to get ride of the array elemets displayed above my map, Can any one let me know what to do please.

Thank you,
Benjamin

Comments

tmcw’s picture

Could you upgrade to 2.0-alpha8 or 2.x-dev? The 1.0 version of OpenLayers is no longer actively maintained.

ben2010-1’s picture

Thanks, But the 2.0-alpha8 doesnot have openlayers_behaviours, layers and preset_UI right which are present in 1.x?

tmcw’s picture

The openlayers behaviors and layers modules were merged into the main module but have all of the same features as before. OpenLayers Preset UI was simply renamed OpenLayers UI.

ben2010-1’s picture

I updated to 2.0 alpha8 and the created a preset and am trying to add it to a page and it says the following with out displaying the map

warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal\sites\all\modules\openlayers\includes\openlayers.render.inc on line 23.

Error during map rendering: TypeError: $(this).css("width", map.width).css is not a function

Thanks again
-Ben

ben2010-1’s picture

Now, when I try to add a preset it says:

OpenLayers layers failed the sanity check. See the Drupal log for details

warning: in_array() expects parameter 2 to be array, null given in C:\xampp\htdocs\drupal\sites\all\modules\openlayers\modules\openlayers_ui\openlayers_ui.module on line 636.

Do I need to upgrade some other module other than openlayers?

ben2010-1’s picture

Reinstalling the modules fixed the problem. Thanks again!

tmcw’s picture

Status: Active » Closed (fixed)

Okay, closing this issue: open a new one if there are any other problems.