Mappls Nearby Search Widget is highly configurable widget, it provides options to customized almost everything.
For installation / basic information click here
To set advanced configurations in Nearby Search widget.
try {
const data = await MapplsNearbyWidget.openNearbyWidget(parms);
console.log(data)
} catch( e ){
console.log(e)
}
This class is used to set the information for the nearby categories to show in Nearby Widget. It contains the following properties in constructor:
category (String)
: Name of the category that display on a viewicon(Integer)
: To show icon of categorycategoryCode (List<String>)
: List of category codesmarkerIcon (Integer)
: Marker icon to display on a mapisSelected (Boolean)
: To set the category is selected or not
This class is used to set the UI configurations of the Nearby Widget It contains the following properties:
toolbarColor(Integer)
: To set the toolbar color of nearby result screenbackgroundColor(Integer)
: To set the background color of nearby category selection screennearbyToolbarIcon(Integer)
: To set the toolbar icon on category selection screentoolbarTintColor(Integer)
: To set text and icon color of toolbar of nearby selection screennearbyToolbarColor(Integer)
: To set the toolbar color of nearby category selection screennearbyToolbarTintColor(Integer)
: To set the toolbar text color of nearby category selection screenlocationDetailsBackgroundColor(Integer)
: To set background color of location detail viewlocationDetailsInfoLabelText(String)
: To set location detail information textlocationDetailInfoTextColor(Integer)
: To set location detail information text colorlocationDetailFormattedAddressTextColor(Integer)
: To set selected location Address text colorchangeLocationButtonTextColor(Integer)
: To set change location button Text coloruseCurrentLocationButtonTextColor(Integer)
: To set use current location Button text colorselectedCategoryBackgroundColor(Integer)
: To set selected category item background colorselectedCategoryTextColor(Integer)
: To set selected category item text colorselectedCategoryTintColor(Integer)
: To set selected category item icon colorcategoryBackgroundColor(Integer)
: To set category item background colorcategoryTextColor(Integer)
: To set Category item text colorcategoryTintColor(Integer)
: To set Category item icon colorsubmitButtonColor(Integer)
: To set background color of submit buttonsubmitButtonTextColor(Integer)
: To set submit button text colorsubmitButtonText(String)
: To set submit button textpaginationBackgroundColor(Integer)
: To set background color of page selection viewtabTextColor(Integer)
: To set tab text colortabBackgroundColor(Integer)
: To set tab background colorselectedTabTextColor(Integer)
: To set selected tab text colortabIndicatorColor(Integer)
: To set selected tab indicator colortabIconTint(Integer)
: To set tab icon color (can use selector color)placeNameTextColor(Integer)
: To set result item place name text colordistanceTextColor(Integer)
: To set result item distance text colorplaceAddressTextColor(Integer)
: To set result item address text colorrefLocationIcon(Integer)
: To set reference location marker iconrefLocationCircleColor(Integer)
: To set circle color around reference locationrefLocationCircleAlpha(Float)
: To set circle alpha for reference locationshowDefaultMap(Boolean)
: To add Default map or not
This class is used to set the properties related to nearby search It contains the following properties:
radius(Integer)
: provides the range of distance to search over(default: 1000, min: 500, max: 10000)sortBy(String)
: provides configured sorting operations for the client on cloud.Below are the available sorts:- NearbyCriteria.DISTANCE_ASCENDING
- NearbyCriteria.DISTANCE_DESCENDING will sort the data on distance basis.
- NearbyCriteria.NAME_ASCENDING
- NearbyCriteria.NAME_DESCENDING will sort the data on alphabetically basis.
searchBy(String)
: provides configurable search operations for the client on cloud. Below are the available sorts:- NearbyCriteria.DISTANCE
- NearbyCriteria.IMPORTANCE - will search data in order of prominence of the place.
bounds(String)
: Allows the developer to send in map bounds to provide a nearby search within the bounds.
{e.g. (bounds("28.56812,77.240519;28.532790,77.290854"))pod(String)
: it takes in the place type code which helps in restricting the results to certain chosen type. Access to this parameter is controlled from the backend. This parameter if provided will override any values provided inkeywords
request param.
Below mentioned are the codes for the pod- NearbyCriteria.POD_SUB_LOCALITY
- NearbyCriteria.POD_LOCALITY
- NearbyCriteria.POD_CITY
- NearbyCriteria.POD_STATE
filter(String)
: This parameter helps you get a specific type of EV charging Stationfilter
= model:(string);brandId:(string);plugType:(string)
richData(Boolean)
: Rich Data related to POIuserName(String)
: Use to set the user name
For any queries and support, please contact:
Email us at [email protected]Support Need support? contact us!
@ Copyright 2023 CE Info Systems Ltd. All Rights Reserved.
Terms & Conditions | Privacy Policy | Supplier Sustainability Policy | Health & Safety Policy | Environmental Policy & CSR Report
Customer Care: +91-9999333223