[OpenLayers-Users] Example of creating a POI with attributes
Alexandre Dube
adube at mapgears.com
Tue Jun 2 11:16:03 EDT 2009
Hi Mike,
I would also be interested to see how you achieved it. If you do share
some code, please use the OL mailing list.
Regards,
Alexandre
Mike Adair wrote:
> 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
>>
>>
>>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list