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

Comments

glitz’s picture

Status: Active » Fixed
tmcw’s picture

What changed? Please add more information: this is a forum for helping everyone.

Status: Fixed » Closed (fixed)

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

glitz’s picture

all 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

kbk’s picture

Project: OpenLayers Geocoder » Openlayers
Version: 6.x-2.x-dev » 6.x-2.0-alpha10
Component: Code » OpenLayers CCK
Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new1.64 KB
new3.53 KB

I 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

tmcw’s picture

Version: 6.x-2.0-alpha9 » 6.x-2.0-alpha10
Category: support » bug
Status: Closed (fixed) » Active

Is this not a bug in OpenLayers Geocoder?

kbk’s picture

Project: Openlayers » OpenLayers Geocoder
Version: 6.x-2.0-alpha10 » 6.x-2.0-alpha5
Component: OpenLayers CCK » Code

I believe you are correct. The Zoom to Layer option isn't even available if GeoCoder is disabled. Changing project.

steinmb’s picture

Version: 6.x-2.0-alpha5 » 6.x-2.x-dev

Needs to get retested with the latest dev.

steinmb’s picture

Status: Active » Postponed (maintainer needs more info)

@kbk able to test this on with latest dev. release?

steinmb’s picture

Tested on my local sandbox but not able to trigger the error.

kbk’s picture

@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.

steinmb’s picture

Project: Openlayers » OpenLayers Geocoder
Version: 6.x-2.0-alpha10 » 6.x-2.x-dev
Component: OpenLayers CCK » Code
Status: Active » Postponed (maintainer needs more info)

Thanx 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.

steinmb’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Not able to reproduce and no activity. Closing issue