java.lang.IllegalArgumentException: scale factor must not < 1 0.75

GitHub | rsudev | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NewMap: IllegalArgumentException in v6.layers.PositionLayer.draw

    GitHub | 6 months ago | rsudev
    java.lang.IllegalArgumentException: scale factor must not < 1 0.75

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      scale factor must not < 1 0.75

      at org.mapsforge.core.util.MercatorProjection.getMapSizeWithScaleFactor()
    2. org.mapsforge.core
      MercatorProjection.metersToPixelsWithScaleFactor
      1. org.mapsforge.core.util.MercatorProjection.getMapSizeWithScaleFactor(MercatorProjection.java:102)
      2. org.mapsforge.core.util.MercatorProjection.calculateGroundResolutionWithScaleFactor(MercatorProjection.java:63)
      3. org.mapsforge.core.util.MercatorProjection.metersToPixelsWithScaleFactor(MercatorProjection.java:313)
      3 frames
    3. cgeo.geocaching.maps
      PositionLayer.draw
      1. cgeo.geocaching.maps.mapsforge.v6.layers.PositionLayer.draw(PositionLayer.java:51)
      1 frame
    4. org.mapsforge.map
      PausableThread.run
      1. org.mapsforge.map.layer.LayerManager.doWork(LayerManager.java:94)
      2. org.mapsforge.map.util.PausableThread.run(PausableThread.java:140)
      2 frames