Maps API for JavaScript Developer's Guide

H.service.venues.Space

Class Summary

Represents a spatial object for this space. Each space object contains data associated with that space and can be retrieved by using H.service.venues.Space#getData method.

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

getType () : {string}

This method returns type of this space. See Space IATileMember documentation in Venue Maps API for more information.

isFloorSpace () : {boolean}

The method indicates whether the spatial object represents the whole floor space or a space within a floor boundaries, that belongs to the floor.

initLabelStyle (labelStyle)

This method sets custom style to use for rendering the labels. Should be called before the first render of the space, otherwise has no any effect. Note that due to the design consistency currently it is not allowed to change the font family and the size of the labels.

getFloor () : {?H.service.venues.Floor}

Method returns parent object - floor (see H.service.venues.Floor) of the space.

getData () : {Object}

Method returns raw data associated with the space. For more details on data format see http://developer.here.com/rest-apis/documentation/venue-maps/topics/resource-type-venue-interaction-tile-space.html

Class Description

Represents a spatial object for this space. Each space object contains data associated with that space and can be retrieved by using H.service.venues.Space#getData method.

Constructor Details

H.service.venues.Space(provider, uid, data)

Parameters:
 
provider:
{H.map.provider.ObjectProvider}
 
The provider of this object.
uid:
{string}
 
The unique identifier of this space
data:
{*}
 
The meta data of this space

Method Details

getType () : {string}

This method returns type of this space. See Space IATileMember documentation in Venue Maps API for more information.

Returns:
 
{string}
The type of the space

isFloorSpace () : {boolean}

The method indicates whether the spatial object represents the whole floor space or a space within a floor boundaries, that belongs to the floor.

Returns:
 
{boolean}
True if this spatial object represents the floor space.

initLabelStyle (labelStyle)

This method sets custom style to use for rendering the labels. Should be called before the first render of the space, otherwise has no any effect. Note that due to the design consistency currently it is not allowed to change the font family and the size of the labels.

Example

  space.initLabelStyle({
  fillcolor: 'rgba(255, 0, 0, 0.7)'
  });
Parameters:
 
labelStyle:
{(H.map.SpatialStyle | H.map.SpatialStyle.Options)}
 
Custom label style

getFloor () : {?H.service.venues.Floor}

Method returns parent object - floor (see H.service.venues.Floor) of the space.

Returns:
 
{?H.service.venues.Floor}

getData () : {Object}

Method returns raw data associated with the space. For more details on data format see http://developer.here.com/rest-apis/documentation/venue-maps/topics/resource-type-venue-interaction-tile-space.html

Returns:
 
{Object}
raw space data object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.