Error during map rendering: TypeError: bounds.southwest is undefined
This error appears in FireFox or IE when editing the cck field or, viewing the node content within a panel.
Chrome seems to be ok....
I am not using views....
any suggestions?
Thanks,
Chris
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | typeError_boundsSW_ct.txt | 3.53 KB | kbk |
| #5 | typeError_boundsSW_preset.txt | 1.64 KB | kbk |
Comments
Comment #1
glitz commentedComment #2
tmcw commentedWhat changed? Please add more information: this is a forum for helping everyone.
Comment #4
glitz commentedall i did here was uninstall and reinstall mod. not sure what was causing this, possibly a misconfig. but the default settings seemed to work fins after a reinstall
Comment #5
kbk commentedI just experienced this problem and I believe it is due checking "Zoom to location" and not entering a "Geocoder query" when editing the preset. I have attached the content type and map preset exports with which I can reproduce the problem.
To reproduce:
1) Import the Content type Location (typeError_boundsSW_ct.txt) and the OL preset (typeError_boundsSW_preset.txt).
2) Go to /node/add/location
- map should not render but instead give "Error during map rendering: TypeError: bounds.southwest is undefined"
To get rid of bug:
1) Modify the preset (admin/build/openlayers/presets/modified_default/edit)
- uncheck Zoom to location
2) Clear cache
3) Refresh /node/add/location
The problem could be considered user error because you're checking Zoom to location but not specifying a location to zoom to. When I did this, I didn't fully understand Zoom to location and figured it would throw a "Field Required" error if something really needed to be in the Geocoder query field.
Other Info: Drupal 6.20, CCK 3.dev, OpenLayers 6.x-2.0-alpha10
Comment #6
tmcw commentedIs this not a bug in OpenLayers Geocoder?
Comment #7
kbk commentedI believe you are correct. The Zoom to Layer option isn't even available if GeoCoder is disabled. Changing project.
Comment #8
steinmb commentedNeeds to get retested with the latest dev.
Comment #9
steinmb commented@kbk able to test this on with latest dev. release?
Comment #10
steinmb commentedTested on my local sandbox but not able to trigger the error.
Comment #11
kbk commented@steinmb - I'm not currently using this module and can't test right now. I stand by my step-by-step instructions though so others should be able to easily test.
Comment #12
steinmb commentedThanx for getting back to me :) I followed your steps in #10 on two different installations, and servers but was unable to provoke the bug. Omitting giving 'zoom to layer' does nothing. Also checked the code and there is a empty init value so leaving it empty should be safe. I believe that is the reason why the form validate.
Comment #13
steinmb commentedNot able to reproduce and no activity. Closing issue