heremaps / harp.gl

3D web map rendering engine written in TypeScript using three.js
Apache License 2.0
1.29k stars 197 forks source link

why does not work on github pages #1536

Closed caginagirdemir closed 4 years ago

caginagirdemir commented 4 years ago

I uploaded it to github pages but the map is not coming. There are appear only keys.

1

Github pages are not running Python. Can problem relevant it? thanks in advance.

nzjony commented 4 years ago

@caginagirdemir , what errors do you have in the console?

caginagirdemir commented 4 years ago

@nzjony

image image image image

caginagirdemir commented 4 years ago

I don't understand why it doesn't work. I just loaded the sample code but i couldn't run a python via github. I guess harp gl cannot run through github pages ?

nzjony commented 4 years ago

You have a screenshot with a missing requirements.txt, I guess that is necessary?

nzjony commented 4 years ago

I did a local git clone of your https://github.com/caginagirdemir/webglproject and opened the index.html, I get an issue with: index.js:20 Uncaught TypeError: mapControls.setRotation is not a function

nzjony commented 4 years ago

use the function lookAt instead, like: mapView.lookAt({heading: 90}), see: https://www.harp.gl/docs/master/doc/classes/harp_mapview.mapview-1.html#lookat

nzjony commented 4 years ago

We will fix the documentation: https://developer.here.com/tutorials/harpgl/ ASAP

caginagirdemir commented 4 years ago

Thank you @nzjony , I fixed problem is here, index.js:20 Uncaught TypeError: mapControls.setRotation is not a function I put to ahead of line of code that comment sign, and now working.

nzjony commented 4 years ago

Great to hear @caginagirdemir, and thanks for reporting the issue!

Can I close this issue if it is fixed?

caginagirdemir commented 4 years ago

Yes, you can.