$('#turnbyturn').append(row);
cumulative+=step[3];
}
+ $('#sidebar_content').append('<p id="routing_credit">' + r.chosenEngine.creditline + '</p>');
+
};
r.clickTurn=function(num,latlng) {
r.popup=L.popup().setLatLng(latlng).setContent("<p>"+(num+1)+"</p>").openOn(r.map);
OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.cloudmade_foot",
+ creditline: 'Directions courtesy of <a href="http://cloudmade.com/products/routing" target="_blank">Cloudmade</a>',
draggable: false,
CM_SPRITE_MAP: {
"C": 1,
OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.graphhopper_bike",
+ creditline: 'Directions courtesy of <a href="http://graphhopper.com/routing/" target="_blank">Graphhopper</a>',
draggable: true,
_hints: {},
getRoute: function(isFinal, points) {
// http://open.mapquestapi.com/directions/
// https://github.com/apmon/openstreetmap-website/blob/21edc353a4558006f0ce23f5ec3930be6a7d4c8b/app/controllers/routing_controller.rb#L153
-// *** needs to give credit
-
OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.mapquest_bike",
+ creditline: 'Directions courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">',
draggable: false,
_hints: {},
MQ_SPRITE_MAP: {
OSM.RoutingEngines.list.push({
name: "javascripts.directions.engines.osrm_car",
+ creditline: 'Directions courtesy of <a href="http://project-osrm.org/" target="_blank">OSRM</a>',
draggable: true,
_hints: {},
getRoute: function(isFinal,points) {
}
}
+/* Rules for the routing sidebar */
+
+#sidebar_content {
+ #routing_credit {
+ text-align: center;
+ padding: 0.5em;
+ }
+}
+
/* Rules for edit pages */
.site-edit {