[OpenLayers-Users] How to insert that I digitized Feture in my WFS layer?

Christopher Schmidt crschmidt at metacarta.com
Wed Nov 19 15:25:55 EST 2008


On Wed, Nov 19, 2008 at 12:06:21PM -0800, polock wrote:
> 
> Again and again I receive the error message from the firebug:
> An attempt was made to create or change an object in a way which is
> incorrect with regard to namespaces" code: "14
> 
> var wfsl= new OpenLayers.Layer.WFS( "MY WFS", 
>                                            
> "http://localhost/geoserver/wfs?", 
>                                             {typename: 'topp:mywfs'}, 
>                                                        { typename: 
> 'topp:mywfs'  }); 
> wfsl.addFeatures([feature]);
> wfsl.commit();
> 
> Wherein am I mistaken?

Typename in the options hash (the second one) should just be 'mywfs',
not 'topp:mywfs', I believe. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list