I have a view which displays my points normally on a map, and shows a popup with the title and description field when I click on a point. In the popup, the title links to its node.

When I enable clustering on my OpenLayers preset, points which are very close together get clustered as expected, but now *all* popups display, instead of a title hyperlink and a description, the words "undefined undefined".

I expected clustering to automatically display a list of all "titles" without the descriptions, or, in some settings somewhere, allow me to select which fields to display in the popup.

Help much appreciated, thanks.

Comments

strk’s picture

Do you have a custom theme for displaying the informations ? Are you using 'popup' behavior or 'tooltip' behavior ?

alberto56’s picture

Hi thanks for the response, I have a custom theme for my site but did not customize it for OpenLayers. I am using the popup behavior (although the same problem occurs with tooltip). Box select is deactivated (if it is active clustering does not work at all).

json2001’s picture

I'm having this very problem where turning the clustering on shows Undefined Undefined for title and description.

I have done little more than the OpenLayers 2.x tutorial and added some additional points near the others so they will cluster - but no luck either!

tmcw’s picture

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

I'm not sure what's going on here, I think strk's in a better position to debug (but a worse position, since he's on vacation). It would be useful to switch to 2.x-dev, though, since that has the most current clustering code.

alberto56’s picture

Status: Active » Fixed

Thanks for the tip. Here is what I did:

- updated to 2.x-dev
- cleared cache
- tweaked some settings in admin/build/openlayers/presets/my_map_preset/edit (had to select the layers to which I wanted to apply popups and clustering)
- now it works fine!

Cheers,

Albert.

Status: Fixed » Closed (fixed)

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