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

neofit’s picture

So, 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.

strk’s picture

Version: 6.x-2.0-alpha10 » 6.x-2.x-dev
Category: support » bug

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

strk’s picture

I haven't tested, but this seems related:
http://drupal.org/node/800022
@neofit see if the final patch helps your case

strk’s picture

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

strk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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