Currently you can edit the WKT field and it saves your changes but they don't get updated on the map until you save and edit again.

It would be awesome if the openalyers map widget updated the map layer when the WKT field loses focus.

Comments

tmcw’s picture

Patches accepted; this isn't a high priority.

shunting’s picture

+1

anarcat’s picture

I agree this would be nice to have. Right now, in fact, this are pretty bad here because if you screw up in your first edit, you can't actually change the coordinates manually in there, and have to destroy your content and recreate it to fix your mistake (because when you save, the field is reset to where the map is set...)

tmcw’s picture

@anarcat: up for working on a patch?

anarcat’s picture

I unfortunately don't have much time for this... :/ But I can test one, for sure!

zzolo’s picture

This would be super cool, but due to our focuses on the D7 version and the CCK field getting removed in the D7 version, this doesn't have a high priority.

stephanb’s picture

I also would like to see this feature in a future release of openlayers. Would make an awesome module legendary ;)
Meanwhile, I have found a workaround using a custom module that adds a latitude and longitude field to my form. It also adds a custom submit button that calls a special function on submit that builds a WKT string with values taken from the newly added latitude and longitude field, then changes form_state['values']['field_apt_coord']['0']['openlayers_wkt'] and forces the form to rebuild.

This in fact updates the openlayers WKT widget value and also the point on the map. Unfortunately, the map does not get re-centered to the new value. Is there any way to accomplish this?

Cheers, Stephan

anarcat’s picture

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

Actually, what I reported here doesn't occur anymore in beta1, so this is partly fixed for me.

zzolo’s picture

Component: OpenLayers CCK » OL API
Status: Active » Closed (won't fix)

Would love to see, but no one is currently actively working on the 6.x version. Patches are welcome. Going to close for now, re-open if needed.