VCityTeam / UD-Viz

UD-Viz is a javascript mono repository for creating web applications for visualizing and interacting with geospatial 3D urban data.
Other
35 stars 18 forks source link

Enhancement of the layer choice widget by adding a layer legend UI #322

Open CorentinGaut opened 2 years ago

CorentinGaut commented 2 years ago

Itowns does not provide the ability to add legends to data layers. We will have to develop a legend so that we can better understand the different data layers that are displayed in the UD-Viz scene.

A good exemple of legends is this picture : image From the DataFrance website with a clear legend of the data.

jailln commented 2 years ago

The itowns team recently started to develop so-called "widgets" (see examples and code). Maybe this legend UI could be implemented as a widget in iTowns ?

EricBoix commented 2 years ago

Among layers stands the 3DTiles layer (refer e.g. to this demo. Do we want to be able to a legend to such a 3DTiles layer ? When yes, change the title of this issue to reflect that choice.

CorentinGaut commented 2 years ago

Yes we want to legend 3DTiles too. The features are :

valentinMachado commented 1 year ago

related #370

LorenzoMarnat commented 1 year ago

In Vallée du Gier's demo, I've created some methods to create layer legends:

image image

The layer legends can be configured in a JSON file.

This code can be enhanced and contributed to iTowns/UD-Viz