GpsGate Server JavaScript API

Map  1.0.0

GpsGate Server JavaScript API > Map > Franson.Map.GMapGraphicsOverlay
Search:
 
Filters

protected Class Franson.Map.GMapGraphicsOverlay - extends GMap.GOverlay

implements the GMap.GOverlay interface. Connects ontop of google as a google overlay and maintains state of a map-type agnostic map-surface layer.
All our other graphics and layers then use this (instance) (via getSurface).
In practice this should only be instantiated from within the Franson.GMapAdapter.

Constructor

Franson.Map.GMapGraphicsOverlay(mapSurface)
Parameters:
mapSurface <Franson.Map.MapSurface>

Properties

_dirty - private object

to keep track of when the projection has changed and we need to do a complete refresh of the surface

_events - private object


_map - private object


_mapSurface - private object


Methods

copy

void copy()
GOverlay interface (is this fn really used by GMap anymore? doesn't seem so..) -> seems to be used (only?) when mirroring overlays to the "showmapblowup" mini-map in infowindows. GOverlay.copy
Returns: void

destroy

void destroy()
destructor
Returns: void

getSurface

Franson.Graphics.MapSurface getSurface()
Returns: Franson.Graphics.MapSurface

initialize

void initialize(map)
GOverlay interface see GOverlay.initialize
Parameters:
map <GMap2>
Returns: void

redraw

void redraw(force)
GOverlay interface todo: there's actually two cases we could split the flag in. repojection and re-centering of div&SVG see GOverlay.redraw note that this is called on every move-increment(sync=false), not just on end of move.
Parameters:
force <boolean>
Returns: void

remove

void remove()
Remove the main DIV from the map pane GOverlay interface see GOverlay.remove
Returns: void


Copyright © 2009 Franson Technology AB, Sweden. All rights reserved.