[Users] Best way to enter feature properties using a json server backend?
Mike Stoddart
stodge at gmail.com
Wed Feb 2 15:50:21 CET 2011
I'm reading the GeoExt documentation but I'm not sure I understand how
to achieve my requirements. I want to set properties for each feature
on a particular Vector layer. So I have a GridPanel on the right side
of my page and the map in the centre. The user creates a new polygon
feature in the layer. When they select this feature I want to load any
existing properties for that feature into the grid via json. The
server backend for this is just a Django site, not an WFS server. I
also want to add the polygon and its coordinates to an existing
postgis database on the same PGSQL server.
Should I create a separate store (AttributeStore/FeatureStore etc) for
each feature that is created and swap them in/out of the grid when the
feature is selected? Or should I use a json store for each feature? Or
is there a better way to connect a feature and a grid? Any suggestions
greatly appreciated. I'm currently experimenting with creating a store
for each feature and swapping them in/out of the grid.
Thanks
Mike
More information about the Users
mailing list