more structure in doc/ol3.md

This commit is contained in:
Éric Lemoine
2012-07-05 12:08:06 +02:00
committed by Tom Payne
parent 3efa392d1f
commit 6f1f9922cc
+15 -3
View File
@@ -215,29 +215,41 @@ will occasionally need to be passed to TileGrid functions for cropping.
DESIGN ASSERTIONS DESIGN ASSERTIONS
================= =================
Map
- A map has a renderer (the map renderer). - A map has a renderer (the map renderer).
- A map has a camera. - A map has a camera.
- Multiple maps can share the same camera. - Multiple maps can share the same camera.
- A map has a layer list. - A map has a layer list.
Layer
- A layer can have multiple projections (the supported projections).
- A layer advertizes the projections it supports.
- A layer returns no data if asked data for an unsupported projection.
LayerView
- A layer view stores view-related states for a layer. - A layer view stores view-related states for a layer.
- View-related states include visibility, opacity, saturation, hue, etc. - View-related states include visibility, opacity, saturation, hue, etc.
- A layer view has a layer. - A layer view has a layer.
- Multiple layer views can share the same layer. - Multiple layer views can share the same layer.
- In other words a layer can be viewed in different manners. - In other words a layer can be viewed in different manners.
Renderer
- The map renderer responds to events. - The map renderer responds to events.
- The map renderer receives events from the camera. - The map renderer receives events from the camera.
- The map renderer creates layer renderers. - The map renderer creates layer renderers.
- A layer can have multiple projections (the supported projections). Control
- A layer advertizes the projections it supports.
- A layer returns no data if asked data for an unsupported projection.
- A control may listen to map events. - A control may listen to map events.
- A control may listen to camera events. - A control may listen to camera events.
- A map navigation control acts on the camera. - A map navigation control acts on the camera.
MVC
- Types can be described in MVC terms. - Types can be described in MVC terms.
- Models don't know what rendering means. - Models don't know what rendering means.
- Maps are models. - Maps are models.