This control is for single search.
ALKMaps. | This control is for single search. |
Properties | |
POI_ICONS | {Object} POI icons |
Constants | |
DEFAULT_SEARCH_OPTION | {Object} Default search settings. |
Functions | |
setSearchOption | Updates search option. |
setMarkerStyle | Sets location marker icon style configuration properties. |
setMarkerConfig | Sets location marker configuration properties. |
setPopupConfig | Sets popup configuration properties. |
setSearchOption: function( key, value )
Updates search option.
key | {String} Key for the property. |
value | {String|Number|Function} It depends on the key. Valid keys are “query”, “maxResults”, “currentLonLat”, “excludedSearchTypes”, “poiCategories”, “countries”, “countryType”, “states”, “region”, “async”, “success”, and “failure”. |
query | {String} Your search query. If it is not supplied, the search input text box value will be used. |
maxResults | {Number} Maximum returned results. Between 0 and 100. |
currentLonLat | {Object} Current longitude and latitude values in degrees. |
excludedSearchTypes | {String} Comma-separated list of types to exclude from the search. |
poiCategories | {String} Comma-separated list of poi category names by which you want to filter all POI results. |
countries | {String} Comma-separated list of country abbreviations by which you want to filter all results. Defaults to ISO format. |
countryType | {String} ISO, FIPS, GENC2, GENC3 |
states | {String} Comma-separated list of state abbreviations by which you want to filter all results. |
region | {String} NA, EU, WW. To get supported regions, you can call ALKMaps.Geocoder.singleSearchGetRegions() method. |
async | {Boolean} Open an asynchronous request. Default is true. |
success | {Function} To overwrite default handler, supply custom method here. |
failure | {Function} To overwrite default handler, supply custom method here. |
setMarkerConfig: function( key, value )
Sets location marker configuration properties. Valid keys are “exclusive”, “centerOnMap”, and “zoomLevel”. If exclusive is set to true, any existing marker will be removed before a new marker is added. If centerOnMap is true, marker will be centered on the map with the zoom level that is configured in zoomLevel.
Updates search option.
setSearchOption: function( key, value )
Sets location marker icon style configuration properties.
setMarkerStyle: function( key, value )
Sets location marker configuration properties.
setMarkerConfig: function( key, value )
Sets popup configuration properties.
setPopupConfig: function( key, value )