[Users] popup window
Alexandre Dube
adube at mapgears.com
Tue Feb 9 19:46:01 CET 2010
Mario,
Sure. First of all, all the html elements are inside a <form> named
"roadForm". These are hardcoded, they are not dynamically created.
When the page first loads, a DescribeFeatureType request is sent to
get all the possible feature attributes. Each attribute that have an
existing html element with its 'id' equal to the name of the attribute
is stored in an array. See the "setRoadAttributes" for more.
When a feature is selected, the 'parseFeatureAttributesToForm' is
called. Each feature's attribute is putted inside the <form> if it has
an existing html form element with the right 'id'.
The user make some changes.
When the feature is unselected (save button is clicked), the
'parseFormAttributesToFeature' is called (to copy the modifications to
the feature).
Look at the code source to know more.
Regards,
Alexandre
http://dev4.mapgears.com/bdga/bdgaWFS-T.html
Mario Nuñez Jimenez wrote:
> Hello again,
> Now I am looking your online example.
> And I don't get how did you do to show the popups, and most important... to show them with all the feature information included in it.
> Any tip?
> Thank you in advance.
> Regards.
> Mario.
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list