Skip to content
Draft
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
13 changes: 7 additions & 6 deletions indoor-map-movement/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="description" content="Use the HERE Indoor Maps API to load and visualize an indoor map">
<title>Display an Indoor Map</title>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.2/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-harp.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="../template.css" />
<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src='../test-credentials.js'></script>
Expand Down
2 changes: 1 addition & 1 deletion indoor-map-movement/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
13 changes: 7 additions & 6 deletions indoor-map-ui-interaction/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="description" content="Use the HERE Indoor Maps API to load and visualize an indoor map">
<title>Display an Indoor Map</title>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.2/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="../template.css" />
<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src='../test-credentials.js'></script>
Expand Down
2 changes: 1 addition & 1 deletion indoor-map-ui-interaction/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
19 changes: 10 additions & 9 deletions indoor-map/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="description" content="Use the HERE Indoor Maps API to load and visualize an indoor map">
<title>Display an Indoor Map</title>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.2/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-harp.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-mapevents.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.2/mapsjs-venues.js"></script>
<link rel="stylesheet" type="text/css" href="../template.css" />
<link rel="stylesheet" type="text/css" href="demo.css" />
<script type="text/javascript" src='../test-credentials.js'></script>
Expand Down Expand Up @@ -55,13 +56,13 @@ <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>get the list of indoor maps from the given HRN using <code>H.venues.Service.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>override default indoor map label text preferences using <code>H.venues.Service2.LABEL_TEXT_PREFERENCE_OVERRIDE</code></li>
<li>override default indoor map label text preferences using <code>H.venues.Service.LABEL_TEXT_PREFERENCE_OVERRIDE</code></li>
</ul>
</p>
<p>
Expand Down
6 changes: 3 additions & 3 deletions indoor-map/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

/**
Expand All @@ -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 => {
Expand Down