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>
Methods
void
destroy()
destructor
Franson.Geo.Bounds
getBounds()
- Returns:
Franson.Geo.Bounds
TrackPoint
getVertex(index)
- Parameters:
-
index
<integer>
- Returns:
TrackPoint
TrackPoint[]
getVertices()
protected
void
initialize(layer)
- Parameters:
-
layer
<Franson.Map.ILayer>
- Returns:
void
boolean
isHidden()
- Returns:
boolean
- isHidden
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
Events
onclick
(
latlng
)
(if options.clickable)
- Parameters:
-
latlng
<LatLng>
onremove
(
)
fired in remove()
onvisibilitychanged
(
visible
)
fired in hide() and show()
- Parameters:
-
visible
<boolean>