classafFantomMappy::MapViewer
sys::Obj afFantomMappy::Viewer afFantomMappy::MapViewer
@
Js
Renders a MappyMap to the screen. MapViewer
creates a LayerViewer for each of the Layers in the MappyMap.
Updating the coordinates of a MapViewer
also updates the coordinates of all the underlying LayerViewers.
Note that the coordinates of a MapViewer
are held independently of the coordinates held by the underlying LayerViewers. i.e. If you were to change the coordinates of the LayerViewers, the coordinates held by the MapViewer
would remain unchanged.
- layerViewers
LayerViewer[] layerViewers := LayerViewer[,] { private set }
The viewers for each
Layer
.- make
new make(MappyMap map, Renderer renderer, Rect viewBounds)
Creates a LayerViewer for each of the
Layer
s in the MappyMap and places the viewing area at the given offset.- map
MappyMap map { private set }
The
MappyMap
thisViewer
renders.- updateAnimBlocks
Void updateAnimBlocks()