<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Controls on a map to zoom in/out in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/controls-on-a-map-to-zoom-in-out/m-p/1297940#M73</link>
    <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://user-images.githubusercontent.com/82598626/188782066-98372576-0490-4014-b41a-5a3fb895fad9.png" border="0" width="355" height="750" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 08:36:55 GMT</pubDate>
    <dc:creator>padmalcom</dc:creator>
    <dc:date>2023-06-12T08:36:55Z</dc:date>
    <item>
      <title>Controls on a map to zoom in/out</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/controls-on-a-map-to-zoom-in-out/m-p/1297940#M73</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://user-images.githubusercontent.com/82598626/188782066-98372576-0490-4014-b41a-5a3fb895fad9.png" border="0" width="355" height="750" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 08:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/controls-on-a-map-to-zoom-in-out/m-p/1297940#M73</guid>
      <dc:creator>padmalcom</dc:creator>
      <dc:date>2023-06-12T08:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Controls on a map to zoom in/out</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/controls-on-a-map-to-zoom-in-out/m-p/1298920#M74</link>
      <description>&lt;P&gt;You can use setViewpointScale to animate to map to perform a zoom in or zoom out. API ref: &lt;A href="https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping.view/-map-view/set-viewpoint-scale.html?query=suspend%20fun%20setViewpointScale(scale:%20Double):%20Result%3CBoolean%3E" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;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)
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Jun 2023 21:02:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/controls-on-a-map-to-zoom-in-out/m-p/1298920#M74</guid>
      <dc:creator>Shubham_Sharma</dc:creator>
      <dc:date>2023-06-13T21:02:57Z</dc:date>
    </item>
  </channel>
</rss>

