[OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

Tim Schaub tschaub at opengeo.org
Mon Mar 22 16:04:10 EDT 2010


Tim Schaub wrote:
> Hey-
> 
> paweluz wrote:
>> Hi!
>>
> 
> ... snip ...
> 
>> data that I have stored as MULTILINESTRING?? Is there a way to force
>> Openlayers to save data as MULTILINESTRING??
>>
> 
> The WFSProtocol has nothing to do with determining the geometry type in 
> your features.
> 
> If you are drawing your features with the DrawFeature control, you can 
> pass handlerOptions: {multi: true} to the control when you construct it.
> 

See the wfs-transactions.html example for use of {multi: true} (as 
handler options on the draw feature control).

http://openlayers.org/dev/examples/wfs-protocol-transactions.html
http://openlayers.org/dev/examples/wfs-protocol-transactions.js


> I realize this is horribly burried (and not marked as part of the API). 
>   I'll create a ticket to add a "multi" option to the DrawFeature 
> control to make this a bit easier.
> 
> If you not using the DrawFeature control to create features, then this 
> won't apply.
> 
> Tim
> 
>> poul 
> 
> 


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Users mailing list