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
Comment #1
tmcw CreditAttribution: tmcw commentedCould you upgrade to 2.0-alpha8 or 2.x-dev? The 1.0 version of OpenLayers is no longer actively maintained.
Comment #2
ben2010-1 CreditAttribution: ben2010-1 commentedThanks, But the 2.0-alpha8 doesnot have openlayers_behaviours, layers and preset_UI right which are present in 1.x?
Comment #3
tmcw CreditAttribution: tmcw commentedThe 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.
Comment #4
ben2010-1 CreditAttribution: ben2010-1 commentedI 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
Comment #5
ben2010-1 CreditAttribution: ben2010-1 commentedNow, 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?
Comment #6
ben2010-1 CreditAttribution: ben2010-1 commentedReinstalling the modules fixed the problem. Thanks again!
Comment #7
tmcw CreditAttribution: tmcw commentedOkay, closing this issue: open a new one if there are any other problems.