Comments (3)
Will add as todo. Thanks for the feedback.
from mapview.
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.
awesome, thanks - i'll incorporate in next update (hopefully next week)
from mapview.
Related Issues (20)
- Centering the map HOT 8
- Project Rename HOT 7
- Does MapView only draw PathViews that are visible? HOT 8
- Polygons as hotspots HOT 6
- Extra zoom feature HOT 8
- Increase the scrollable area in order to scroll the edges of the map into view HOT 4
- How to use HotSpot and HotSpotManager? HOT 3
- Render tiles outside of view HOT 2
- Loading downsample via TileDecoder HOT 2
- Markers moving when zooming HOT 2
- Callout drawn off screen HOT 3
- Image moving between zoom levels HOT 6
- Feature Requests HOT 15
- moveTo/slideTo rectangle HOT 4
- slideToAndCenter randomly not works HOT 3
- Adding ZoomLevels dynamically does not allow zooming. HOT 1
- How to listen onLongPress event? HOT 5
- map doesn't redraw after scrolling if scale is greater than 1 HOT 1
- Chaging zoomlevels dynamicaly doesn't show correct tiles HOT 1
- Gradle HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapview.