Hi, coming from OSMdroid we had two controls on our map to zoom in and out via a finger tap. Here is an example image (see bottom). Is there any possibility to show any built-in zoom controls on a Maps SDK map?
You can use setViewpointScale to animate to map to perform a zoom in or zoom out. API ref: Link
zoomInButton.setOnClickListener { lifecycleScope.launch { val newScale = mapView.mapScale.value / 2 mapView.setViewpointScale(newScale) } } zoomOutButton.setOnClickListener { lifecycleScope.launch { val newScale = mapView.mapScale.value * 2 mapView.setViewpointScale(newScale) } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.