clarified comments

This commit is contained in:
DennisSchiefer 2012-07-05 14:00:47 +01:00
parent 8f6cd99ff6
commit 5e24749826

View File

@ -23,34 +23,34 @@ OSRM.GUI.extend( {
// tooltips // tooltips
tooltips: { tooltips: {
// triggered in OSRM.Localization.setLanguageWrapper
localization: localization:
{ timeout: 4000, { timeout: 1800000, // 30min
header: "[Tooltip] Localization", header: "[Tooltip] Localization",
body: "You can use the pulldown menu in the upper left corner to select your favorite language. " + body: "You can use the pulldown menu in the upper left corner to select your favorite language. " +
"<br/><br/>" + "<br/><br/>" +
"Don't despair if you cannot find your language of choice. " + "Don't despair if you cannot find your language of choice. " +
"If you want, you can help to provide additional translations! " + "If you want, you can help to provide additional translations! " +
"Visit <a href='https://github.com/DennisSchiefer/Project-OSRM-Web'>here</a> for more information." "Visit <a href='https://github.com/DennisSchiefer/Project-OSRM-Web'>here</a> for more information."
// triggered by OSRM.Localization.setLanguageWrapper
}, },
// triggered in OSRM.Map.click
clicking: clicking:
{ timeout: 6000, { timeout: 60000, // 1min
header: "[Tooltip] Clicking to set markers", header: "[Tooltip] Clicking to set markers",
body: "You can click on the map with the left mouse button to set a source marker (green) or a target marker (red), " + body: "You can click on the map with the left mouse button to set a source marker (green) or a target marker (red), " +
"if the source marker already exists. " + "if the source marker already exists. " +
"The address of the selected location will be displayed in the boxes to the left. " + "The address of the selected location will be displayed in the boxes to the left. " +
"<br/><br/>" + "<br/><br/>" +
"You can delete a marker by clicking on it again with the left mouse button." "You can delete a marker by clicking on it again with the left mouse button."
// triggered by OSRM.Map.click
}, },
// triggered in OSRM.Routing.getRoute_Dragging
dragging: dragging:
{ timeout: 8000, { timeout: 120000, // 2min
header: "[Tooltip] Dragging markers", header: "[Tooltip] Dragging markers",
body: "You can drag a marker by clicking on it with the left mouse button and holding the button pressed. " + body: "You can drag a marker by clicking on it with the left mouse button and holding the button pressed. " +
"Then you can move the marker around the map and the route will be updated instantaneously. " + "Then you can move the marker around the map and the route will be updated instantaneously. " +
"<br/><br/>" + "<br/><br/>" +
"You can even create additional markers by dragging them off of the main route! " "You can even create additional markers by dragging them off of the main route! "
// triggered by OSRM.Routing.getRoute_Dragging
} }
}, },