Make editors use source instead of minified (#5887)
Make editors use source instead of minified
This commit is contained in:
parent
875ed3dfe1
commit
87f81bcb01
@ -14,7 +14,7 @@
|
||||
html: '<div id="leaflet"></div>',
|
||||
cssFile: 'https://unpkg.com/leaflet/dist/leaflet.css',
|
||||
css: 'body {\n\tmargin: 0;\n}\nhtml, body, #leaflet {\n\theight: 100%\n}',
|
||||
jsFile: 'https://unpkg.com/leaflet/dist/leaflet.js',
|
||||
jsFile: 'https://unpkg.com/leaflet/dist/leaflet-src.js',
|
||||
js: "var map = new L.Map('leaflet', {\n\tlayers: [\n\t\tnew L.TileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\t\t\t'attribution': 'Map data © <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors'\n\t\t})\n\t],\n\tcenter: [0, 0],\n\tzoom: 0\n});"
|
||||
};
|
||||
|
||||
@ -30,10 +30,10 @@
|
||||
if (config.version) {
|
||||
if (config.version === 'master') {
|
||||
config.cssFile = 'https://leafletjs-cdn.s3.amazonaws.com/content/build/master/leaflet.css',
|
||||
config.jsFile = 'https://leafletjs-cdn.s3.amazonaws.com/content/build/master/leaflet.js'
|
||||
config.jsFile = 'https://leafletjs-cdn.s3.amazonaws.com/content/build/master/leaflet-src.js'
|
||||
} else {
|
||||
config.cssFile = `https://unpkg.com/leaflet@${config.version}/dist/leaflet.css`
|
||||
config.jsFile = `https://unpkg.com/leaflet@${config.version}/dist/leaflet.js`
|
||||
config.jsFile = `https://unpkg.com/leaflet@${config.version}/dist/leaflet-src.js`
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user