<?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 Add simple marker to arcgis map in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022052#M5419</link>
    <description>&lt;P&gt;I'm try to add simple markers to my map I have followed the documentation, it worked. But I change the location map doesn't appear properly, it like zoomed. What I am missing here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;private MapView mapView;
private GraphicsOverlay graphicsOverlay;
private SimpleMarkerSymbol node;
private Point graphicPoint;
Graphic graphic;

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);

  mapView = (MapView) findViewById(R.id.mapView);

  ArcGISMap arcGISMap = new ArcGISMap(Basemap.Type.IMAGERY,6.91621555958787, 79.97325625691973, 12);
  mapView.setMap(arcGISMap);
  mapView.setViewpoint(new Viewpoint(new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator()), 7500));

  graphicsOverlay = new GraphicsOverlay();
  mapView.getGraphicsOverlays().add(graphicsOverlay);

  node = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, Color.RED, 10);
  graphicPoint = new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator());
  graphic = new Graphic(graphicPoint, node);
  graphicsOverlay.getGraphics().add(graphic);

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 12:55:41 GMT</pubDate>
    <dc:creator>RahulFernando</dc:creator>
    <dc:date>2021-02-01T12:55:41Z</dc:date>
    <item>
      <title>Add simple marker to arcgis map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022052#M5419</link>
      <description>&lt;P&gt;I'm try to add simple markers to my map I have followed the documentation, it worked. But I change the location map doesn't appear properly, it like zoomed. What I am missing here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;private MapView mapView;
private GraphicsOverlay graphicsOverlay;
private SimpleMarkerSymbol node;
private Point graphicPoint;
Graphic graphic;

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);

  mapView = (MapView) findViewById(R.id.mapView);

  ArcGISMap arcGISMap = new ArcGISMap(Basemap.Type.IMAGERY,6.91621555958787, 79.97325625691973, 12);
  mapView.setMap(arcGISMap);
  mapView.setViewpoint(new Viewpoint(new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator()), 7500));

  graphicsOverlay = new GraphicsOverlay();
  mapView.getGraphicsOverlays().add(graphicsOverlay);

  node = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, Color.RED, 10);
  graphicPoint = new Point(6.91621555958787, 79.97325625691973, SpatialReferences.getWebMercator());
  graphic = new Graphic(graphicPoint, node);
  graphicsOverlay.getGraphics().add(graphic);

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 12:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022052#M5419</guid>
      <dc:creator>RahulFernando</dc:creator>
      <dc:date>2021-02-01T12:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple marker to arcgis map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022278#M5420</link>
      <description>&lt;P&gt;I can see the issue here.&amp;nbsp; The point you are creating is in the wrong spatial reference.&amp;nbsp; This is how you should be creating the point I believe you want which is a latitude and longitude.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;graphicPoint = new Point(79.97325625691973,6.91621555958787, SpatialReferences.getWgs84());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were centring your map based on a latitude and longitude which are angles measures from the centre of the earth in angles of degrees.&amp;nbsp; This is what we call a geographic projection and in this case is called WGS84.&amp;nbsp; Note that in navigation people say latitude then longitude, but in mathematics we say x then y, which of course causes confusion!&amp;nbsp; Note the order of coordinates changed when I specified the point.&lt;/P&gt;&lt;P&gt;The coordinate system you were using was a projected coordinate system of which there are lots, but this is a global one called Web Mercator covering rather crudely the entire Earth and not being particularly good good for mapping the North or South Poles!&amp;nbsp; The units of measure here are in metres and measured from an origin which sits in the sea just off the West coast of Africa - very near to where you were placing your point by accident.&lt;/P&gt;&lt;P&gt;If you are interested in more details you could read this:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/coordinate-systems-difference/#:~:text=A%20geographic%20coordinate%20system%20(GCS,system%20(PCS)%20is%20flat" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/coordinate-systems-difference/#:~:text=A%20geographic%20coordinate%20system%20(GCS,system%20(PCS)%20is%20flat&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you've got the same issue when setting the ViewPoint.&amp;nbsp; This code should help:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;mapView.setViewpoint(new Viewpoint(new Point(79.97325625691973,6.91621555958787, SpatialReferences.getWgs84()), 7500));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 20:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022278#M5420</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-02-01T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add simple marker to arcgis map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022444#M5424</link>
      <description>&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 04:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/add-simple-marker-to-arcgis-map/m-p/1022444#M5424</guid>
      <dc:creator>RahulFernando</dc:creator>
      <dc:date>2021-02-02T04:09:33Z</dc:date>
    </item>
  </channel>
</rss>

