Opened 13 years ago

Closed 13 years ago

#228 closed task (fixed)

TemplatePopup new widget

Reported by: adube Owned by:
Priority: major Milestone:
Component: widgets Version:
Keywords: Cc:

Description

Create a new widget used to display a feature attributes in a popup :

  • name : TemplatePopup or GeoExt.ux.Template popup (if not too complicated to created in the GeoExt sandbox)
  • servicetype : wfs
  • action : read
  • should automatically detects a vector layer using the wfs servicetype and interact with its features.
  • creates a OpenLayers.Control.SelectFeature with a click handler by default to display the popup. Can be set to "hover" with an option.
  • The control can be automatically activated with an option if you don't have any other handler incompatibility. Useful to avoid the use of a button to activate it.
  • When a feature is clicked / hovered : display a popup. Its content is automatically built using a resource option "popupTemplate".
  • The widget must not have resource-specific options
  • The widget should support multiple resources. It should collect all layers and create a single control.
  • the "popupTemplate" option value should look like what Ext.DataView templating system uses.

Other future tasks

  • We could use the OpenLayers native WMSGetFeatureInfo control instead to get the feature infos. That would require a wms layer.

Change History (1)

comment:1 by jlacroix, 13 years ago

Resolution: fixed
Status: newclosed

Added the widget and a sample. For now, only WFS layer work and the code for template popup is inside the widget. It will probably be contributed to GeoExt at some point and we will need to adjust the js loading at that moment.

Note: See TracTickets for help on using tickets.