Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers CCK
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2010 at 07:28 UTC
Updated:
11 Nov 2010 at 09:00 UTC
Hello, I created a new content type with an Openlayers WKT field. When I create a new node, I can indeed draw features (polylines, polygons, etc.) on the map and save them, but when I display the WKT field below the map and try to modify/add coordinates (while editing the node), these modifcations are never saved. Is this normal and how can I allow direct input of coordinates (polygons, polylines, etc.) in the WKT field? I have namely lists of coordinates (but not in GPX format) that I would like to add manually in my node, without using the map. How can I do this? Thanks for your help.
Comments
Comment #1
neofit commentedSo, nobody having this problem too? Actually the problem is that I am not sure whether this limitation (i.e. not being able to edit manually the WKT field) is normal or not. If it is, then how else can I achieve what I want (e.g. defining a polygon using only the coordinates of its points)? If it is not, then how can I fix this issue so that it works? Thanks a lot for your help on this.
Comment #2
strk commentedConfirmed. What you type manually won't be reflected on map nor saved to content.
I'd call it a bug.
Neofit: willing to try at fixing it ? You might need to look at both the openlayers_cck module AND the drawfeatures behavior
Comment #3
strk commentedI haven't tested, but this seems related:
http://drupal.org/node/800022
@neofit see if the final patch helps your case
Comment #4
strk commentedI tested applying patch in #800022 and with that I do am able to save manually-written WKT.
Just I don't see it immediately drawn, but it's saved.
Comment #5
strk commentedCommitted: http://drupal.org/cvs?commit=442922