<?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: Can I use latitutde and longitude with ImageElement? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514456#M85187</link>
    <description>&lt;P&gt;All you need to do is replace the values in meters with those in degrees and when defining the extent use a geographic coordinate system WKID.&amp;nbsp; There isn't anything special about the imageSettings object it's just holding values that are used later used to create the extent.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const imageSettings = {
        units: "degrees",
        width: 0.125,
        height: 0.125,
        minx: -107.875,
        miny: 37.875
      };
      let extent = new Extent({
        spatialReference: {
          wkid: 4267
        },
        // South-West corner of the image
        xmin: imageSettings.minx,
        ymin: imageSettings.miny,
        // North-East corner of the image
        xmax: imageSettings.minx + imageSettings.width,
        ymax: imageSettings.miny + imageSettings.height
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 22:04:26 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2024-08-02T22:04:26Z</dc:date>
    <item>
      <title>Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513916#M85174</link>
      <description>&lt;P&gt;I'm using ImageElement and MediaLayer, such as in this example:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=sketch-3d" rel="nofollow noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=sketch-3d&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to upload a png as the map. In the example, they use x and y coordinates. I'm wondering if it's possible to integrate latitude and longitude into the image instead?&lt;/P&gt;&lt;P&gt;If it's not possible to use lat/long instead, are there util functions available to convert x/y to lat/long for different spatialReferences? The only one I could find was in WebMercatorUtils (but I don't think I'm able to use WebMercator with an image/ImageElement)... which leads me to my next question:&lt;/P&gt;&lt;P&gt;Also, is it possible to upload my own image/ use ImageElement with the WebMercator spatialReference? When I set the spatialReference to WebMercator, my custom image disappears and I see a round globe with no map/images, which I guess would make sense since WebMercator is for a round globe..&lt;/P&gt;&lt;P&gt;If it's not possible to use WebMercator with my own image/ImageElement, is there an easy way to convert points between 2 different coordinate systems? (from one that works with a custom image into WebMercator)?&lt;/P&gt;&lt;P&gt;Thanks so much for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 04:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513916#M85174</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-02T04:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513952#M85176</link>
      <description>&lt;P&gt;Sure you can use any supported &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html" target="_self"&gt;spatial reference&lt;/A&gt;, just make sure you set the correct wkid in the spatialReference property of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference" target="_self"&gt;georeference&lt;/A&gt;.&amp;nbsp; This sample uses NAD1927 lat/lon (wkid&amp;nbsp;4267) to georeference a USGS geology map.&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-control-points/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-control-points/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 23:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513952#M85176</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-01T23:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513958#M85177</link>
      <description>&lt;P&gt;Thanks for the help! I'm a little confused how I'd enter the lat and long values as the image corners. I only see an option to insert x and y.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Also, I think the example uses&amp;nbsp;2193. Where did you see 4267? Thanks so much for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 23:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513958#M85177</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-01T23:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513959#M85178</link>
      <description>&lt;P&gt;const imageSettings = {&lt;BR /&gt;units: "meter",&lt;BR /&gt;width: 120,&lt;BR /&gt;height: 170,&lt;BR /&gt;minx: 1769934.4770259405,&lt;BR /&gt;miny: 5905359.483770887&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;For example in this code, how would I enter lat and long instead? thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 23:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513959#M85178</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-01T23:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513962#M85179</link>
      <description>&lt;P&gt;or would I just have to use a x, y to lat,long converstion formula every time I want to interact with the map? (Such as draw a polyline or point with the sketch widget, then want the lat/long of those points&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 23:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1513962#M85179</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-01T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514111#M85181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/805390"&gt;@Sparkles&lt;/a&gt;&amp;nbsp;&amp;nbsp;(love the name by the way&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;),&lt;/P&gt;&lt;P&gt;Latitude and longitude are valid x and y values when creating a point in a geographic coordinate system.&amp;nbsp; You can also define the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#properties-summary" target="_self"&gt;Point&lt;/A&gt; using latitude and longitude properties as well.&amp;nbsp; I simplified the example, to hopefully make it a little more obvious where I'm using map coordinates (latitude and longitude) vs image coordinates (pixels from the top left corner). I hope this helps, you don't need to do the conversions yourself, we handle that for you if you define the spatial reference. You could use any of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference" target="_self"&gt;georeference&lt;/A&gt; options this way.&amp;nbsp; I used the control points georeference in this case as the known latitude and longitude values are not at the corners of the images but are inset because of the margin on the image.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/XWLMLbG" target="_blank" rel="noopener"&gt;https://codepen.io/sagewall/pen/XWLMLbG&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514111#M85181</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-02T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514114#M85182</link>
      <description>&lt;P&gt;A constant named spatialReference is defined on line 88 and then used throughout the rest of the sample.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-medialayer-control-points" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-medialayer-control-points&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const spatialReference = new SpatialReference({ wkid: 4267 });&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 11:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514114#M85182</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-02T11:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514456#M85187</link>
      <description>&lt;P&gt;All you need to do is replace the values in meters with those in degrees and when defining the extent use a geographic coordinate system WKID.&amp;nbsp; There isn't anything special about the imageSettings object it's just holding values that are used later used to create the extent.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      const imageSettings = {
        units: "degrees",
        width: 0.125,
        height: 0.125,
        minx: -107.875,
        miny: 37.875
      };
      let extent = new Extent({
        spatialReference: {
          wkid: 4267
        },
        // South-West corner of the image
        xmin: imageSettings.minx,
        ymin: imageSettings.miny,
        // North-East corner of the image
        xmax: imageSettings.minx + imageSettings.width,
        ymax: imageSettings.miny + imageSettings.height
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 22:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514456#M85187</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-02T22:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514724#M85188</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;! Thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; ! And thanks so much for the help, I really appreciate it! And sorry if my questions are really basic, I'm new to working with any maps! I'm just running into one last issue - everything works great when I use the x,y (meters) values of&lt;SPAN&gt;1769934.4770259405&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;5905359.4837708872 for the imageElement (and camera). (Using wkid 102100 /WebMercator)&lt;BR /&gt;&lt;BR /&gt;But when I try using my desired location of lat&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;32.9316, long&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;117.2218&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(tried both equivalent meter values of x&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-103676511.13576749, y&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;3665928.9430077067&lt;/SPAN&gt;&lt;SPAN&gt;, and degrees values ), the image doesn't show anymore, and I can't figure out why. (I even tried making the image way bigger to see if it was just too tiny/not showing up from not being able to find it on the map)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;imageSettings&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"degrees"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;width&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;50000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;//70,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;50000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;//120,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;minx&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;117.2218&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;miny&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;32.9316&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Do you know what could be happening that the image wouldn't show up at that point, but did at the other random x, y points? Thanks so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 22:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514724#M85188</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-04T22:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514877#M85190</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/805390"&gt;@Sparkles&lt;/a&gt;&amp;nbsp;, there any way you could share a code pen of the code your working through?&amp;nbsp; &amp;nbsp;Are you seeing any errors or messages in the console? There really isn't enough information in the little code snippet included to troubleshoot and debug.&amp;nbsp; The sample you are working off is a very advanced sample for a new user and it might be simpler to start with a basic sample and see if you can get the image to show up in the correct location.&amp;nbsp; Once you get the image to show up as intended and understand how that process works, you can add the sketch functionality back in if needed. Another thing you could try is deleting that imageSettings object and entering the values as needed directly. That might help you find at which point in your code the bug is happening.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/XWLMLbG" target="_blank"&gt;https://codepen.io/sagewall/pen/XWLMLbG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This simpler code pen doesn't have the complications of the other sample which is intended to be about the sketch widget more so than how to place an image element.&amp;nbsp; All you need to know is the latitude and longitude of the 4 corners of the image and their corresponding image pixel coordinates.&lt;/P&gt;&lt;P&gt;Looking at the code snippet provided and if no other changes were made to the sample code you've defined an image height and width of 50,000 degrees, an image that wraps around the earth 139 times.&amp;nbsp; You likely need to convert those 50,000 values into their corresponding height and width of the image in degrees, but it's really really hard to guess what else could have gone wrong without some code to debug.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 11:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514877#M85190</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-05T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514907#M85192</link>
      <description>&lt;P&gt;I simplified the example you were working with to simply add the image in this other new codepen and removed the other stuff that was making the sample much more confusing to use to answer the question of can I use latitude and longitude with media layers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/MWMmNxy" target="_blank"&gt;https://codepen.io/sagewall/pen/MWMmNxy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try changing the image url and the extent as appropriate for your image.&amp;nbsp; The original sample relies on knowing the width of the image which can might be more difficult than defining the max x and y values.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514907#M85192</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-05T12:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514931#M85193</link>
      <description>&lt;P&gt;This is original sample converted to use lat and lon.&amp;nbsp; There are a bunch of unrelated elevation services issues, but I hope this helps&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/805390"&gt;@Sparkles&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp; The coordinates I used aren't super accurate, but close enough for demo purposes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/KKjmOXO" target="_blank"&gt;https://codepen.io/sagewall/pen/KKjmOXO&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 13:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1514931#M85193</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-05T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1516295#M85241</link>
      <description>&lt;P&gt;Hi, thanks so much for all the help, yes this worked for me !&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp;Also, do you know if it's possible to pass multiple images to ImageElement (or to have multiple ImageElements displayed side by side on the map)?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 18:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1516295#M85241</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-07T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1516321#M85242</link>
      <description>&lt;P&gt;Happy to help.&amp;nbsp; Sure can. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source" target="_self"&gt;source&lt;/A&gt; property of the media layer can either accept a single ImageElement, VideoElement or an array of them.&amp;nbsp; This sample shows an example of having multiple ImageElements in a single MediaLayer.&amp;nbsp; You could also create multiple MediaLayers each with different ImageElements if you wanted to control their visibility or other properties independently.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-images/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-images/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1516321#M85242</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-07T19:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1521033#M85342</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;Thanks again for all the help!!&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; I really appreciate it, and sorry to bother you again! My design changed a little, and I'm going from just an image to wanting a map as the backdrop (just like you have in your example). However, when I add&amp;nbsp;&lt;SPAN&gt;basemap: "topo-vector" to my Map (whereas I only had the mediaLayer before), my image no longer shows... could it possibly be hidden behind the map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I noticed you have this code to focus on the image:&lt;BR /&gt;view.when(() =&amp;gt; {&lt;BR /&gt;view.goTo(mediaLayer.fullExtent);&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;(and when I console.log mediaLayer.fullExtent in your codepen, I get this:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 4326&lt;BR /&gt;},&lt;BR /&gt;"xmin": 174.9093,&lt;BR /&gt;"ymin": -36.98257,&lt;BR /&gt;"xmax": 174.91068,&lt;BR /&gt;"ymax": -36.98102&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;However, when I console.log mediaLayer.fullExtent in my own code, it returns a p7 arcgis object with the following values:&amp;nbsp;&lt;BR /&gt;ymax: 90&lt;BR /&gt;ymin: -90&lt;BR /&gt;xmax: 180&lt;BR /&gt;xmin: -180&lt;BR /&gt;&lt;BR /&gt;How come your fullExtent values are set to something specific?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I also find strange is that when I add the basemap, it does start at the same point (same lat and long) as where the image was, it's just that the image no longer shows.&lt;BR /&gt;&lt;BR /&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 05:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1521033#M85342</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-14T05:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1521818#M85363</link>
      <description>&lt;P&gt;Happy to help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/805390"&gt;@Sparkles&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;,&lt;/P&gt;&lt;P&gt;Spatial references can be confusing.&amp;nbsp; The full extent of the media layer is set in the georeference on line 48 of this &lt;A href="https://codepen.io/sagewall/pen/MWMmNxy" target="_self"&gt;codepen&lt;/A&gt;.&amp;nbsp; Notice how I'm setting the spatial reference to the WGS 1984 geographic.&amp;nbsp; If I log out the spatial reference of the map (line 73), it's set to &lt;SPAN&gt;102100 or the&amp;nbsp;WGS_1984_Web_Mercator_Auxiliary_Sphere projection.&amp;nbsp; The view picks up it's spatial reference from the basemap.&amp;nbsp; My hunch is that you might not have the spatial reference defined properly on your layer and when you add it to the map with the basemap it isn't being properly projected.&amp;nbsp; If you have a codepen or some code to share that can be debugged I'm sure we can figure out what went wrong but I'm just kinda making educated guesses.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  const georeference = new ExtentAndRotationGeoreference({
    extent: new Extent({
      spatialReference,
      xmin: 174.9093,
      ymin: -36.98257,
      xmax: 174.91068,
      ymax: -36.98102
    })
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 20:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1521818#M85363</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-14T20:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1522742#M85388</link>
      <description>&lt;P&gt;Thank you so much! I'll get back to you in the next few days&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 08:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1522742#M85388</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-16T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1526918#M85491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;I was wondering if you knew about using the map offline? I'm trying to get my image map to work offline, but the Sketch Widget and other widgets don't load, and I get the errors in the screenshot (arcGIS errors while trying to load everything). I saw that it's an option to create offline maps with arcGIS Online and Enterprise, but I don't want to do that if it can be avoided, especially since I don't need the real maps, as I just have my image uploaded. I just want the SketchWidget to still work. Thanks so much!!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 04:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1526918#M85491</guid>
      <dc:creator>Sparkles</dc:creator>
      <dc:date>2024-08-26T04:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use latitutde and longitude with ImageElement?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1527379#M85500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/805390"&gt;@Sparkles&lt;/a&gt;&amp;nbsp;, the JavaScript SDK isn't designed to work offline.&amp;nbsp; The offline maps you see in AGO or Enterprise are created for use in Esri native mobile applications, such as Field Maps, and custom apps built using Esri's native SDKs. Take a look at this webpage, there is a lot of info about ways to take your maps and apps offline&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/offline-mapping-apps/" target="_blank"&gt;https://developers.arcgis.com/documentation/offline-mapping-apps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 19:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-latitutde-and-longitude-with/m-p/1527379#M85500</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-26T19:21:33Z</dc:date>
    </item>
  </channel>
</rss>

