<?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: Bug? bboxSR=null&amp;amp;imageSR=null in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95846#M8794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What do you you see if you do this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
console.log(r.geometry.spatialReference);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Does that spatial ref match your map's?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it does perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:39:40 GMT</pubDate>
    <dc:creator>FlorianLeman</dc:creator>
    <dc:date>2021-12-10T23:39:40Z</dc:date>
    <item>
      <title>Bug? bboxSR=null&amp;amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95842#M8790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I encounter a problem with my application. At startup, I make a query to retrieve a point and I zoom on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The first image loads correctly (unzoomed), but just after the zoom, the api try to load a new image and I have the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Error: Chargement de l'image impossible: http://10.1.0.100/ArcGIS/rest/services/Map_dynamic/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;bbox=382398.38085919805%2C150171.12439732553%2C382872.5151407999%2C150407.13320267646&amp;amp;bboxSR=null&amp;amp;imageSR=null&amp;amp;size=896%2C446&amp;amp;f=image&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I unzoom and zoom on the same point (immediatly), I have the same request, bug bboxSR and imageSR are well-filed :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://10.1.0.100/ArcGIS/rest/services/Map_dynamic/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;bbox=382398.38085919805%2C150171.12439732553%2C382872.5151407999%2C150407.13320267646&amp;amp;bboxSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22NTF_Lambert_Zone_II%5C%22%2CGEOGCS%5B%5C%22GCS_NTF%5C%22%2CDATUM%5B%5C%22D_NTF%5C%22%2CSPHEROID%5B%5C%22Clarke_1880_IGN%5C%22%2C6378249.2%2C293.46602%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Lambert_Conformal_Conic%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C600000.0%5D%2CPARAMETER%5B%5C%22False_Northing%5C%22%2C200000.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C2.3372291667%5D%2CPARAMETER%5B%5C%22Standard_Parallel_1%5C%22%2C45.8989188889%5D%2CPARAMETER%5B%5C%22Standard_Parallel_2%5C%22%2C47.6960144444%5D%2CPARAMETER%5B%5C%22Scale_Factor%5C%22%2C1.0%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C46.8%5D%2CUNIT%5B%5C%22Meter%5C%22%2C1.0%5D%5D%22%7D&amp;amp;imageSR=%7B%22wkt%22%3A%22PROJCS%5B%5C%22NTF_Lambert_Zone_II%5C%22%2CGEOGCS%5B%5C%22GCS_NTF%5C%22%2CDATUM%5B%5C%22D_NTF%5C%22%2CSPHEROID%5B%5C%22Clarke_1880_IGN%5C%22%2C6378249.2%2C293.46602%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Lambert_Conformal_Conic%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C600000.0%5D%2CPARAMETER%5B%5C%22False_Northing%5C%22%2C200000.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C2.3372291667%5D%2CPARAMETER%5B%5C%22Standard_Parallel_1%5C%22%2C45.8989188889%5D%2CPARAMETER%5B%5C%22Standard_Parallel_2%5C%22%2C47.6960144444%5D%2CPARAMETER%5B%5C%22Scale_Factor%5C%22%2C1.0%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C46.8%5D%2CUNIT%5B%5C%22Meter%5C%22%2C1.0%5D%5D%22%7D&amp;amp;size=896%2C446&amp;amp;f=image&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't if it is because I use a spatial reference which doesn't have a wkid or anything else...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95842#M8790</guid>
      <dc:creator>FlorianLeman</dc:creator>
      <dc:date>2012-04-03T13:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95843#M8791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I don't if it is because I use a spatial reference which doesn't have a wkid or anything else...&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you elaborate on this? What is your spatial reference if it "doesn't have a wkid or anything else"? Also, please post your code you're using to define your point and zoom the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95843#M8791</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-03T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95844#M8792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should have said :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"I don't if it is because I use a spatial reference which doesn't have a wkid or &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;if it is&lt;/SPAN&gt;&lt;SPAN&gt; anything else..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I have a spatial reference, but a custom one :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
this.sr = new esri.SpatialReference({&amp;nbsp; "wkt":'PROJCS["NTF_Lambert_Zone_II",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],PARAMETER["False_Northing",200000.0],PARAMETER["Central_Meridian",2.3372291667],PARAMETER["Standard_Parallel_1",45.8989188889],PARAMETER["Standard_Parallel_2",47.6960144444],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]]'
});&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The spatial reference is a copy/paste of the map service definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that mm is a reference to a MapManager (custom), the member map an esri.Map object. I can't post the whole application (too big!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;zoom_query: function(layerName, fieldName, id, scale, outFields){
 var query = new esri.tasks.Query();
 if (typeof(id) == 'string') id = "'"+id+"'";
 query.where = fieldName+" = "+id;
 query.returnGeometry = true;
 if (outFields !== undefined){
&amp;nbsp; query.outFields = outFields;
 }
 var thisref = this;
 var l = this.mm.getLayerByName(layerName);
 if (l == null){
&amp;nbsp; alert("zoom_query-&amp;gt;Layer "+layerName+" don't exist");
&amp;nbsp;&amp;nbsp; return;
&amp;nbsp; }
&amp;nbsp; l.queryFeatures(
&amp;nbsp;&amp;nbsp; query,
&amp;nbsp;&amp;nbsp; function(featureSet){
&amp;nbsp;&amp;nbsp;&amp;nbsp; var r = featureSet.features[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (thisref.apv.type == 'Point'){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var zoomLevel = thisref.mm.map.setLevel(thisref.mm.getScaleLevel(thisref.apv.scale));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thisref.mm.map.centerAndZoom(r.geometry, zoomLevel);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; thisref.mm.showInfoWindow(r);
&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp; onError
&amp;nbsp; );
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I just retrieve a point and zoom on it. The scale level is defined in the basemap, which is not displayed at this time. The failure comes from a dynamic map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95844#M8792</guid>
      <dc:creator>FlorianLeman</dc:creator>
      <dc:date>2021-12-10T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95845#M8793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you you see if you do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
console.log(r.geometry.spatialReference);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that spatial ref match your map's?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95845#M8793</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-10T23:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95846#M8794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What do you you see if you do this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
console.log(r.geometry.spatialReference);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Does that spatial ref match your map's?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it does perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95846#M8794</guid>
      <dc:creator>FlorianLeman</dc:creator>
      <dc:date>2021-12-10T23:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95847#M8795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should be working as we do support well-known text for custom spatial references. Are you able to open a call with support?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95847#M8795</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-05T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95848#M8796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Memoris is a silver member, so yes, I can. Its justs generally a little longer (french support)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The strange thing is that, if I remove bboxSR=null&amp;amp;imageSR=null, the exported image loads well...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 12:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95848#M8796</guid>
      <dc:creator>FlorianLeman</dc:creator>
      <dc:date>2012-04-06T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? bboxSR=null&amp;imageSR=null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95849#M8797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a public map service I can use to test? If so, please post some code to repro the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 14:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-bboxsr-null-amp-amp-imagesr-null/m-p/95849#M8797</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-06T14:28:20Z</dc:date>
    </item>
  </channel>
</rss>

