From fb2144f511a7e025eacdb968e30de4db50e8ea89 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 15 Aug 2019 19:48:23 +0200 Subject: [PATCH] Zoom levels now accept decimals --- Map Generator.sketchplugin/Contents/Sketch/common.js | 4 ++-- .../Contents/Sketch/manifest.json | 2 +- appcast.xml | 11 +++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Map Generator.sketchplugin/Contents/Sketch/common.js b/Map Generator.sketchplugin/Contents/Sketch/common.js index 24eac40..d0b0e8b 100644 --- a/Map Generator.sketchplugin/Contents/Sketch/common.js +++ b/Map Generator.sketchplugin/Contents/Sketch/common.js @@ -242,8 +242,8 @@ function makeZoomLevels(zoomLevels, minZoom, maxZoom) { return; } - for (var x = minZoom; x <= maxZoom; x++) { - zoomLevels.push(x.toString()); + for (var x = minZoom; x <= maxZoom * 2; x++) { + zoomLevels.push((x / 2).toString()); } } diff --git a/Map Generator.sketchplugin/Contents/Sketch/manifest.json b/Map Generator.sketchplugin/Contents/Sketch/manifest.json index 82d0dbf..00603b5 100644 --- a/Map Generator.sketchplugin/Contents/Sketch/manifest.json +++ b/Map Generator.sketchplugin/Contents/Sketch/manifest.json @@ -45,7 +45,7 @@ "icon": "icon.png", "identifier" : "io.eduardogomez.sketch.map-generator", "appcast": "https://raw.githubusercontent.com/eddiesigner/sketch-map-generator/master/appcast.xml", - "version" : "3.5.0", + "version" : "3.5.1", "description" : "Sketch plugin to fill a layer with a map generated from a given location using Google Maps and Mapbox", "authorEmail" : "this.eduardo@gmail.com", "name" : "Map Generator" diff --git a/appcast.xml b/appcast.xml index 8f5d462..65fcc3b 100644 --- a/appcast.xml +++ b/appcast.xml @@ -166,5 +166,16 @@ + + Version 3.5.1 + + +
  • 🤓 Zoom levels now accept decimals (14.5 e.g.).
  • + + ]]> +
    + +