Use document.location.protocol for OSRM
This commit is contained in:
parent
1add511c52
commit
6b9e70573b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function OSRMEngine() {
|
|||
I18n.t('javascripts.directions.instructions.end_oneway') // 17
|
||||
];
|
||||
|
||||
var url = "http://router.project-osrm.org/viaroute?z=14&output=json&instructions=true";
|
||||
var url = document.location.protocol + "//router.project-osrm.org/viaroute?z=14&output=json&instructions=true";
|
||||
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
url += "&loc=" + points[i].lat + ',' + points[i].lng;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue