Hi,

On 5/31/07, César <[EMAIL PROTECTED]> wrote:
> I want to move a point in the map, is means, to update the data into
> the wfs. So I need a new button with this funcionality. When I push it
> on, this button allows me to move a city.

Currently, there is no vector feature editing mode in Mapbuilder. As a
simple workaround, you could create a custom button which is similar
to EditPoint.js. Instead of letting EditButtonBase.js load an empty
template for the new feature (objRef.loadDefaultModel() in the
doSelect()) method, you have to check for the current content of the
transactionResponseModel (using Xpath). If there is only one feature
in it, you can assume that this is the point that needs to be moved.
You take this feature node, clear out the coordinates, and load it
into the targetModel. Now your custom button can fill in the new
coordinates, and then InsertFeature.js will create a WFS Update
request, because the fid is the same as for the old feature.

Regards,
Andreas.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to