removed Leaflet relative path
This commit is contained in:
parent
ec5934364a
commit
4130144687
@ -19,12 +19,6 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
// [assorted bugfixes to Leaflet functions we use]
|
// [assorted bugfixes to Leaflet functions we use]
|
||||||
|
|
||||||
|
|
||||||
// find relative leaflet URL
|
|
||||||
var i = 0;
|
|
||||||
while( L.ROOT_URL[i] == document.URL[i] ) { i++; }
|
|
||||||
L.RELATIVE_ROOT_URL = L.ROOT_URL.slice(i);
|
|
||||||
|
|
||||||
|
|
||||||
// return closest point on segment or distance to that point
|
// return closest point on segment or distance to that point
|
||||||
L.LineUtil._sqClosestPointOnSegment = function (p, p1, p2, sqDist) {
|
L.LineUtil._sqClosestPointOnSegment = function (p, p1, p2, sqDist) {
|
||||||
var x = p1.x,
|
var x = p1.x,
|
||||||
|
@ -43,7 +43,7 @@ OSRM.init = function() {
|
|||||||
// prefetch images
|
// prefetch images
|
||||||
OSRM.GLOBALS.images = {};
|
OSRM.GLOBALS.images = {};
|
||||||
OSRM.prefetchImages = function() {
|
OSRM.prefetchImages = function() {
|
||||||
var image_list = [ {id:'marker-shadow', url:L.RELATIVE_ROOT_URL + 'images/marker-shadow.png'},
|
var image_list = [ {id:'marker-shadow', url:'leaflet/images/marker-shadow.png'},
|
||||||
{id:'marker-source', url:'images/marker-source.png'},
|
{id:'marker-source', url:'images/marker-source.png'},
|
||||||
{id:'marker-target', url:'images/marker-target.png'},
|
{id:'marker-target', url:'images/marker-target.png'},
|
||||||
{id:'marker-via', url:'images/marker-via.png'},
|
{id:'marker-via', url:'images/marker-via.png'},
|
||||||
|
@ -23,7 +23,6 @@ OSRM.CSS = {
|
|||||||
the_document = the_document || document;
|
the_document = the_document || document;
|
||||||
var stylesheets = the_document.styleSheets;
|
var stylesheets = the_document.styleSheets;
|
||||||
for(var i=0, size=stylesheets.length; i<size; i++) {
|
for(var i=0, size=stylesheets.length; i<size; i++) {
|
||||||
console.log(stylesheets[i].href);
|
|
||||||
if( stylesheets[i].href.indexOf(filename) >= 0)
|
if( stylesheets[i].href.indexOf(filename) >= 0)
|
||||||
return stylesheets[i];
|
return stylesheets[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user