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

There is a problem where examples #1552

Closed caginagirdemir closed 4 years ago

caginagirdemir commented 4 years ago

Everything is very nice, i watched this video https://www.youtube.com/watch?v=YhqpB58-wiQ I did the things described here and created an example. But the structures of the examples page code (harp.gl/docs/master/examples/) are very different. I watched the video for two hours and now I cannot take advantage of the examples. First of all, why are you doing so differently? In examples the locations and spellings of the codes are different, constantly giving errors when I trying on index.js. I learned via js bundle, and so unfortunately example codes are garbage

What can I do about it? are there any other examples?

I want to do something similar to this example. https://www.harp.gl/docs/master/examples/#datasource_features_polygons.html It could be 2d.

if i can't do this , creating dots (geoJsonDataSource) from this site http://geojson.io/#map=2/20.0/0.0

Then I will add it as joseon file as in the video

I am determined to do this!

nzjony commented 4 years ago

hi @caginagirdemir , thanks for your issue and I appreciate your determination. I apologize for the frustration you are having with our documentation. We have changed the API, such that some of the methods that the video is referring to no longer exists (and actually the main tutorial here: https://developer.here.com/tutorials/harpgl is also out of date, I will fix it hopefully this week). We will learn from this and try to improve in future.

Yes, the examples show the most up to date API, so they are the best reference point for learning, however we will fix the tutorial also, because this is generally much easier to get started in the project.

nzjony commented 4 years ago

This is how you can see the source code of the examples:

Screenshot 2020-05-25 at 10 06 43

If I understand you correct, you want to render some geojson on the map? Here is another example that might help: https://www.harp.gl/docs/master/examples/codebrowser.html?src=src%2Fdatasource_geojson_choropleth.ts

Or can I help you more concretely?

caginagirdemir commented 4 years ago

thank you,

I think I will make some more progress thanks to source.

I will benefit from this site. https://www.harp.gl/docs/master/doc/

Is there a class that provide create the side panel like in the examples in this video?

https://twitter.com/dbabbs/status/1206596849156538368

it will be easier if there is

nzjony commented 4 years ago

@caginagirdemir , no problems. Yes I hope the docs can help you, please let us know if you find something missing.

We don't have any such side panels like in the video you showed, but try reaching out to @dbabbs , maybe he can give you some hints how he did it.

dbabbs commented 4 years ago

The side panels in my Twitter video are just HTML overlays on top of the map. They aren't technically part of harp.gl, but rather something on top.

Eg, take this map: https://dbabbs.github.io/traffic/ The sidebar CSS can be found here: https://github.com/dbabbs/traffic/blob/master/index.css#L24

nzjony commented 4 years ago

@caginagirdemir can I close this issue? Or is there something outstanding that you need?

caginagirdemir commented 4 years ago

yes you can, I want to send away for you a beer when I come to Berlin.

ninok commented 4 years ago

Unfortunately github issues don't have a blocked by beer state so I close this issue :beers: :laughing: