Skip to content

Revert "Updated indoor-map example to add code for venuesService.getMapInfoLi…" #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions indoor-map/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ <h1>Show an Indoor Map</h1>
<div id="map"></div>
<h3>Code</h3>
<p>
The example shows loading the Indoor Map using <code>H.venues.Service2</code> and renders the indoor map using an instance of <code>H.venues.Provider</code>.<br>
The example shows loading the Indoor Map using <code>H.venues.Service</code> and renders the indoor map using an instance of <code>H.venues.Provider</code>.<br>
The example also shows how to:
<ul>
<li>get the list of indoor maps from the given HRN using <code>H.venues.Service2.getMapInfoList()</code></li>
<li>disable the base map while loading a indoor map using <code>H.Map.setBaseLayer(layer)</code></li>
<li>switch to an indoor map level other than the default using <code>H.venues.Venue.setActiveLevelIndex(levelIndex)</code></li>
<li>disable the base map while loading a indoor map using <code>H.Map.setBaseLayer (layer)</code></li>
<li>switch to an indoor map level other than the default using <code>H.venues.Venue.setActiveLevelIndex (levelIndex)</code></li>
<li>override default indoor map label text preferences using <code>H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE</code></li>
</ul>
</p>
Expand Down
7 changes: 0 additions & 7 deletions indoor-map/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ 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);

// Use venuesService.getMapInfoList to retrieve the list of Indoor maps from the given HRN
venuesService.getMapInfoList().then(mapInfoList => {
mapInfoList.forEach(mapInfo => {
console.log("Indoor map id: " + mapInfo.mapId + ", map name: " + mapInfo.mapName);
});
});

// Indoor Maps service provides a loadVenue method. Optionally, overriding the label preferences
venuesService.loadVenue(venueId, { labelTextPreferenceOverride }).then((venue) => {
// add Indoor Maps data to the Indoor Maps provider
Expand Down