Class Index | File Index

Classes


Class PhotoTopo


Defined in: phototopo.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
PhotoTopo(opts)
A widget for viewing and drawing climbing routes overlaid on a photo
Method Summary
Method Attributes Method Name and Description
 
selectRoute(route, toggle)
Selects the route with a given id
 
setImage(imageUrl)
Set the photo image and triggers a redraw
 
setOrder(order)
Sets the order of the routes which affects the way they visually thread through each point
 
Sets wether the route lines are visible
Class Detail
PhotoTopo(opts)
A widget for viewing and drawing climbing routes overlaid on a photo
Parameters:
{PhotoTopoOptions} opts
The options for this phototopo
Method Detail
selectRoute(route, toggle)
Selects the route with a given id
Parameters:
{Route} route
the route to select
{Boolean} toggle Optional
if true and the route is already selected will delesect

setImage(imageUrl)
Set the photo image and triggers a redraw
Parameters:
{String} imageUrl
a url to an image

setOrder(order)
Sets the order of the routes which affects the way they visually thread through each point
Parameters:
order
a hash of the id to the order

setRouteVisibility(visible)
Sets wether the route lines are visible
Parameters:
{Boolean} visible
if true makes the routes visible

Documentation generated by JsDoc Toolkit 2.4.0