<?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 To add point on map on button click in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/to-add-point-on-map-on-button-click/m-p/1279140#M6010</link>
    <description>&lt;P&gt;Hii all,&lt;/P&gt;&lt;P&gt;I am new to ArcGIS runtime SDK for android. I want to add a point on map on button click like Field Maps mobile app by ESRI where by clicking on 'Add Point' button, point added on map according to crosshair position on map . please help regarding the same thanx in advance&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 06:52:59 GMT</pubDate>
    <dc:creator>komalzoting</dc:creator>
    <dc:date>2023-04-17T06:52:59Z</dc:date>
    <item>
      <title>To add point on map on button click</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/to-add-point-on-map-on-button-click/m-p/1279140#M6010</link>
      <description>&lt;P&gt;Hii all,&lt;/P&gt;&lt;P&gt;I am new to ArcGIS runtime SDK for android. I want to add a point on map on button click like Field Maps mobile app by ESRI where by clicking on 'Add Point' button, point added on map according to crosshair position on map . please help regarding the same thanx in advance&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 06:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/to-add-point-on-map-on-button-click/m-p/1279140#M6010</guid>
      <dc:creator>komalzoting</dc:creator>
      <dc:date>2023-04-17T06:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: To add point on map on button click</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/to-add-point-on-map-on-button-click/m-p/1280982#M6011</link>
      <description>&lt;LI-CODE lang="kotlin"&gt;// create and style graphic with symbol to be added to the map
val locationGraphic = Graphic().apply {
    symbol = SimpleMarkerSymbol(SimpleMarkerSymbol.Style.X, Color.MAGENTA, 15f)
}

// create a graphics overlay to add the graphic
val graphicsOverlay = GraphicsOverlay().apply {
    graphics.add(locationGraphic)
}

// add the graphics overlay to the MapView
mapView.graphicsOverlays.add(graphicsOverlay)

addPointButton.setOnClickListener {
    val screenPoint = android.graphics.Point(xPosition, yPosition)
    // create a map point from the screen point
    val mapPoint: Point = mapView.screenToLocation(screenPoint)
    // show graphic at the screen point
    locationGraphic.geometry = mapPoint
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Apr 2023 19:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/to-add-point-on-map-on-button-click/m-p/1280982#M6011</guid>
      <dc:creator>Shubham_Sharma</dc:creator>
      <dc:date>2023-04-20T19:41:44Z</dc:date>
    </item>
  </channel>
</rss>

