<?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 Re: JS API wrong latitude in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-wrong-latitude/m-p/170879#M15868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found out that the issue&amp;nbsp;only appears if I have to scroll the page to see the map.&amp;nbsp;As long as the screen resolution is high enough to operate the map without any scrolling or if the map is on a top position (again accessible without any scrolling), everything works perfect. The more I need to scroll the page, the bigger the deviation is. It the same behavior using Chrome and Firefox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jul 2017 07:03:55 GMT</pubDate>
    <dc:creator>StevHempe</dc:creator>
    <dc:date>2017-07-15T07:03:55Z</dc:date>
    <item>
      <title>JS API wrong latitude</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-wrong-latitude/m-p/170878#M15867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following code to display a map and to get the longitude and latitude of a point which is clicked on the map. Whenever I use this code on a stand alone, black page, everything works as expected. As soon as I surround the output &amp;lt;div id="map-container"&amp;gt;&amp;lt;/div&amp;gt; with my additional code, the value for longitude is always wrong. After hours of trying, to re do the code and to solve the issue somehow, I'm running out of my mind. Any idea what is going wrong?&lt;/P&gt;&lt;P&gt;Output of the short php code is&amp;nbsp;&lt;SPAN style="color: #212121; font-size: medium;"&gt;54.563,24.423&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: medium;"&gt;thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;function initMap(){&lt;BR /&gt; var map;&lt;BR /&gt; require([&lt;BR /&gt; "esri/Map",&lt;BR /&gt; "esri/views/MapView",&lt;BR /&gt; "esri/geometry/Point",&lt;BR /&gt; "esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt; "esri/Graphic", &lt;BR /&gt; "esri/layers/GraphicsLayer",&lt;BR /&gt; "esri/symbols/PictureMarkerSymbol",&lt;BR /&gt; "dojo/domReady!",&lt;BR /&gt; "dojo/query",&lt;BR /&gt; "dojo/dom-class",&lt;BR /&gt; "esri/PopupTemplate"&lt;BR /&gt; ], function(&lt;BR /&gt; Map, MapView, Point, SimpleMarkerSymbol, Graphic, GraphicsLayer, PictureMarkerSymbol, query, domClass, PopupTemplate&lt;BR /&gt; ) {&lt;BR /&gt; var map = new Map({&lt;BR /&gt; basemap: "streets"&lt;BR /&gt; });&lt;BR /&gt; var view = new MapView({&lt;BR /&gt; container: "map-container",&lt;BR /&gt; map: map, &lt;BR /&gt; zoom: 12,&amp;nbsp;&lt;BR /&gt; center: [&amp;lt;?php projectlocation($projectid); ?&amp;gt;]&amp;nbsp;&lt;BR /&gt; });&lt;BR /&gt; view.on("click", function(event) {&lt;BR /&gt; // Get the coordinates of the click on the view&lt;BR /&gt; var lat = event.mapPoint.latitude;&lt;BR /&gt; var lon = event.mapPoint.longitude;&lt;BR /&gt; document.getElementById("latFld").value = lat;&lt;BR /&gt; document.getElementById("lngFld").value = lon;&lt;BR /&gt; // Create a symbol for drawing the point&lt;BR /&gt; var markerSymbol = new PictureMarkerSymbol({&lt;BR /&gt; url: 'images/marker_red.png'&lt;BR /&gt; });&lt;BR /&gt; var pointGraphic = new Graphic({&lt;BR /&gt; geometry: event.mapPoint,&lt;BR /&gt; symbol: markerSymbol&lt;BR /&gt; });&lt;BR /&gt; // Add the graphics to the view's graphics layer&lt;BR /&gt; view.graphics.removeAll();&lt;BR /&gt; view.graphics.add(pointGraphic);&lt;BR /&gt; });&lt;BR /&gt; }); &lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 06:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-wrong-latitude/m-p/170878#M15867</guid>
      <dc:creator>StevHempe</dc:creator>
      <dc:date>2017-07-15T06:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: JS API wrong latitude</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-wrong-latitude/m-p/170879#M15868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found out that the issue&amp;nbsp;only appears if I have to scroll the page to see the map.&amp;nbsp;As long as the screen resolution is high enough to operate the map without any scrolling or if the map is on a top position (again accessible without any scrolling), everything works perfect. The more I need to scroll the page, the bigger the deviation is. It the same behavior using Chrome and Firefox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 07:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-wrong-latitude/m-p/170879#M15868</guid>
      <dc:creator>StevHempe</dc:creator>
      <dc:date>2017-07-15T07:03:55Z</dc:date>
    </item>
  </channel>
</rss>

