Closed psociety closed 2 years ago
@psociety , thank you for the issue and I apologise for the issues you are having.
Please use: https://developer.here.com/tutorials/harpgl
I will remove the offending items so that no one else in future has any issues, thank you!!!
@psociety , please see: #2296
@nzjony please notice that https://developer.here.com/tutorials/harpgl/#install-harp.gl also doesn't work unless Move Control related lines are removed : o
@psociety , sorry, I missed that, I didn't read your entire message. I take a look now.
@psociety , the problem is with:
const mapControls = new harp.MapControls(map);
It should be
const mapControls = new harp.MapControls(mapView);
I.e. notice map
is incorrect and mapView
is correct.
@psociety, it is now up to date. Thanks a lot!
I will close @psociety , but please reopen if there is any issue I have missed.
@nzjony The GettingStartedGuide page now links to the tutorial online. On the tutorial, under the section for installing NPM the only info is a link to the GettingStartedGuide, which immediately links back to the tutorial. There is no instructions for installing via NPM anymore
@LukeParky , thank you, see: https://github.com/heremaps/harp.gl/pull/2343
Describe the bug Following "Getting Started Guide" leads to a broken example.
Info
To Reproduce Steps to reproduce the behavior:
const dataSource = new VectorDataSource({ baseUrl: "https://vector.hereapi.com/v2/vectortiles/base/mc", authenticationCode: "YOUR-APIKEY" }); mapView.addDataSource(dataSource);
npx webpack
doesn't explode, but doesnt create the bundle file.three.min.js
is also generated but not automatically moved todist
directory, so you end up with another 404 unless you manually copy it.Seems to ignore the given element as tries to setup the map over another canvas with
map
id.And you also get a
Uncaught ReferenceError: THREE is not defined in http://localhost:8080/decoder.bundle.js:25447
Which i fixed manually copy &pasting three.min inside decoder.bundle.js.At the end all i get is:![image](https://user-images.githubusercontent.com/29523682/130484214-3d141383-1a19-4896-b56a-1294af1213be.png)
With no errors in console.
https://developer.here.com/tutorials/harpgl/#install-harp.gl This example is also broken:![image](https://user-images.githubusercontent.com/29523682/130502633-b5b4d0e3-53f7-42fa-a50f-1f098f0a667a.png)