Skip to content

Commit 1574971

Browse files
committed
Remove router
This has been broken for long, have not time to fix it.
1 parent 9662c5f commit 1574971

File tree

10 files changed

+1
-627
lines changed

10 files changed

+1
-627
lines changed

app/assets/app.css

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,6 @@ select {
351351
-moz-linear-gradient(top, #62c462, #51a351);
352352
}
353353

354-
.leaflet-minirouter-delete-button,
355-
.delete-button {
356-
background-image: url(delete.svg);
357-
}
358-
359-
.leaflet-minirouter-delete-button {
360-
font-size: 0;
361-
}
362354

363355
.close-button {
364356
background-image: url(close.svg);
@@ -526,72 +518,4 @@ select {
526518

527519
.photo-popup .owner {
528520
float: right;
529-
}
530-
531-
/*
532-
* Routing
533-
*/
534-
535-
/** Do not show itinerary for now */
536-
.leaflet-routing-container {
537-
display: none;
538-
}
539-
540-
/*
541-
* Routing panel view
542-
*/
543-
.routing-panel {
544-
display: none;
545-
}
546-
547-
.routing-panel-active .routing-panel {
548-
display: block;
549-
}
550-
551-
.routing-panel-active .map {
552-
bottom: 51px;
553-
}
554-
555-
.routing-panel {
556-
background: #fff;
557-
position: absolute;
558-
left: 0;
559-
right: 0;
560-
bottom: 0;
561-
height: 51px;
562-
padding: 5px 7px;
563-
border-top: 1px solid #ccc;
564-
}
565-
566-
.routing-panel-stats {
567-
display: inline-block;
568-
vertical-align: middle;
569-
margin-right: 5px;
570-
}
571-
572-
.routing-panel-elevation {
573-
font-size: 12px;
574-
}
575-
576-
.routing-panel-close-button {
577-
position: absolute;
578-
right: 7px;
579-
}
580-
581-
@media all and (max-width: 385px) {
582-
.routing-vehicle-select {
583-
width: 80px;
584-
}
585-
}
586-
587-
@media all and (max-width: 520px) {
588-
.routing-vehicle-buttons {
589-
display: none;
590-
}
591-
}
592-
593-
@media all and (min-width: 520px) {
594-
.routing-vehicle-select {
595-
display: none;
596-
}
597-
}
521+
}

app/map.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import Fullscreen from './fullscreen';
66
import InitialLocation from './initial-location';
77
import RecommendLayers from './recommend-layers';
88
import Router from './router';
9-
import Routing from './routing';
109
import ShowPosition from './show-position';
1110
import Search from './search';
1211
import StateStore, { State } from './state-store';
@@ -40,7 +39,6 @@ const plugins: MapPluginConstructor[] = [
4039
Search,
4140
Tracks,
4241
Router,
43-
Routing,
4442
Fullscreen,
4543
];
4644

@@ -83,7 +81,6 @@ export default class Map {
8381
defaults: State = {
8482
bounds: europeBounds,
8583
layers: ['mapboxstreets'],
86-
routingService: 'mapbox',
8784
};
8885

8986
constructor() {

app/routing-panel.ts

Lines changed: 0 additions & 129 deletions
This file was deleted.

app/routing-services.ts

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)