ol3.md updates
This commit is contained in:
+20
-14
@@ -1,6 +1,7 @@
|
|||||||
CLASS HIERARCHY
|
CLASS HIERARCHY
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
```
|
||||||
goog.math.Coordinate // Simple 2D point
|
goog.math.Coordinate // Simple 2D point
|
||||||
|
|
||||||
|
|
||||||
@@ -8,7 +9,6 @@ goog.math.Coordinate3
|
|||||||
|
|
|
|
||||||
+- TileCoord
|
+- TileCoord
|
||||||
|
|
||||||
|
|
||||||
goog.math.Box
|
goog.math.Box
|
||||||
|
|
|
|
||||||
+- TileBounds // A range of tiles in two dimensions, integer coordinates, z not stored
|
+- TileBounds // A range of tiles in two dimensions, integer coordinates, z not stored
|
||||||
@@ -66,11 +66,13 @@ goog.events.EventTarget
|
|||||||
| +- TileQueue
|
| +- TileQueue
|
||||||
|
|
|
|
||||||
+- Tile
|
+- Tile
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Layer renderer hierarchy
|
Layer renderer hierarchy
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
```
|
||||||
goog.events.EventTarget
|
goog.events.EventTarget
|
||||||
|
|
|
|
||||||
+- MVCObject
|
+- MVCObject
|
||||||
@@ -100,25 +102,26 @@ goog.events.EventTarget
|
|||||||
| | +- VMLHTMLVectorLayerRenderer
|
| | +- VMLHTMLVectorLayerRenderer
|
||||||
| |
|
| |
|
||||||
| +- WebGLVectorLayerRenderer
|
| +- WebGLVectorLayerRenderer
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
OBJECT PROPERTIES AND METHODS
|
OBJECT PROPERTIES AND METHODS
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
Notation:
|
Notation:
|
||||||
property type // property with type, trailing ? indicates unsure
|
|
||||||
// getters and setters are assumed to exist
|
|
||||||
f(args) -> type // function taking args returning type
|
|
||||||
f(args) -> type = something // f is a trivial wrapper around something
|
|
||||||
fires 'x' // fires events of type 'x'
|
|
||||||
|
|
||||||
|
- `property type` property with type, trailing ? indicates unsure, getters and setters are assumed to exist.
|
||||||
|
- `f(args) -> type` function taking args returning type.
|
||||||
|
- `f(args) -> type = something` f is a trivial wrapper around something.
|
||||||
|
- `fires 'x'` fires events of type 'x'.
|
||||||
|
|
||||||
Principles:
|
Principles:
|
||||||
All non-trivial objects inherit from MVCObject
|
|
||||||
All non-trivial collections are either MVCArrays or a child class thereof
|
|
||||||
Resolutions are Array.<number>, infinitely scalable resoueces (e.g. vectore layers) have resolutions == null
|
|
||||||
|
|
||||||
|
- All non-trivial objects inherit from `MVCObject`.
|
||||||
|
- All non-trivial collections are either `MVCArrays` or a child class thereof.
|
||||||
|
- Resolutions are `Array.<number>`, infinitely scalable resources (e.g. vectore layers) have resolutions == null.
|
||||||
|
|
||||||
|
```
|
||||||
MVCObject
|
MVCObject
|
||||||
as Google Maps MVCObject
|
as Google Maps MVCObject
|
||||||
freeze()
|
freeze()
|
||||||
@@ -198,13 +201,16 @@ Renderer
|
|||||||
map Map
|
map Map
|
||||||
camera Camera
|
camera Camera
|
||||||
getCapabilities() -> Array.<string> // maybe ?
|
getCapabilities() -> Array.<string> // maybe ?
|
||||||
|
```
|
||||||
|
|
||||||
|
Questions:
|
||||||
|
|
||||||
|
- Store tile layer extent in TileLayer or in TileGrid? (not clear)
|
||||||
|
- Who determines "best" resolution? (static function?)
|
||||||
|
|
||||||
|
|
||||||
Question: store tile layer extent in TileLayer or in TileGrid? (not clear)
|
Todo: if tile layer extent stored in TileLayer rather than TileGrid then extent
|
||||||
Question: who determines "best" resolution? (static function?)
|
will occasionally need to be passed to TileGrid functions for cropping.
|
||||||
|
|
||||||
|
|
||||||
Todo: if tile layer extent stored in TileLayer rather than TileGrid then extent will occasionally need to be passed to TileGrid functions for cropping
|
|
||||||
|
|
||||||
DESIGN ASSERTIONS
|
DESIGN ASSERTIONS
|
||||||
=================
|
=================
|
||||||
|
|||||||
Reference in New Issue
Block a user