Indoor JS API v1.4
Indoor JS API Reference v1.4- IndoorRenderer class
- IndoorService class
- IndoorWidget class
- Building Interface
- Prediction Interface
- Predictions Interface
- IndoorDirectionLeg Interface
- IndoorDirectionRequest Interface
- IndoorDirectionResult Interface
- IndoorDirectionRoute Interface
- IndoorDirectionsBounds Interface
- IndoorDirectionsIcons Interface
- IndoorDistance Interface
- IndoorDuration Interface
- IndoorInstruction Interface
- IndoorPolylineOptions Interface
- IndoorPosition Interface
- IndoorRendererOptions Interface
- IndoorRendererOptionsIcon Interface
- IndoorStep Interface
- IndoorWidgetAutocompleteOptions Interface
- IndoorWidgetOptions Interface
- IndoorWidgetOptionsui Interface
- LatLngLevel Interface
- Level Interface
- PolylineCoords Interface
- Venue Interface
- VenuesResult Interface
IndoorRenderer class
woosmap.map.IndoorRendererMVCObject.
| Constructor |
IndoorRenderer(options?)Parameters:
Creates an Indoor renderer. |
| Methods | |
setMap(map?)Parameters:
Return Type:
voidSets the map where to render the Indoor map. | |
getLevel()Parameters:
None
Return Type:
numberGet the displayed level. | |
getSelectedFeature()Parameters:
None
Return Type:
(GeoJSONFeature | null)Get the selected feature. | |
getView()Parameters:
None
Return Type:
"mobile"Gets view set for the renderer | |
setDirections(directions?, padding?)Parameters:
Return Type:
voidCall this function to draw a polyline on map. | |
highlightStep(stepToHighlight?, fitBounds?, tilt?, soundEnabled?)Parameters:
Return Type:
voidHighlight the step of the directions | |
displayRoutingPath(show)Parameters:
Return Type:
voidShow or hide the routing path on the map | |
unselectFeature()Parameters:
None
Return Type:
voidUnselect a selected feature | |
setUserLocation(lat, lng, level, bearing?, forceFocus?, adjusted?)Parameters:
Return Type:
voidSet the current user location. A blue dot is going to be displayed. | |
isUserInsideVenue(lat, lng)Parameters:
Return Type:
booleanDetects whether user location is found inside venue’s bounding box | |
setFloor(floor)Parameters:
Return Type:
voidSets the floor for the venue | |
setVenue(venueId)Parameters:
Return Type:
voidRenders map with the selected venue | |
highlightFeature(featureid, silent, padding?)Parameters:
Return Type:
voidRenders a map with a POI highlighted by pk or id | |
highlightFeatureByRef(ref, padding?)Parameters:
Return Type:
voidRenders a map with a POI highlighted by ref | |
filterPois(advancedFilter, disableZoomMin)Parameters:
Filter the map to display only labels and icons of POIs which are matching the filters | |
setTheme(theme)Parameters:
Return Type:
voidRenders map with custom theme | |
setBaseFilter(filter)Parameters:
Return Type:
voidSets the default filter applied | |
resetUserMarker()Parameters:
None
Return Type:
voidResets the user marker | |
notifyUserDeviated(currentLocation)Parameters:
Return Type:
voidTriggers event to notify user has deviated from path during navigation | |
notifyProximityToDest()Parameters:
None
Return Type:
voidTriggers event to notify user’s proximity to destination | |
| Events | |
|
This event is fired when the indoor venue is loaded | |
|
This event is fired when the indoor level is changed | |
|
This event is fired when a direction step is highlighted during turn by turn navigation | |
|
This event is fired when the indoor user location is changed | |
|
This event is fired when any indoor feature on the map is clicked | |
|
This event is fired when the user deviates from the path in navigation mode | |
|
This event is fired when the user has reached closed to their destination. If the user’s location is within 10 meters of their destination, this event will be triggered. | |
IndoorService class
woosmap.map.IndoorServiceService used to call the Indoor API.
| Constructor |
IndoorService()Parameters:
None
Service used to call the Indoor API. |
| Methods | |
venues(callback)Parameters:
Return Type:
voidRetrieve all the venues | |
venue(venueId, callback)Parameters:
Return Type:
voidRetrieve detailed venue data | |
search(venueId, query, callback, ref?, id?, advancedFilter?)Parameters:
Return Type:
voidSearch for features by their names | |
directions(request, callback)Parameters:
Return Type:
voidGets indoor directions | |
feature(venueId, featureId, callback)Parameters:
Return Type:
voidGets feature by feature id | |
autocomplete(venueId, query, callback, ref?, id?, fromLocation?, advancedFilter?, maxResponses?)Parameters:
Return Type:
voidAutocomplete for pois | |
IndoorWidget class
woosmap.map.IndoorWidget| Constructor |
IndoorWidget(widgetOptions?, rendererOptions?)Parameters:
Creates a new Indoor widget. |
| Methods | |
setMap(map)Parameters:
Return Type:
voidSets the map where to render the Indoor widget. | |
setVenue(venueId)Parameters:
Return Type:
voidRenders map with the selected venue | |
highlightFeature(id, silent, padding?)Parameters:
Return Type:
voidRenders a map with a POI highlighted by pk / id silent parameter will prevent the indoor_feature_selected event to trigger padding parameter will apply padding to the map container while highlighting the POI on map | |
highlightFeatureByRef(ref, padding?)Parameters:
Return Type:
voidRenders a map with a POI highlighted by its ref padding parameter will apply padding to the map container while highlighting the POI on map | |
unselectFeature()Parameters:
None
Return Type:
voidUnselect a selected feature: it closes the widget and unhighlight the feature. | |
setDirections(directions?)Parameters:
Return Type:
voidCall this function to draw a polyline on map. | |
setUnits(units)Parameters:
Return Type:
voidSets the distance units. | |
getUnits()Parameters:
None
Return Type:
"imperial"Gets the distance units. | |
setDirectionsMode(profile)Parameters:
Return Type:
voidSets the routing profile (or directions mode) (‘security’ | ‘wheelchair’) for way finding | |
getDirectionsMode()Parameters:
None
Return Type:
(string | null)Gets the distance units. | |
setBaseFilter(filter?)Parameters:
Return Type:
voidSets the baseFilter. | |
getBaseFilter()Parameters:
None
Return Type:
(string | null)Gets the baseFilter | |
setUserLocation(lat, lng, level, bearing?, forceFocus?)Parameters:
Return Type:
voidSets the current user location. | |
setNavigationMode(allowNavigation)Parameters:
Return Type:
voidSets the navigation mode | |
getNavigationMode()Parameters:
None
Return Type:
booleanGets the navigates mode | |
getAutocompleteWithDistance()Parameters:
None
Return Type:
booleanGets the autocompleteWithDistance option | |
getAutocompleteMaxResponses()Parameters:
None
Return Type:
numberGets the autocomplete’s maxResponses option value if set to determine the number of search suggestions to retrieve. The default value is 5 and the maximum limit is 10. | |
setTheme(theme)Parameters:
Return Type:
voidRenders map with custom theme | |
setZonesToAvoid(avoidZones)Parameters:
Return Type:
(string | null)Sets the zones to avoid during routing. Argument expected in the format level;lat,lng;lat,lng;lat,lng…|level;lat,lng;lat,lng;lat,lng… | |
getZonesToAvoid()Parameters:
None
Return Type:
(string | null)Gets the zones to avoid while routing | |
setIsAutofocusDisabled(disableFocus)Parameters:
Return Type:
(boolean | null)Sets whether to disable the autofocus for the search input. | |
getIsAutofocusDisabled()Parameters:
None
Return Type:
booleanGets whether auto focus on search input is enabled/disabled | |
setFloor(floor)Parameters:
Return Type:
voidSets the floor for the venue | |
getRenderer()Parameters:
None
Return Type:
IndoorRendererGets the underlying instance of Indoor Renderer when using the Indoor Widget | |
addListener(eventName, handler)Parameters:
Return Type:
MapEventListenerAdds a listener for eventName. | |
trigger(instance, eventName, eventArgs?)Parameters:
Return Type:
voidTriggers the given event. All arguments after eventName are passed as arguments to the listeners. | |
showItinerary(origin?, destination?)Parameters:
Opens the widget’s panel in itinerary mode. | |
Building Interface
Building of a venue.
| Properties | |
|
Type:
(string | null) | |
|
Type:
(string | null) | |
|
Type:
Level[] | |
|
Type:
({} | null) | |
|
Type:
(string | null) | |
|
Type:
(string | null) | |
|
Type:
(string | null) | |
|
Type:
(string | null) | |
Prediction Interface
Autocomplete predictions
| Properties | |
|
Type:
(string | null) | |
|
Type:
(number | null) | |
|
Type:
number | |
|
Type:
number | |
|
Type:
string | |
|
Type:
(string | null) | |
Predictions Interface
Collection of poi predictions
| Properties | |
|
Type:
Prediction[] | |
|
Type:
"Array" | |
IndoorDirectionLeg Interface
Indoor directions leg.
| Properties | |
|
Type:
IndoorDistance | |
|
Type:
IndoorDuration | |
|
Type:
LatLngLevel | |
|
Type:
LatLngLevel | |
|
Type:
IndoorStep[] | |
IndoorDirectionRequest Interface
Request to get directions between an origin and a destination.
| Properties | |
|
Type:
(string | null) | |
|
Type:
(LatLng | null) | |
|
Type:
(number | null) | |
|
Type:
(number | null) | |
|
Type:
(string | null) | |
|
Type:
(string | null) | |
|
Type:
(boolean | null) | |
|
Type:
(LatLng | null) | |
|
Type:
(number | null) | |
|
Type:
(number | null) | |
|
Type:
"metric" | |
|
Type:
string | |
|
Type:
(string | null) | |
IndoorDirectionResult Interface
Indoor directions result.
| Properties | |
|
Type:
IndoorDirectionRoute[] | |
IndoorDirectionRoute Interface
Indoor directions route.
| Properties | |
|
Type:
IndoorDirectionsBounds | |
|
Type:
IndoorDirectionLeg[] | |
IndoorDirectionsBounds Interface
number[]Indoor directions bounds.
IndoorDirectionsIcons Interface
Icons to indicate origin and destination on route
| Properties | |
IndoorDistance Interface
Indoor distance object.
| Properties | |
|
Type:
string | |
|
Type:
number | |
IndoorDuration Interface
Indoor duration object.
| Properties | |
|
Type:
string | |
|
Type:
number | |
IndoorInstruction Interface
Indoor instruction object.
| Properties | |
|
Type:
string | |
|
Type:
string | |
IndoorPolylineOptions Interface
Indoor polyline customisation options
| Properties | |
|
Type:
string | |
|
Type:
string | |
|
Type:
string | |
IndoorPosition Interface
Position indoor.
| Properties | |
|
Type:
(boolean | null) | |
|
Type:
(number | null) | |
|
Type:
(boolean | null) | |
|
Type:
number | |
|
Type:
LatLngLiteral | |
IndoorRendererOptions Interface
Options to configure the Indoor Renderer.
| Properties | |
|
Type:
stringFilter the map to display only labels and icons of POIs which are matching the filters | |
|
Type:
booleanCenter the map on the venue when initializing. | |
|
Type:
numberSet default floor for the venue | |
|
Type:
IndoorDirectionsIconsIcons to indicate origin and destination on the route | |
|
Type:
booleanForce the extrusion to be always visible. | |
|
Type:
booleanHide the level selector | |
|
Type:
stringRenders map with a POI selected by pk or id | |
|
Type:
stringRenders map with a POI selected by ref | |
|
Sets custom icon for venue markers | |
|
Type:
"auto"The position to place the level selector. Possible values are top(left) and right. | |
|
Type:
IndoorPolylineOptionsCustomise the appearance of the indoor polyline/route. Acceptable values for custom colors are in in hexadecimal or RGB format.
| |
|
Type:
"mobile"Enforces the view of the renderer. | |
|
Type:
booleanShow the routing paths | |
|
Type:
booleanIf the map pans out of the venue boundaries reset the map to venue bounds. | |
|
Type:
stringRenders map with the custom theme provided. | |
|
Type:
booleanDisplay an infowindow to highlight a selected POI | |
|
Type:
stringSet default venue | |
IndoorRendererOptionsIcon Interface
Icons to use to display venues on the map.
| Properties | |
|
Type:
{x: number, y: number} | |
|
Type:
{height: number, width: number} | |
|
Type:
string | |
IndoorStep Interface
Indoor directions step.
| Properties | |
|
Type:
number | |
|
Type:
number | |
|
Type:
IndoorDistance | |
|
Type:
IndoorDuration | |
|
Type:
LatLngLevel | |
|
Type:
(IndoorInstruction | null) | |
|
Type:
PolylineCoords | |
|
Type:
LatLngLevel | |
IndoorWidgetAutocompleteOptions Interface
Widget’s autocomplete options
| Properties | |
|
Type:
booleanIf set true, search responses will be retrived with distance from the user’s location | |
|
Type:
stringFilter the map and the autocomplete to display/search only labels and icons of POIs which are matching the filters | |
|
Type:
booleanSets whether to disable the autofocus for the search input. | |
|
Type:
numberNumber of search responses to retrieve. Default is 5 and the maximum limit is 10. | |
IndoorWidgetOptions Interface
Options of the Indoor widget.
| Properties | |
|
A set of optional autocomplete options to enrich the autocomplete backend request. | |
|
Type:
boolean | |
|
Type:
stringAreas to avoid while routing. Useful when certain areas of the venues are restricted or under maintenance.
Expected format | |
|
Type:
string | |
|
Type:
stringSet directions mode/routing profile | |
|
Type:
booleanSets whether to enable/disable navigation mode. | |
|
Type:
IndoorWidgetOptionsuiSet the custom colors of the indoor widget | |
|
Type:
"imperial"Set units to use to show distance in directions itinerary | |
IndoorWidgetOptionsui Interface
UI Option of the Indoor widget.
| Properties | |
|
Type:
string | |
|
Type:
string | |
LatLngLevel Interface
Indoor location composed of a latitude, a longitude and a level.
| Properties | |
|
Type:
number | |
|
Type:
number | |
|
Type:
number | |
Level Interface
Level of a Venue
| Properties | |
|
Type:
number[] | |
|
Type:
number | |
|
Type:
(string | null) | |
PolylineCoords Interface
GeoJSONPosition[]Array of lat, lon coordinates.
Venue Interface
Defines the indoor venue information. An indoor venue consists of one or more buildings, geometry other information describing the venue.
| Properties | |
|
Type:
number[] | |
|
Type:
(Building[] | null) | |
|
Type:
(string[] | null) | |
|
Type:
Level[] | |
|
Type:
(string | null) | |
|
Type:
(string[] | null) | |
|
Type:
string | |
VenuesResult Interface
List of venues.
| Properties | |
|
Type:
Venue[] | |