[OpenLayers-Users] HTTP protocol with featureserver

Andreas Hocevar ahocevar at opengeo.org
Wed Dec 10 16:23:03 EST 2008


I'm wrong again. Eric showed the right way to do it. Thanks Eric!

> You can pass a userCallback to the create function if you instantiate
> the protocol like that:
>
> new OpenLayers.Protocol.HTTP({
>     url: "yourUrl",
>     format: OpenLayers.Format.GeoJSON, // needs to read insertFids
>   

no extra options hash here!
>         create: {
>             callback: function(response) {
>                 // your stuff here
>             }
>             scope: yourFunctionScope
>         }
> }
>   




More information about the Users mailing list