Local SQL Storage Protocol Example

Open Layers Protocol, Local SQL Sotarage

Shows the usage of the local SQL storage protocol.

Sync

The Sync link destroys the features currently in the layer, reads features from the local SQL storage, and adds them to the layer. Uncommitted features will be lost.

Commit

The Commit link commits to the Gears database the features that are marked as INSERT, UPDATE or DELETE.

Delete

The Delete link marks the selected feature as DELETE. To select a feature click choose the navigation control in the editing toolbar.

Status:

Result:

This example demonstrates the usage of OpenLayers Local SQL Storage protocol to read/create/update/delete features from/to the browser's local database. This specification defines an API for storing data in databases that can be queried using a variant of SQL.