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:
@@ -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>');
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user