When you place two WKT fields on a node with 2 maps to edit the fields, the last map defines behaviors for both maps. It looks like the javascript options: Drupal.settings.openlayers.maps is written twice, one for each map, with the second map overwriting the settings for the first.

When I add points to the first map, it places the data for those points in the second map's WKT fields, leaving the first blank.

What I'm trying to accomplish (in case there is another way)
I have a node type where I need to collect two different kinds of data. My WKT field is searchable through views Openlayers Proximity which doesn't allow me to place geometry the same WKT field as the points, so I've created two different WKT fields on the node edit form. Ideally the user would use the same map, but Polygons would be stored in one WKT field and points another.

LMK if I can provide any more information.

Comments

zzolo’s picture

Well, you're issue may be with OL Proximity, as that is the widget that is not allowing you to input more data.

But, this does sound like an issue. Unfortunately, my time for the 6.x version and OL CCK is pretty low these days. But hopefully can get to this eventually. Patches welcome.

zzolo’s picture

Issue summary: View changes

EDIT: Addions to problem description. Also, the javascript options do not seem to be written over, my mistake. The behavior supports this though.

ken-g’s picture

Issue summary: View changes
Status: Active » Closed (outdated)