[Users] Loading a Store From the Client

Mario mario.schedler at web.de
Thu Apr 22 17:00:04 CEST 2010


Hello,

 

I'm very new to GeoExt, so it's maybe a simple question to you but for me
it's something strange. I have set up a Store as shown in the workshop
provided by OpenGeo. The GML file point.xml will be loaded from the Web.
What should be changed to access the data from the client?

 

Thanks,

Mario

      

store = new GeoExt.data.FeatureStore({

  layer: vecLayer,

  fields: [

    {name: 'name', type: 'string'},

    {name: 'id', type: 'string'}

  ],

  proxy: new GeoExt.data.ProtocolProxy({

    protocol: new OpenLayers.Protocol.HTTP({

      url: "point.xml",

      format: new OpenLayers.Format.GML()

    })

  }),

  autoLoad: true

});

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100422/e3c5b456/attachment.htm 


More information about the Users mailing list