gMapAutocomplete

Table of Contents

Overview

Uses 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.

See the ICEfaces Showcase Live Demo of this component, complete with source code.

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

TagLib Documentation

This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2018 ICEsoft Technologies Canada Corp.