Only load ol.css in loader.js

Before this change, all the examples try to load ../css/ol.css, even in
hosted mode, where they should load ../build/ol.css instead.
This commit is contained in:
Tom Payne
2014-01-14 14:32:39 +01:00
parent 43c40e14c8
commit 4d619d71b1
66 changed files with 1 additions and 65 deletions

View File

@@ -59,6 +59,7 @@
pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));
}
document.write('<link rel="stylesheet" href="../css/ol.css" type="text/css">');
var url = 'http://' + host + '/compile?' + pairs.join('&');
document.write('<script type="text/javascript" src="' + url + '"></script>');
}());