]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkNodeUtils.java
Make vertices smaller on map UI & CSV import performance improvements
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / nodes / DistrictNetworkNodeUtils.java
index c48693ac4470b94122bf6f47c13a87a7031a9b01..08253bb28d3e552b200d12a5c57c9509e5b4e07a 100644 (file)
@@ -39,9 +39,7 @@ public class DistrictNetworkNodeUtils {
 
     public static double calculateScaleRecip(AffineTransform tr) {
         int zoomLevel = MapScalingTransform.zoomLevel(tr);
-        double scale = GeometryUtils.getScale(tr);
-        double sqrt = Math.sqrt(scale / zoomLevel);
-        double viewScaleRecip = (sqrt / zoomLevel);
-        return viewScaleRecip;
+        double t = 1.0 / Math.sqrt(zoomLevel);
+        return t;
     }
 }