Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2010 at 16:08 UTC
Updated:
12 Aug 2010 at 16:40 UTC
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
Comment #1
strk commentedDo you have a custom theme for displaying the informations ? Are you using 'popup' behavior or 'tooltip' behavior ?
Comment #2
alberto56 commentedHi 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).
Comment #3
json2001 commentedI'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!
Comment #4
tmcw commentedI'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.
Comment #5
alberto56 commentedThanks 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.