GpsGate Server JavaScript API

Map  1.0.0

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

Class Franson.Map.Track - extends Franson.Map.IOverlay

aprox match of the GPolyline interface (except the optionals) todo: version taking full DojoX brushes etc.

Constructor

Franson.Map.Track(geoPoints, [color='blue'], [weight=5], [opacity=0.45], [options])
Parameters:
geoPoints <TrackPoint[]>
[color='blue'] <string|dojo.Color|integer[4]> hex-color string. optional. default blue (#0000ff)
[weight=5] <number> width in pixels
[opacity=0.45] <float>
[options] <literal>

Properties

_color - private dojo.Color


_geoPoints - private TrackPoint[]


_segments - private object


Methods

destroy

void destroy()
destructor
Returns: void

getBounds

Franson.Geo.Bounds getBounds()
Returns: Franson.Geo.Bounds

getVertex

TrackPoint getVertex(index)
Parameters:
index <integer>
Returns: TrackPoint

getVertexCount

integer getVertexCount()
Returns: integer

getVertices

TrackPoint[] getVertices()
Returns: TrackPoint[]

hide

void hide()
Returns: void

initialize

protected void initialize(layer)
Parameters:
layer <Franson.Map.ILayer>
Returns: void

isHidden

boolean isHidden()
Returns: boolean
isHidden

redraw

protected void redraw([force=false])
GOverlay interface Called by the map when the map display has changed. The argument force will be true if the zoom level or the pixel offset of the map view has changed, so that the pixel coordinates need to be recomputed.
Parameters:
[force=false] <boolean> Is projection necessary? (in practice this means zoom change)
Returns: void

remove

protected void remove()
Returns: void

show

void show()
Returns: void

Events

onclick

onclick ( latlng )
(if options.clickable)
Parameters:
latlng <LatLng>

onremove

onremove ( )
fired in remove()

onvisibilitychanged

onvisibilitychanged ( visible )
fired in hide() and show()
Parameters:
visible <boolean>


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