Skip to content

Commit 2e577f0

Browse files
author
Andrii Heonia
authored
Update links after dev portal migration (#151)
* Update links in README and demos --------- Signed-off-by: Andrii Heonia <[email protected]>
1 parent a474779 commit 2e577f0

File tree

32 files changed

+124
-131
lines changed

32 files changed

+124
-131
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Maps API for JavaScript
22

3-
This repository holds a series of JavaScript based examples using the **HERE Maps API for JavaScript**. More information about the API can be found on [developer.here.com](https://developer.here.com/develop/javascript-api) under the JavaScript APIs section.
3+
This repository holds a series of JavaScript based examples using the **HERE Maps API for JavaScript**. More information about the API can be found on [https://here.com/docs](https://www.here.com/docs/category/here-sdk-for-js) website.
44
To run the examples, clone this repo to a folder on your Desktop. Replace the credentials in the **test-credentials.js** file with your own credentials.
55

66
> **Note:** In order to get the sample code to work, you **must** replace all instances of `window.apikey` within the code and use your own **HERE** credentials.
77
8-
> You can obtain a set of credentials from the [Plans Page](https://developer.here.com/plans) on developer.here.com.
8+
> You can obtain a set of credentials from the [HERE Base Plan Pricing](https://here.com/get-started/pricing) page on here.com.
99
1010
See the [LICENSE](LICENSE) file in the root of this project for license details.
1111

custom-tile-overlay/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>Credits</h2>
3131
</p>
3232
<h3>Code</h3>
3333
<p>
34-
The example uses the <a target="_blank" rel="nofollow" href="http://developer.here.com/javascript-apis/documentation/v3/maps/topics_api_nlp/h-map-provider-imagetileprovider.html"><code>H.map.provider.ImageTileProvider</code></a> class for fetching our custom tiles. The <code>getUrl()</code> method constructs the URL of the tile for the specified column/row/zoom position. The result is displayed on the map as an additional layer using an instance of the <a target="_blank" rel="nofollow" href="http://developer.here.com/javascript-apis/documentation/v3/maps/topics_api_nlp/h-map-layer-layer.html"><code>H.map.layer.TileLayer</code></a> class which has been created by passing in the image tile provider object.
34+
The example uses the <a target="_blank" rel="nofollow" href="https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.map.provider.ImageTileProvider.html"><code>H.map.provider.ImageTileProvider</code></a> class for fetching our custom tiles. The <code>getUrl()</code> method constructs the URL of the tile for the specified column/row/zoom position. The result is displayed on the map as an additional layer using an instance of the <a target="_blank" rel="nofollow" href="https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.map.layer.TileLayer.html"><code>H.map.layer.TileLayer</code></a> class which has been created by passing in the image tile provider object.
3535
</p>
3636
<script type="text/javascript" src='demo.js'></script>
3737
</body>

display-geojson-on-map/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function showGeoJSONData (map) {
22
// Create GeoJSON reader which will download the specified file.
3-
// Shape of the file was obtained by using HERE Geocoder API.
3+
// Shape of the file was obtained by using HERE Geocoding and Search API.
44
// It is possible to customize look and feel of the objects.
55
var reader = new H.data.geojson.Reader('data/berlin.json', {
66
// This function is called each time parser detects a new map object

geocode-a-location-from-address/demo.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" type="text/css" href="demo.css" />
99
<link rel="stylesheet" type="text/css" href="styles.css" />
1010
<link rel="stylesheet" type="text/css" href="../template.css" />
11-
<script type="text/javascript" src='../test-credentials.js'></script>
11+
<script type="text/javascript" src='../test-credentials.js'></script>
1212
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
1313
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
1414
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
@@ -19,16 +19,16 @@
1919
<h1>Search for a Location based on an Address</h1>
2020
<p>Request a location using a free-form text input and display it on the map.</p>
2121
</div>
22-
<p>This example makes a geocoding request and retrieves the latitude, longitude and
23-
complete address details of <b>200 S Mathilda Ave, Sunnyvale, CA</b> based on a free-form
22+
<p>This example makes a geocoding request and retrieves the latitude, longitude and
23+
complete address details of <b>200 S Mathilda Ave, Sunnyvale, CA</b> based on a free-form
2424
text input. A clickable marker is placed on the location found.</p>
2525
<div id="map"></div>
2626
<div id="panel"></div>
2727
<h3>Code</h3>
2828
<p>Access to the geocoding service is obtained from the <code>H.service.Platform</code>
29-
by calling <code>getSearchService()</code>. The <code>geocode()</code> method is used
30-
to find a location by passing in the relevant <code>q</code> parameter as defined in
31-
<a href="https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-geocode-brief.html" target="_blank">Geocoding and Search API v7</a>.
29+
by calling <code>getSearchService()</code>. The <code>geocode()</code> method is used
30+
to find a location by passing in the relevant <code>q</code> parameter as defined in
31+
<a href="https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get" target="_blank">Geocoding and Search API v7</a>.
3232
The styling and display of the response is under the control of the developer.</p>
3333
<script type="text/javascript" src='demo.js'></script>
3434
</body>

geocode-a-location-from-address/demo.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
*
66
* A full list of available request parameters can be found in the Geocoder API documentation.
7-
* see: http://developer.here.com/rest-apis/documentation/geocoder/topics/resource-geocode.html
7+
* see: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get
88
*
99
* @param {H.service.Platform} platform A stub class to access HERE services
1010
*/
@@ -22,9 +22,8 @@ function geocode(platform) {
2222
}
2323
/**
2424
* This function will be called once the Geocoder REST API provides a response
25-
* @param {Object} result A JSONP object representing the location(s) found.
26-
*
27-
* see: http://developer.here.com/rest-apis/documentation/geocoder/topics/resource-type-response-geocode.html
25+
* @param {Object} result A JSON object representing the location(s) found.
26+
* See: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get
2827
*/
2928
function onSuccess(result) {
3029
var locations = result.items;

geocode-a-location-from-structured-address/demo.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" type="text/css" href="demo.css" />
99
<link rel="stylesheet" type="text/css" href="styles.css" />
1010
<link rel="stylesheet" type="text/css" href="../template.css" />
11-
<script type="text/javascript" src='../test-credentials.js'></script>
11+
<script type="text/javascript" src='../test-credentials.js'></script>
1212
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
1313
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
1414
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
@@ -19,18 +19,18 @@
1919
<h1>Search for a Location given a Structured Address</h1>
2020
<p>Request a location from a structured address and display it on the map.</p>
2121
</div>
22-
<p>This example makes a geocode request and retrieves the latitude, longitude and complete address details of
23-
<b>425 Randolph St, Chicago, IL</b> based on partial address information. Two addresses are found -
22+
<p>This example makes a geocode request and retrieves the latitude, longitude and complete address details of
23+
<b>425 Randolph St, Chicago, IL</b> based on partial address information. Two addresses are found -
2424
<i>425 E Randolph St.</i>, and <i>425 W Randolph St.</i> A clickable marker is placed on each location found.</p>
2525
<div id="map"></div>
2626
<div id="panel"></div>
2727
<h3>Code</h3>
2828
<p>Access to the geocoding service is obtained from the <code>H.service.Platform</code>
29-
by calling <code>getSearchService()</code>. The <code>geocode()</code> method is used
30-
to find a location by passing in the relevant values to the <code>qq</code> parameter (i.e. <code>country</code>, <code>city</code>,
31-
<code>street</code> and <code>housenumber</code>) as defined in
32-
<a href="https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-geocode-brief.html" target="_blank">Geocoding and Search API v7
33-
</a>.
29+
by calling <code>getSearchService()</code>. The <code>geocode()</code> method is used
30+
to find a location by passing in the relevant values to the <code>qq</code> parameter (i.e. <code>country</code>, <code>city</code>,
31+
<code>street</code> and <code>housenumber</code>) as defined in
32+
<a href="https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get" target="_blank">Geocoding and Search API v7
33+
</a>.
3434
The styling and display of the response is under the control of the developer.</p>
3535
<script type="text/javascript" src='demo.js'></script>
3636
</body>

geocode-a-location-from-structured-address/demo.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* based on a structured input
44
*
55
*
6-
* A full list of available request parameters can be found in the Geocoder API documentation.
7-
* see: http://developer.here.com/rest-apis/documentation/geocoder/topics/resource-geocode.html
6+
* A full list of available request parameters can be found in the Geocoding and Search API documentation.
7+
* see: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get
88
*
99
* @param {H.service.Platform} platform A stub class to access HERE services
1010
*/
@@ -22,9 +22,8 @@ function geocode(platform) {
2222
}
2323
/**
2424
* This function will be called once the Geocoder REST API provides a response
25-
* @param {Object} result A JSONP object representing the location(s) found.
26-
*
27-
* see: http://developer.here.com/rest-apis/documentation/geocoder/topics/resource-type-response-geocode.html
25+
* @param {Object} result A JSON object representing the location(s) found.
26+
* See: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html#/paths/~1geocode/get
2827
*/
2928
function onSuccess(result) {
3029
var locations = result.items;

indoor-map-movement/demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
<body>
4141
<h1>Indoor Map - Restrict map movement</h1>
4242
<p>
43-
More information on the use of the HERE Indoor Maps API is available <a href="https://developer.here.com/documentation/maps/dev_guide/topics/venues.html" target="_blank">here</a>.
43+
More information on the use of the HERE Indoor Maps API is available <a href="https://www.here.com/docs/bundle/maps-api-for-javascript-developer-guide/page/topics/indoor-maps.html" target="_blank">here</a>.
4444
</p>
45-
45+
4646
<p>
47-
This example shows an Indoor Map of the <b>Tiefgarage Riem Arcaden APCOA parking garage (27158)</b>.
47+
This example shows an Indoor Map of the <b>Tiefgarage Riem Arcaden APCOA parking garage (27158)</b>.
4848
This example also works with Mall of Berlin (22766) and Zurich Airport (7348)
4949
</p>
50-
50+
5151
<div id="map"></div>
5252
<h3>Code</h3>
5353
<p>

indoor-map-ui-interaction/demo.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@
4040
<body>
4141
<h1>Indoor Map UI Interactions</h1>
4242
<p>
43-
More information on the use of the HERE Indoor Maps API is available <a href="https://developer.here.com/documentation/maps/dev_guide/topics/venues.html" target="_blank">here</a>.
43+
More information on the use of the HERE Indoor Maps API is available <a href="https://www.here.com/docs/bundle/maps-api-for-javascript-developer-guide/page/topics/indoor-maps.html" target="_blank">here</a>.
4444
</p>
45-
45+
4646
<p>
47-
This example shows an Indoor Map of the <b>Mall of Berlin (22766)</b>.
47+
This example shows an Indoor Map of the <b>Mall of Berlin (22766)</b>.
4848
This example also works with Tiefgarage Riem Arcaden APCOA parking garage (27158) and Zurich Airport (7348)
4949
</p>
50-
50+
5151
<div id="map"></div>
5252
<h3>Code</h3>
5353
<p>
54-
The example shows UI interactions with the Indoor Map.<br>
54+
The example shows UI interactions with the Indoor Map.<br>
5555
The example covers the below mentioned samples:
5656
<ul>
5757
<li>the usage of the indoor map related UI controls to change levels and buildings using <code>H.venues.ui.LevelControl</code> and <code>H.venues.ui.DrawingControl</code> respectively.</li>

indoor-map/demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h1>Show an Indoor Map</h1>
4444
</p>
4545

4646
<p>
47-
More information on the use of the HERE Indoor Maps API is available <a href="https://developer.here.com/documentation/maps/dev_guide/topics/indoor-maps.html" target="_blank">here</a>.
47+
More information on the use of the HERE Indoor Maps API is available <a href="https://www.here.com/docs/bundle/maps-api-for-javascript-developer-guide/page/topics/indoor-maps.html" target="_blank">here</a>.
4848
</p>
4949

5050
<p>
@@ -65,7 +65,7 @@ <h3>Code</h3>
6565
</ul>
6666
</p>
6767
<p>
68-
For complete descriptions of the parameters shown in this example, see the <a href=https://developer.here.com/documentation/maps/dev_guide/api_reference/index.html target="_blank">API Reference</a>.
68+
For complete descriptions of the parameters shown in this example, see the <a href=https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.venues.html target="_blank">API Reference</a>.
6969
</p>
7070
<script type="text/javascript" src='demo.js'></script>
7171
</body>

interactive-basemap/demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
<h1>Interactive base map</h1>
2020
<p>Retrieve information associated with the map features</p>
2121
</div>
22-
<p>This example demonstrates how to enable the interactions with the base map features. See <a href="https://github.com/heremaps/maps-api-for-javascript-examples">the README</a> for instructions on how to run the example.The interactions are enabled for the countries'
22+
<p>This example demonstrates how to enable the interactions with the base map features. The interactions are enabled for the countries'
2323
cities', towns' and neighbourhoods' labels. When these labels are clicked the info bubble with the information about the label is shown.
2424
</p>
2525
<div id="map"></div>
2626
<h3>Code</h3>
27-
<p>The code below adds a <codeph>change</codeph> event listener to the instance of the <code>H.map.Style</code> associated with the
27+
<p>The code below adds a <codeph>change</codeph> event listener to the instance of the <code>H.map.render.webgl.Style</code> associated with the
2828
layer's provider. Within this listener data layers 'places' and 'places.populated-places' are set as interactive and the
2929
<code>tap</code> event listener is assigned to display the information in the info bubble. Please refer to the
30-
<a href="https://developer.here.com/documentation/maps/common/credentials.html">Developer Guide</a> for more information
31-
about the vector styles.
30+
<a href="https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.map.render.webgl.Style.html#setInteractive">setInteractive</a>
31+
method description for more information.
3232
</p>
3333
<script type="text/javascript" src='demo.js'></script>
3434
</body>

map-multi-language-support/demo.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" type="text/css" href="demo.css" />
99
<link rel="stylesheet" type="text/css" href="styles.css" />
1010
<link rel="stylesheet" type="text/css" href="../template.css" />
11-
<script type="text/javascript" src='../test-credentials.js'></script>
11+
<script type="text/javascript" src='../test-credentials.js'></script>
1212
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
1313
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
1414
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
@@ -22,14 +22,14 @@ <h1>Multi-language support</h1>
2222
<p>This example displays a movable map initially centered over <b>Hong Kong</b> <i>(22.2917°N, 114.1872°E)</i> with map labels in simplified Chinese.</i></p>
2323
<div id="map"></div>
2424
<h3>Code</h3>
25-
<p>A reference to the base map tile service is obtained using the <code>H.service.Platform</code>.
26-
Alternate languages can be requested by adding the <code>lg</code> parameter to the tile requests.
27-
That is done by calling createTileLayer method. 5th argument is list of key/value parameters which are
28-
passed to the map tile service when requesting each tile.
29-
A list of all supported map languages can be found in the API References of the underlying service used: <a href="https://developer.here.com/documentation/map-tile/dev_guide/topics/resource-base-maptile.html">HERE Map Tile API</a>
30-
and <a href="https://developer.here.com/documentation/vector-tiles-api/dev_guide/topics/languages.html">HERE Vector Tile API</a> </p>
25+
<p>A reference to the base map tile service is obtained using the <code>H.service.Platform</code>.
26+
Alternate languages can be requested by adding the <code>lg</code> parameter to the tile requests.
27+
That is done by calling createTileLayer method. 5th argument is list of key/value parameters which are
28+
passed to the map tile service when requesting each tile.
29+
A list of all supported map languages can be found in the API References of the underlying service used: <a href="https://www.here.com/docs/bundle/map-tile-developer-guide/page/topics/resource-base-maptile.html">HERE Map Tile API</a>
30+
and <a href="https://www.here.com/docs/bundle/vector-tile-api-developer-guide/page/topics/languages.html">HERE Vector Tile API</a> </p>
3131
<p>It is possible to specify map language for all layers at once when using <code>H.service.Platform.createDefaultLayers</code> method.</p>
32-
<p>Language of the UI controls can be specified when calling <code>H.ui.UI.createDefault</code> method.
32+
<p>Language of the UI controls can be specified when calling <code>H.ui.UI.createDefault</code> method.
3333
3rd argument is either a supported language code or a custom <code>H.ui.i18n.Localization object</code>.</p>
3434
<script type="text/javascript" src='demo.js'></script>
3535
</body>

0 commit comments

Comments
 (0)