OpenLayers OpenLayers

Ticket #1924 (closed feature: fixed)

Opened 1 year ago

Last modified 1 year ago

Add a strategy for saving feature edits.

Reported by: tschaub Assigned to: tschaub
Priority: minor Milestone: 2.8 Release
Component: Strategy Version: 2.7
Keywords: Cc: adube@mapgears.com
State: Complete

Description

Save could be called manually, on some event, or on some interval.

Attachments

save.patch (11.6 kB) - added by tschaub on 01/30/09 17:28:36.
adding a save strategy

Change History

01/30/09 17:28:36 changed by tschaub

  • attachment save.patch added.

adding a save strategy

01/30/09 17:31:43 changed by tschaub

  • state set to Review.

This patch adds a save strategy. By default, the save method must be called manually for features to be saved. The strategy can be configured to save features with each modification (auto: true) or can save features on some interval (auto: 10 // seconds).

All tests pass (in FF3).

01/30/09 17:32:02 changed by tschaub

  • owner changed from fredj to tschaub.
  • status changed from new to assigned.

02/03/09 08:41:52 changed by adube

  • cc set to adube@mapgears.com.

Tests with this patch made in IE7, no errors found

02/03/09 09:19:41 changed by adube

Tests made in IE6, no errors found but an error from Control/ScaleLine that I also got from my clean trunk. crschmidt said he got a clean IE6 test on his side so we can ignore this.

02/03/09 17:42:48 changed by ahocevar

  • state changed from Review to Commit.

Great work Tim! I can confirm that tests pass in FF3 and IE7. Please commit.

02/03/09 18:57:27 changed by tschaub

  • status changed from assigned to closed.
  • state changed from Commit to Complete.
  • resolution set to fixed.

(In [8818]) Adding a strategy for saving newly added or modified features. Setting the auto property to true gives you auto-saves with every addition/modification. Setting auto to a time (in seconds) gives periodic auto-save of all new/modified features. By default, the save method must be called to trigger save. r=ahocevar (closes #1924)