| MarkerSearchButton |
A special type of button dedicated to geocoding searches, either direct geocoding (address to position) or reverse geocoding (position to address). The button must be associated with a map and a marker.
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
|---|---|
id | XPath attribute defining the id of the button |
icon | if set, the button will be an img tag with the value of this XPath attribute as src |
text | XPath attribute; if the icon attribute is set, sets the alt of the img; if not, sets the text of the button |
enabled | true or false; if false, the action is not called on click |
mapid | XPath attribute defining the id of the map associated with the button |
markerid | XPath attribute defining the id of the marker associated with the button |
mode | Defines if the button's action is geocoding (FromAddress) or reverse geocoding (FromMarker). If the mode is FromAddress, the search will change the marker's position using the SearchParameters of the Marker. If the mode is FromMarker, the search will change the SearchResults parameters of the associated marker. |
None.
Element | Description |
|---|---|
any xslt or xhtml tag |
The XHTML structure created by the acs:MarkerSearchButton is the following:
<!-- if @icon is set --> <img src="{@icon}" class="button [disabled]" alt="{@text}" title="{@text}"/> <!-- if @icon is not set --> <span class="button [disabled]">@text</span>
<acs:TextBox id="enr14" label="Address" init="{AGENDA/ADDRESS}"/> <input type="hidden" name="country" id="country" value="France"/> <acs:TextBox id="enr20" label="City" init="{AGENDA/CITY}"/> <acs:Map id="mymap" longitude="{translate(AGENDA/LONGITUDE,',','.')}" latitude="{translate(AGENDA/LATITUDE,',','.')}"> <acs:Parameters> <acs:Parameter name="zoom" value="6"/> </acs:Parameter> <acs:Markers> <acs:Marker id="mymarker" initLongitude="{translate(AGENDA/LONGITUDE,',','.')}" initLatitude="{translate(AGENDA/LATITUDE,',','.')}" longitude="enr21" latitude="enr22"> <acs:SearchParameters> <acs:Parameter name="enr14" value=""/> <acs:Parameter name="enr20" value=""/> <acs:Parameter name="country" value=""/> </acs:SearchParameters> </acs:Marker> </acs:Markers> </acs:Map> <acs:MarkerSearchButton id="markersearch" mode="FromAddress" mapid="mymap" markerid="mymarker" text="Search the address on the map"/>