Display an Indoor Map
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/indoor-map-movement/demo.js b/indoor-map-movement/demo.js
index 29ed638..75c5375 100644
--- a/indoor-map-movement/demo.js
+++ b/indoor-map-movement/demo.js
@@ -23,7 +23,7 @@ const venueId = 'indoormap-00000000-0000-4000-a000-000000027158';
*/
function addVenueToMap(map) {
// Get an instance of the Indoor Maps service using a valid apikey for Indoor Maps
- const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn }, 2);
+ const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn });
// Indoor Maps service provides a loadVenue method
venuesService.loadVenue(venueId).then((venue) => {
diff --git a/indoor-map-ui-interaction/demo.html b/indoor-map-ui-interaction/demo.html
index f75810e..790b443 100644
--- a/indoor-map-ui-interaction/demo.html
+++ b/indoor-map-ui-interaction/demo.html
@@ -5,12 +5,13 @@
Display an Indoor Map
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/indoor-map-ui-interaction/demo.js b/indoor-map-ui-interaction/demo.js
index 5019031..66b73ef 100644
--- a/indoor-map-ui-interaction/demo.js
+++ b/indoor-map-ui-interaction/demo.js
@@ -25,7 +25,7 @@ var infoBubble;
*/
function addVenueToMap(map) {
// Get an instance of the Indoor Maps service using a valid apikey for Indoor Maps
- const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn }, 2);
+ const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn });
// Indoor Maps service provides a loadVenue method
venuesService.loadVenue(venueId).then((venue) => {
diff --git a/indoor-map/demo.html b/indoor-map/demo.html
index caf00b2..bd680a3 100644
--- a/indoor-map/demo.html
+++ b/indoor-map/demo.html
@@ -5,12 +5,13 @@
Display an Indoor Map
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -55,13 +56,13 @@
Show an Indoor Map
Code
- The example shows loading the Indoor Map using H.venues.Service2 and renders the indoor map using an instance of H.venues.Provider.
+ The example shows loading the Indoor Map using H.venues.Service and renders the indoor map using an instance of H.venues.Provider.
The example also shows how to:
-
get the list of indoor maps from the given HRN using H.venues.Service2.getMapInfoList()
+
get the list of indoor maps from the given HRN using H.venues.Service.getMapInfoList()
disable the base map while loading a indoor map using H.Map.setBaseLayer(layer)
switch to an indoor map level other than the default using H.venues.Venue.setActiveLevelIndex(levelIndex)
-
override default indoor map label text preferences using H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE
+
override default indoor map label text preferences using H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE
diff --git a/indoor-map/demo.js b/indoor-map/demo.js
index 0e6d095..ac86416 100644
--- a/indoor-map/demo.js
+++ b/indoor-map/demo.js
@@ -27,8 +27,8 @@ const levelIndex = 1;
// Optional, list of label text preferences to override.
const labelTextPreferenceOverride = [
- H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE.OCCUPANT_NAMES,
- H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE.SPACE_NAME
+ H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE.OCCUPANT_NAMES,
+ H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE.SPACE_NAME
]
/**
@@ -42,7 +42,7 @@ function addVenueToMap(map, platform) {
const venuesProvider = new H.venues.Provider();
// Get an instance of the Indoor Maps service using a valid apikey for Indoor Maps
- const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn }, 2);
+ const venuesService = platform.getVenuesService({ apikey: yourApikey, hrn: indoorMapHrn });
// Use venuesService.getMapInfoList to retrieve the list of Indoor maps from the given HRN
venuesService.getMapInfoList().then(mapInfoList => {