- it("suggests 5 digits for z17-20", function () {
- expect(OSM.zoomPrecision(17)).to.eq(5);
- expect(OSM.zoomPrecision(18)).to.eq(5);
- expect(OSM.zoomPrecision(19)).to.eq(5);
- expect(OSM.zoomPrecision(20)).to.eq(5);
+ it("suggests 5 digits for z13-16", function () {
+ expect(OSM.zoomPrecision(13)).to.eq(5);
+ expect(OSM.zoomPrecision(14)).to.eq(5);
+ expect(OSM.zoomPrecision(15)).to.eq(5);
+ expect(OSM.zoomPrecision(16)).to.eq(5);
+ });
+
+ it("suggests 6 digits for z17-19", function () {
+ expect(OSM.zoomPrecision(17)).to.eq(6);
+ expect(OSM.zoomPrecision(18)).to.eq(6);
+ expect(OSM.zoomPrecision(19)).to.eq(6);
+ });
+
+ it("suggests 7 digits for z20", function () {
+ expect(OSM.zoomPrecision(20)).to.eq(7);