diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index b878429c41..a002a7178b 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -366,11 +366,13 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon final WebView wv = new WebView(ctx); WebSettings settings = wv.getSettings(); settings.setDefaultTextEncodingName("utf-8"); - settings.setBuiltInZoomControls(true); + + //Zooming does not work ok here + settings.setBuiltInZoomControls(false); settings.setDisplayZoomControls(false); - settings.setSupportZoom(true); + + //Scale web view font size with system font size if (android.os.Build.VERSION.SDK_INT >= 14) { - //Scale web view font size with system font size settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); } else { if (ctx.getResources().getDisplayMetrics().density <= 0.5f) { diff --git a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java index 8e5a739f0a..30b4b23d98 100644 --- a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java +++ b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java @@ -102,11 +102,13 @@ public class ContextMenuHelper { final WebView wv = new WebView(ctx); WebSettings settings = wv.getSettings(); settings.setDefaultTextEncodingName("utf-8"); - settings.setBuiltInZoomControls(true); + + //Zooming does not work ok here + settings.setBuiltInZoomControls(false); settings.setDisplayZoomControls(false); - settings.setSupportZoom(true); + + //Scale web view font size with system font size if (android.os.Build.VERSION.SDK_INT >= 14) { - //Scale web view font size with system font size settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); } else { if (ctx.getResources().getDisplayMetrics().density <= 0.5f) {