summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-analytics')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/map/NovaMap.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/map/NovaMap.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/map/NovaMap.java
index 37f457c8..90d16649 100644
--- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/map/NovaMap.java
+++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/gmap/map/NovaMap.java
@@ -46,6 +46,7 @@ import java.awt.geom.NoninvertibleTransformException;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
+import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
@@ -146,9 +147,9 @@ public class NovaMap {
public int getBestZoomLevel(double Latitude1, double Longitude1, double Latitude2, double Longitude2, double height,
double width) {
- if (height == 0)
+ if (BigDecimal.ZERO.compareTo(BigDecimal.valueOf(height)) == 0)
height = 700;
- if (width == 0)
+ if (BigDecimal.ZERO.compareTo(BigDecimal.valueOf(width)) == 0)
width = 1200;
double lat1 = Math.min(Latitude1, Latitude1);