Git Product home page Git Product logo

Comments (3)

moagrius avatar moagrius commented on August 22, 2024

Will add as todo. Thanks for the feedback.

from mapview.

frankowskid avatar frankowskid commented on August 22, 2024

Here is a patch:

CUT-HERE


From 8298948ae0f25c271c7072297b94bcac5460697b Mon Sep 17 00:00:00 2001
From: frankowski_d [email protected]
Date: Thu, 21 Mar 2013 20:02:13 +0100
Subject: [PATCH] fix for #26


src/com/qozix/mapview/zoom/ZoomLevel.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/com/qozix/mapview/zoom/ZoomLevel.java b/src/com/qozix/mapview/zoom/ZoomLevel.java
index 0798686..ec2ee4b 100644
--- a/src/com/qozix/mapview/zoom/ZoomLevel.java
+++ b/src/com/qozix/mapview/zoom/ZoomLevel.java
@@ -15,7 +15,7 @@ public class ZoomLevel implements Comparable {
private int mapWidth;
private int mapHeight;

  • private int area;
  • private long area;

private int rowCount;
private int columnCount;
@@ -37,7 +37,7 @@ public class ZoomLevel implements Comparable {
tileHeight = th;
rowCount = (int) ( mapHeight / tileHeight );
columnCount = (int) ( mapWidth / tileWidth );

  •   area = mapWidth \* mapHeight;
    
  •   area = (long)mapWidth * mapHeight;
    

    }

    public LinkedList getIntersections() {
    @@ -99,13 +99,13 @@ public class ZoomLevel implements Comparable {
    return path;
    }

  • public int getArea() {

  • public long getArea() {
    return area;
    }

@OverRide
public int compareTo( ZoomLevel o ) {

  •   return (int) ( getArea() - o.getArea() );
    
  •   return getArea() - o.getArea() < 0 ? -1 : 1;
    

    }

    @OverRide

    1.7.10.4

from mapview.

moagrius avatar moagrius commented on August 22, 2024

awesome, thanks - i'll incorporate in next update (hopefully next week)

from mapview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.