OverviewUses the google places api to create a text-box that will auto-complete location entries, centering the map to the location chosen and returning information to specified variables in the backing bean. NOTE: To use this component, you must append 'libraries=places' to the end of your gMap key in the web.xml document.
Getting Started<ace:gMap style="width: 675px; height: 500px" id="gMap"> <ace:gMapAutocomplete style="xAlign:left" window="${gMapAutoCompleteBean.showWindow}" address="${gMapAutoCompleteBean.address}" types="${gMapAutoCompleteBean.types}" url="${gMapAutoCompleteBean.url}"/> </ace:gMap> Attributes
The backing bean property to store the text value of the address selected by gMapAutocomplete. latLng The backing bean property to store the lat/lng coordinates of the address selected by gMapAutocomplete. Format: "(0.000000,0.000000)". The backing bean property to store the array of types that Google determines match the address selected by gMapAutocomplete. The backing bean property to store the url attributed to the address selected by gMapAutocomplete. |
gMapAutocomplete
© Copyright 2021 ICEsoft Technologies Canada Corp.