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 298 forks source link

Choose new name for Class Layer #124

Closed gchoqueux closed 7 years ago

gchoqueux commented 8 years ago

Choose new name for Class Layer

peppsac commented 7 years ago

This is my understanding of Layer:

A Layer is used to display data sources. Currently we only support Layers that are geometries + textures|colors, e.g:

Geometries, textures and colors can be data layers (wmts, geojson, etc) or computed by itowns (tilemesh)

Some Layers depends on other Layers (e.g: buildings may depend on globe to get accurate vertical positionning).

A Scene is composed of N (>=1) of Layers.

peppsac commented 7 years ago

Here's an example from OpenLayers:

  new ol.Map({
    layers: [
      new ol.layer.Tile({source: new ol.source.OSM()})
    ],
    view: new ol.View({
      center: [0, 0],
      zoom: 2
    }),
    target: 'map'
  });

They only support 2D so their API can be simpler (textures are always mapped to a 2D plane).

gchoqueux commented 7 years ago

move in #217