iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.1k stars 300 forks source link

how to create heatmap in iTowns? #2185

Open beautifulskymoon opened 1 year ago

beautifulskymoon commented 1 year ago

I want to add a heatmap feature to iTowns, but I'm not sure where to start.

LoicUTC commented 1 year ago

It could be a very interesting feature !

jailln commented 1 year ago

That would be nice indeed :) there is multiple ways to specify and implement this; could you describe your usecase with more details please?

beautifulskymoon commented 1 year ago

That would be nice indeed :) there is multiple ways to specify and implement this; could you describe your usecase with more details please?

Population distribution in big cities

jailln commented 1 year ago

Ok, how is represented your input data? I'm not sure this is the kind of features that should be added to itowns core and that we should go down the "dataviz path". Maybe we should focus on integrating itowns with other dataviz libraries such as deckgl for such usecases instead.

WDYT ? @iTowns/product-owners @iTowns/admins

A itowns <-> deckgl integration has been implemented in this PR. It is working and there should not be much left to do to finish it. You can test it or use it as inspiration to make your own integration with a more recent deckgl version. Let us know :)

Desplandis commented 1 year ago

I share the same opinion, we are first and foremost a 3D engine and there are already high-quality data-visualization libraries (e.g. deck.gl, d3.js, ...). Nonetheless, I think we should work towards providing an easy way to integrate those libraries on projects using itowns (and maybe add an example of such integration on our side ?).

@jailln @LoicUTC: There may be other users that could be interested on such dataviz functionnality, shall we open a proposal/discussion ?

@beautifulskymoon: If you tried the integration with deck.gl we are interested by your inputs. =)