Class Index | File Index

Classes


Class PhotoTopo.Options


Defined in: phototopo.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
The options to pass in when creating a topo
Field Summary
Field Attributes Field Name and Description
 
If you want the color of the route to be inherited from the color of the label
 
true if you want the widget to be editable
 
The id of the html div that the topo shold be created in
 
A function which when given a routeId should return a RouteLabel
 
The height of the topo in pixels
 
The url to the photo
 
A callback with a JSON dump of all route data to persist somehow
 
A callback with the Route
 
A callback with the Route
 
A callback with the Route
 
A callback with the Route
 
A callback with the Route
 
a json hash of routes.
 
If you want the routes to not overlap when they use the same points
 
If false point types are hidden (eg on small versions of a topo)
 
The thickness of the routes in pixels
 
A scaling factor for drawing the topo
 
The width of the topo in pixels
Class Detail
PhotoTopo.Options()
The options to pass in when creating a topo
Field Detail
{Boolean} autoColors
If you want the color of the route to be inherited from the color of the label

{Boolean} editable
true if you want the widget to be editable

elementId
The id of the html div that the topo shold be created in

{Function} getlabel
A function which when given a routeId should return a RouteLabel

{Interger} height
The height of the topo in pixels

{String} imageUrl
The url to the photo

{Function} onchange
A callback with a JSON dump of all route data to persist somehow

{Function} onclick
A callback with the Route

{Function} ondeselect
A callback with the Route

{Function} onmouseout
A callback with the Route

{Function} onmouseover
A callback with the Route

{Function} onselect
A callback with the Route

routes
a json hash of routes. Each

{Boolean} seperateRoutes
If you want the routes to not overlap when they use the same points

{Boolean} showPointTypes
If false point types are hidden (eg on small versions of a topo)

{Integer} thickness
The thickness of the routes in pixels

{Float} viewScale
A scaling factor for drawing the topo

{Interger} width
The width of the topo in pixels

Documentation generated by JsDoc Toolkit 2.4.0