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.IndoorRenderer
MVCObject
.
Constructor |
IndoorRenderer(options?) Parameters:
Creates an Indoor renderer. |
Methods | |
setMap(map?) Parameters:
Return Type:
void Sets the map where to render the Indoor map. | |
getLevel() Parameters:
None
Return Type:
number Get 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:
void Call this function to draw a polyline on map. | |
highlightStep(stepToHighlight?, fitBounds?, tilt?, soundEnabled?) Parameters:
Return Type:
void Highlight the step of the directions | |
displayRoutingPath(show) Parameters:
Return Type:
void Show or hide the routing path on the map | |
unselectFeature() Parameters:
None
Return Type:
void Unselect a selected feature | |
setUserLocation(lat, lng, level, bearing?, forceFocus?, adjusted?) Parameters:
Return Type:
void Set the current user location. A blue dot is going to be displayed. | |
isUserInsideVenue(lat, lng) Parameters:
Return Type:
boolean Detects whether user location is found inside venue’s bounding box | |
setFloor(floor) Parameters:
Return Type:
void Sets the floor for the venue | |
setVenue(venueId) Parameters:
Return Type:
void Renders map with the selected venue | |
highlightFeature(featureid, silent, padding?) Parameters:
Return Type:
void Renders a map with a POI highlighted by pk or id | |
highlightFeatureByRef(ref, padding?) Parameters:
Return Type:
void Renders 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:
void Renders map with custom theme | |
setBaseFilter(filter) Parameters:
Return Type:
void Sets the default filter applied | |
resetUserMarker() Parameters:
None
Return Type:
void Resets the user marker | |
notifyUserDeviated(currentLocation) Parameters:
Return Type:
void Triggers event to notify user has deviated from path during navigation |
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 |
IndoorService class
woosmap.map.IndoorService
Service used to call the Indoor API.
Constructor |
IndoorService() Parameters:
None
Service used to call the Indoor API. |
Methods | |
venues(callback) Parameters:
Return Type:
void Retrieve all the venues | |
venue(venueId, callback) Parameters:
Return Type:
void Retrieve detailed venue data | |
search(venueId, query, callback, ref?, id?, advancedFilter?) Parameters:
Return Type:
void Search for features by their names | |
directions(request, callback) Parameters:
Return Type:
void Gets indoor directions | |
feature(venueId, featureId, callback) Parameters:
Return Type:
void Gets feature by feature id | |
autocomplete(venueId, query, callback, ref?, id?, fromLocation?, advancedFilter?, maxResponses?) Parameters:
Return Type:
void Autocomplete for pois |
IndoorWidget class
woosmap.map.IndoorWidget
Constructor |
IndoorWidget(widgetOptions?, rendererOptions?) Parameters:
Creates a new Indoor widget. |
Methods | |
setMap(map) Parameters:
Return Type:
void Sets the map where to render the Indoor widget. | |
setVenue(venueId) Parameters:
Return Type:
void Renders map with the selected venue | |
highlightFeature(id, silent, padding?) Parameters:
Return Type:
void Renders 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:
void Renders 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:
void Unselect a selected feature: it closes the widget and unhighlight the feature. | |
setDirections(directions?) Parameters:
Return Type:
void Call this function to draw a polyline on map. | |
setUnits(units) Parameters:
Return Type:
void Sets the distance units. | |
getUnits() Parameters:
None
Return Type:
"imperial" Gets the distance units. | |
setDirectionsMode(profile) Parameters:
Return Type:
void Sets 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:
void Sets the baseFilter. | |
getBaseFilter() Parameters:
None
Return Type:
(string | null) Gets the baseFilter | |
setUserLocation(lat, lng, level, bearing?, forceFocus?) Parameters:
Return Type:
void Sets the current user location. | |
setNavigationMode(allowNavigation) Parameters:
Return Type:
void Sets the navigation mode | |
getNavigationMode() Parameters:
None
Return Type:
boolean Gets the navigates mode | |
getAutocompleteWithDistance() Parameters:
None
Return Type:
boolean Gets the autocompleteWithDistance option | |
getAutocompleteMaxResponses() Parameters:
None
Return Type:
number Gets 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:
void Renders 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:
boolean Gets whether auto focus on search input is enabled/disabled | |
setFloor(floor) Parameters:
Return Type:
void Sets the floor for the venue | |
getRenderer() Parameters:
None
Return Type:
IndoorRenderer Gets the underlying instance of Indoor Renderer when using the Indoor Widget | |
addListener(eventName, handler) Parameters:
Return Type:
MapEventListener Adds a listener for eventName. | |
trigger(instance, eventName, eventArgs?) Parameters:
Return Type:
void Triggers 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:
string Filter the map to display only labels and icons of POIs which are matching the filters | |
Type:
boolean Center the map on the venue when initializing. | |
Type:
number Set default floor for the venue | |
Type:
IndoorDirectionsIcons Icons to indicate origin and destination on the route | |
Type:
boolean Force the extrusion to be always visible. | |
Type:
boolean Hide the level selector | |
Type:
string Renders map with a POI selected by pk or id | |
Type:
string Renders 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:
IndoorPolylineOptions Customise 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:
boolean Show the routing paths | |
Type:
boolean If the map pans out of the venue boundaries reset the map to venue bounds. | |
Type:
string Renders map with the custom theme provided. | |
Type:
boolean Display an infowindow to highlight a selected POI | |
Type:
string Set 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:
boolean If set true, search responses will be retrived with distance from the user’s location | |
Type:
string Filter the map and the autocomplete to display/search only labels and icons of POIs which are matching the filters | |
Type:
boolean Sets whether to disable the autofocus for the search input. | |
Type:
number Number 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:
string Areas to avoid while routing. Useful when certain areas of the venues are restricted or under maintenance.
Expected format | |
Type:
string | |
Type:
string Set directions mode/routing profile | |
Type:
boolean Sets whether to enable/disable navigation mode. | |
Type:
IndoorWidgetOptionsui Set 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[] |