Indoor JS API v1.4
Indoor JS API Reference v1.4- IndoorRenderer class
- IndoorService class
- IndoorWidget class
- Building Interface
- Feature Interface
- FeatureCollection Interface
- IndoorDirectionLeg Interface
- IndoorDirectionRequest Interface
- IndoorDirectionResult Interface
- IndoorDirectionRoute Interface
- IndoorDirectionsBounds Interface
- IndoorDistance Interface
- IndoorDuration Interface
- IndoorGeometryType Interface
- IndoorInstruction Interface
- IndoorPosition Interface
- IndoorRendererOptions Interface
- IndoorRendererOptionsIcon Interface
- IndoorStep Interface
- IndoorWidgetOptions Interface
- IndoorWidgetOptionsui Interface
- LatLngLevel Interface
- Level Interface
- PolylineCoords Interface
- Prediction Interface
- Predictions Interface
- Venue Interface
- VenuesResult Interface
IndoorRenderer class
woosmap.map.IndoorRenderer
MVCObject
.
Constructor |
IndoorRenderer(options?) Parameters:
Creates an Indoor renderer. |
Methods | |
setMap(map?) Parameters:
Sets the map where to render the Indoor map. | |
getDirectionsRenderer() Parameters:
None
Return Type:
IndoorDirectionsRenderer Gets the directions renderer. | |
getLevel() Parameters:
None
Return Type:
number Get the displayed level. | |
getView() Parameters:
None
Return Type:
"mobile" Gets view set for the renderer | |
setDirections(directions?, padding?) Parameters:
Call this function to draw a polyline on map. | |
highlightStep(stepToHighlight?, fitBounds, tilt) Parameters:
Highlight the step of the directions | |
unselectFeature() Parameters:
None
Unselect a selected feature | |
setUserLocation(lat, lng, level, bearing, forceFocus, adjusted) Parameters:
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:
Sets the floor for the venue | |
setVenue(venueId) Parameters:
Renders map with the selected venue | |
highlightFeature(featureid, silent) Parameters:
Renders a map with a POI highlighted by pk or id | |
highlightFeatureByRef(ref) Parameters:
Renders a map with a POI highlighted by ref | |
setTheme(theme) Parameters:
Renders map with custom theme |
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 the indoor user location is changed | |
This event is fired when any indoor feature on the map is clicked |
IndoorService class
woosmap.map.IndoorService
Service used to call the Indoor API.
Constructor |
IndoorService() Parameters:
None
Service used to call the Indoor API. |
Methods | |
venue(venueId, callback) Parameters:
Retrieve detailed venue data | |
search(venueId, query, ref?, id?, callback) Parameters:
Search for features by their names | |
directions(request, callback) Parameters:
Gets indoor directions | |
feature(venueId, featureId, callback) Parameters:
Gets feature by feature id | |
autocomplete(venueId, query, ref?, id?, callback, fromLocation?) Parameters:
Autocomplete for pois |
IndoorWidget class
woosmap.map.IndoorWidget
Constructor |
IndoorWidget(widgetOptions?, rendererOptions?) Parameters:
Creates a new Indoor widget. |
Methods | |
setMap(map) Parameters:
Sets the map where to render the Indoor. | |
setVenue(venueId) Parameters:
Renders map with the selected venue | |
highlightFeature(id, silent) Parameters:
Renders a map with a POI highlighted by pk / id silent parameter will prevent the indoor_feature_selected event to trigger | |
highlightFeatureByRef(ref) Parameters:
Renders a map with a POI highlighted by its ref | |
unselectFeature() Parameters:
None
Unselect a selected feature: it closes the widget and unhighlight the feature. | |
setDirections(directions?) Parameters:
Call this function to draw a polyline on map. | |
setUnits(units) Parameters:
Sets the distance units. | |
getUnits() Parameters:
None
Return Type:
"imperial" Gets the distance units. | |
setDirectionsMode(profile) Parameters:
Sets the routing profile (or directions mode) (‘security’ | ‘wheelchair’) for way finding | |
getDirectionsMode() Parameters:
None
Return Type:
(string | null) Gets the distance units. | |
setUserLocation(lat, lng, level, bearing?, forceFocus) Parameters:
Sets the current user location. | |
setNavigationMode(allowNavigation) Parameters:
Sets the navigation mode | |
getNavigationMode() Parameters:
None
Return Type:
boolean Gets the navigates mode | |
getAutocompleteWithDistance() Parameters:
None
Return Type:
boolean Gets the autocompleteWithDistance option | |
setTheme(theme) Parameters:
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 | |
setFloor(floor) Parameters:
Sets the floor for the venue | |
addListener(eventName, handler) Parameters:
Return Type:
MapEventListener Adds a listener for eventName. |
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) |
Feature Interface
Feature
Properties | |
Type:
{coordinates: any, type: IndoorGeometryType} | |
Type:
(number | null) | |
Type:
{} |
FeatureCollection Interface
Collection of features
Properties | |
Type:
Feature[] | |
Type:
"FeatureCollection" |
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:
(LatLng | null) | |
Type:
(number | null) | |
Type:
(number | null) | |
Type:
"metric" | |
Type:
string |
IndoorDirectionResult Interface
Indoor directions result.
Properties | |
Type:
IndoorDirectionRoute[] |
IndoorDirectionRoute Interface
Indoor directions route.
Properties | |
Type:
IndoorDirectionsBounds | |
Type:
IndoorDirectionLeg[] |
IndoorDirectionsBounds Interface
number[]
Indoor directions bounds.
IndoorDistance Interface
Indoor distance object.
Properties | |
Type:
string | |
Type:
number |
IndoorDuration Interface
Indoor duration object.
Properties | |
Type:
string | |
Type:
number |
IndoorGeometryType Interface
"Point" | "LineString" | "Polygon"
Type of Indoor geometry
IndoorInstruction Interface
Indoor instrction object.
Properties | |
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:
boolean Center the map on the venue when initializing. | ||||
Type:
number Set default floor for the venue | ||||
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:
"mobile"
| ||||
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 |
IndoorWidgetOptions Interface
Options of the Indoor widget.
Properties | |||
Type:
boolean Set directions mode/routing profile | |||
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
Array<[number, number]>
Array of lat, lon coordinates.
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" |
Venue Interface
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[] |