add warning comment to wfs-t example. thanks for suggestion, o anonymous user. (Closes #1311)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -16,6 +16,20 @@
|
|||||||
{layers: 'topp:tasmania_state_boundaries'}
|
{layers: 'topp:tasmania_state_boundaries'}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Word to the Wise from an anonymous OpenLayers hacker:
|
||||||
|
//
|
||||||
|
// The typename in the options list when adding/loading a wfs
|
||||||
|
// layer not should contain the namespace before, (as in the
|
||||||
|
// first typename parameter to the wfs consctructor).
|
||||||
|
//
|
||||||
|
// Specifically, in the first parameter you write typename:
|
||||||
|
// 'topp:myLayerName', and in the following option list
|
||||||
|
// typeName: 'myLayerName'.
|
||||||
|
//
|
||||||
|
// If you have topp included in the second one you will get
|
||||||
|
// namespace 14 errors when trying to insert features.
|
||||||
|
//
|
||||||
wfs = new OpenLayers.Layer.WFS(
|
wfs = new OpenLayers.Layer.WFS(
|
||||||
"Cities",
|
"Cities",
|
||||||
"http://sigma.openplans.org/geoserver/wfs",
|
"http://sigma.openplans.org/geoserver/wfs",
|
||||||
|
|||||||
Reference in New Issue
Block a user