This widget places an Iframe or a button for a popup, that has fields to search the attributes of the layers, and to zoom to objects that match the query. ---------------------------------------------------------------------------------------------------- #################### Example of implementation: #################### - inside IFRAME (embedded): - or as a button that shows a POPUP: ###################################################################### These attributes are specific to the widget: - POPUP is an optional parameter; if it is true, the searchpage is launched in a popup window from a button, otherwise an IFRAME is embedded - POPUPHEIGHT is the height of the IFRAME or the WINDOW - POPUPWIDTH is the width of the IFRAME or the WINDOW - SEARCHALL is an optional parameter; if it is true, all attributes in all layers are searcheable. - ZOOMBUFFER is an optional parameter; if it exists, its value is the buffer around the result. If it doesn't exist, points are re-centred to instead. Its value is always in metres, and will be automatically converted to the units of the projection. PREVIOUSLY CALLED POINTZOOMBUFFER - HIGHLIGHT is an optional parameter; if it is true, the searchresults are highlighted. Note: requires a little more processing time (for creation of temporary shapefile). - ALLOWDOWNLOAD is an optional parameter; if it is true, the searchresults are downloadable as a zipped shapefile. ----> Note: This functionality is a potential copyright issue (if shapefiles are confidentail). Remove download.php if you are concerned someone might steal your data. - MAXNUMRESULTS is an optional parameter, specifying at how many results the application should stop searching. This can help increase overall performance, and prevent sending a huge HTML result back to the user. The other attributes belong to the styleresource and popup functionalities ------------------------------------------------------------------------------------------------------------------------ If you do not use the SEARCHALL parameter, you must manually specify in the mapfile that you want certain layers and attributes to be searchable: Place these tags in the metadata section of the layer that you want to be queryable: SPATIALSEARCH "ATTRIBUTE1,ATTRIBUTE2,ETC" # holds a comma separated list of searchable attributes. # if value is 'ignore', this layers gets ignored when 'searchall' is true SPATIALSEARCHLIST "ATTRIBUTE3,ATTRIBUTE7,ETC" # holds the attributes to be shown in the list of matching objects. ---------------------------------------------------------------------------------------------------- LASTLY (This goes wrong often!!!!!!!!!!!!!!!!!!!!!!!!!!!!!): This widget is oficially in BETA STAGE. so make sure it matches the maturity level specified in your chameleon.xml file!!!!! ------------ Usage with Ka-map --------------------- experimental Place this in the HEAD section: And this anywhere in the body: