Skip to content

Commit

Permalink
Zoom levels now accept decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Aug 15, 2019
1 parent d03cf99 commit fb2144f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Map Generator.sketchplugin/Contents/Sketch/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down
2 changes: 1 addition & 1 deletion Map Generator.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : "[email protected]",
"name" : "Map Generator"
Expand Down
11 changes: 11 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,16 @@
</description>
<enclosure url="https://github.com/eddiesigner/sketch-map-generator/archive/v3.5.0.zip" sparkle:version="3.5.0" />
</item>
<item>
<title>Version 3.5.1</title>
<description>
<![CDATA[
<ul>
<li>🤓 Zoom levels now accept decimals (14.5 e.g.).</li>
</ul>
]]>
</description>
<enclosure url="https://github.com/eddiesigner/sketch-map-generator/archive/v3.5.1.zip" sparkle:version="3.5.1" />
</item>
</channel>
</rss>

0 comments on commit fb2144f

Please sign in to comment.