Skip to content

Commit

Permalink
upload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirmmo committed Jun 12, 2022
1 parent 23febcf commit 510a5e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/map-canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ class MapCanvas extends Application {
const jdoc = JSON.parse(doc);
console.log(jdoc)

if(jdoc.zoom < 18.5){
alert('I cannot render a battlemap at this level of zoom');
return false;
}
const DEFAULT_SCENE = game.settings.get("ofm-map-canvas", "DEFAULT_SCENE");
const sceneName = (generateNewScene) ? DEFAULT_SCENE+"_"+new Date().getTime() : DEFAULT_SCENE;
let scene = game.scenes.find(s => s.name.startsWith(sceneName));
Expand Down Expand Up @@ -296,7 +292,7 @@ class MapCanvas extends Application {
_id: scene.id,
width: WIDTH,
height: HEIGHT,
bgSource: 'bgSource/'+sceneName+".jpeg",
bgSource: 'ofm-map-canvas/'+sceneName+".jpeg",
//img: 'https://vectors.fantasymaps.org/render/' + WORLD_TO_LOAD + '.jpeg?width='+WIDTH+'&height='+HEIGHT+'&bbox=[' + bbox.join(',') + ']&zoom=' + jdoc.zoom + '&key=LICENSE',
padding: 0,
gridType: 1,
Expand Down

0 comments on commit 510a5e2

Please sign in to comment.