[OpenLayers-Users] Example of creating a POI with attributes
Mike Adair
madair at dmsolutions.ca
Tue Jun 2 09:56:56 EDT 2009
I did a EditFeatureAttributes control a few months ago that first did a
WFS DescribeFeatureType query to determine the attributes for a feature
type and then created a form with inputs for each attribute. It
registered with featureAdded and featureSelected events on the WFS layer
to open and populate the form. Clicking on a 'save' button then
triggered a Save strategy to do a WFS transaction to the DB. I seem to
recall that it needed some extra information about attribute types,
primary keys, etc. but it was mostly driven from the DescribeFeatureType
response.
I don't think there is an example online anywhere yet but I could
probably put the code somewhere if you were interested.
Mike Adair
Stephen Woodbridge wrote:
> Hi all,
>
> Does anyone have a public page/example that demonstrates creating a
> point feature and adding text attributes to it? This seems like it would
> be a common use case.
>
> Creating the vector feature is straight forward. It would be nice if
> after you create the point, that you could click it and open a balloon
> with fields that you could fill in and a save|cancel button that would
> save it back to the server.
>
> Maybe this is two operations:
>
> 1) create or drag the marker for editing the location
> 2) click to edit attributes or to delete marker
>
> Mostly unsure on the attributes and the best way to glue all this together.
>
> Suggestions and examples would be helpful.
>
> Thanks,
> -Steve
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
More information about the Users
mailing list