0

How I can remove buttons (zoom in / out), the search bar, ie remove all buttons on the map.

Is there any way to remove the input buttons etc. ? I think yes, but with javascript

Map :

 <WebView
                android:id="@+id/mapView"
                android:layout_width="match_parent"
                android:layout_height="match_parent" android:clickable="true"></WebView>

How call ?

 webView = (WebView) itemLayoutView.findViewById(R.id.mapView);
        webView.setWebViewClient(new WebViewClient());

Note : I load a url map

1 Answers1

0

Add this

webView.setDisplayZoomControls(false);

if the other way didn't work, use WebSettings

WebSettings webSettings = webView.getSettings();
webSettings.setBuiltInZoomControls(false);

setBuildInZoomControls

Sets whether the WebView should use its built-in zoom mechanisms. The built-in zoom mechanisms comprise on-screen zoom controls, which are displayed over the WebView's content, and the use of a pinch gesture to control zooming. Whether or not these on-screen controls are displayed can be set with setDisplayZoomControls(boolean). The default is false.

If you know how to do with JavaScript try it by your own doing this :

 webView.loadDataWithBaseURL(null,"<script> Here the script  </script>","text/html","utf-8",null);
Skizo-ozᴉʞS ツ
  • 19,464
  • 18
  • 81
  • 148