<?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: Map Service Spatial Reference Incorrect in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275226#M25396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok this is interesting. Once I take the alert out, it reverts back to zooming into the ocean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2014 15:36:01 GMT</pubDate>
    <dc:creator>JoshObrecht</dc:creator>
    <dc:date>2014-08-08T15:36:01Z</dc:date>
    <item>
      <title>Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275213#M25383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add a map service into my application. The application has a spatial reference of 102100, as does the map service on the server. However when I add the service, it gets changed to 4326. Has anyone seen this issue previously and can give some insight?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 17:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275213#M25383</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-07T17:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275214#M25384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How exactly do you know that it gets changed to 4326?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 17:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275214#M25384</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-07T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275215#M25385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put in an alert to call the spatial reference of the layer. It tells me 4326. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 17:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275215#M25385</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-07T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275216#M25386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This seems pretty strange... Can you share your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275216#M25386</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-07T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275217#M25387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) What is the Spatial Reference of the Map?&lt;/P&gt;&lt;P&gt;2) What is the Spatial Reference of the first layer added to the Map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275217#M25387</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2014-08-07T18:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275218#M25388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how well this will work. I can't give actual links since the services are not public yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/TR/html4/strict.dtd" rel="nofollow" target="_blank"&gt;http://www.w3.org/TR/html4/strict.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!--The viewport meta tag is used to improve the presentation and behavior of the samples&lt;/P&gt;&lt;P&gt;&amp;nbsp; on iOS devices--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;title&amp;gt;EDF Land-Use Viewer&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="../st30_huc/agsjs/css/agsjs.css" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="css/layout.css"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; html, body {&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; .esriScalebar {&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 20px 20px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; #map {&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var djConfig = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; parseOnLoad : true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; paths : {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //if you want to host on your own server, download and put in folders then use&lt;/P&gt;&lt;P&gt;&amp;nbsp; // path like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; agsjs : location.pathname.replace(/\/[^/]+$/, '') + '/../st30_huc/agsjs'&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script src="//js.arcgis.com/3.10/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; require(["dojo/_base/connect", "dojo/dom", "dojo/parser", "dojo/on", "dojo/_base/Color", "esri/map", "esri/geometry/Extent", "esri/layers/FeatureLayer", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/symbols/SimpleFillSymbol", "esri/renderers/ClassBreaksRenderer", "agsjs/dijit/TOC", "esri/dijit/BasemapToggle", "dijit/layout/BorderContainer", "dijit/layout/TabContainer", "dijit/form/Button", "dijit/layout/ContentPane", "dijit/form/CheckBox", "dijit/dijit", "dojo/fx", "dojo/domReady!"], function(connect, dom, parser, on, Color, Map, Extent, FeatureLayer, ArcGISTiledMapServiceLayer, ArcGISDynamicMapServiceLayer, SimpleFillSymbol, ClassBreaksRenderer, TOC, BasemapToggle) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*&amp;nbsp; dojo.require("dijit.dijit"); // optimize: load dijit layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.require("dijit.layout.TabContainer");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.require("dijit.form.Button");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.require("dijit.form.CheckBox");&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.require("esri.dijit.Legend");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.require("esri.dijit.BasemapToggle");*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; var myOnClick_connect, aspf, legend, dynamicLayer;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var map, toggle;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function init() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; var lods = [{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 5,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 4891.96981024998,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 1.8489297737236E7&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 6,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 2445.98490512499,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 9244648.868618&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 1222.99245256249,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 4622324.434309&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 8,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 611.49622628138,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 2311162.217155&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 9,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 305.748113140558,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 1155581.108577&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 152.874056570411,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 577790.554289&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 11,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 76.4370282850732,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 288895.277144&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 12,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 38.2185141425366,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 144447.638572&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 13,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 19.1092570712683,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 72223.819286&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 14,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 9.55462853563415,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 36111.909643&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 15,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 4.77731426794937,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 18055.954822&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "level" : 16,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "resolution" : 2.38865713397468,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "scale" : 9027.977411&lt;/P&gt;&lt;P&gt;&amp;nbsp; }];&lt;/P&gt;&lt;P&gt;&amp;nbsp; var initialExtent = new esri.geometry.Extent({&lt;/P&gt;&lt;P&gt;&amp;nbsp; "xmin" : -10829199.684,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ymin" : 4415445.069,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "xmax" : -9713948.365,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ymax" : 5868854.92,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "spatialReference" : {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "wkid" : 102100&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; map = new Map("map", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; extent : initialExtent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lods : lods,&lt;/P&gt;&lt;P&gt;&amp;nbsp; basemap : "streets"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var dynamicUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/edf/MapServer" rel="nofollow" target="_blank"&gt;http://localhost/server30/rest/services/edf/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; toggle = new BasemapToggle({&lt;/P&gt;&lt;P&gt;&amp;nbsp; map : map,&lt;/P&gt;&lt;P&gt;&amp;nbsp; visible : false,&lt;/P&gt;&lt;P&gt;&amp;nbsp; basemap : "satellite"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, "BasemapToggle");&lt;/P&gt;&lt;P&gt;&amp;nbsp; toggle.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dynamicLayer = new esri.layers.ArcGISTiledMapServiceLayer(dynamicUrl);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.connect(map, 'onLayersAddResult', function(results) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; legend = new TOC({&lt;/P&gt;&lt;P&gt;&amp;nbsp; map : map,&lt;/P&gt;&lt;P&gt;&amp;nbsp; layerInfos : [{&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer : dynamicLayer,&lt;/P&gt;&lt;P&gt;&amp;nbsp; title : ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp; }]&lt;/P&gt;&lt;P&gt;&amp;nbsp; }, "legendDiv");&lt;/P&gt;&lt;P&gt;&amp;nbsp; legend.startup();&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayers([dynamicLayer]);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; identifyTask = new esri.tasks.IdentifyTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/edf/MapServer" rel="nofollow" target="_blank"&gt;http://localhost/server30/rest/services/edf/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams = new esri.tasks.IdentifyParameters();&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.tolerance = 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.returnGeometry = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.layerIds = [2];&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.width = map.width;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.height = map.height;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var layer = map.getLayer(map.layerIds[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer.setVisibility(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.connect(map, "onExtentChange", showExtent);&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.connect(dijit.byId("val1"), "onChange", function(isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.disconnect(myOnClick_connect);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.connect(dijit.byId("val2"), "onChange", function(isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.disconnect(myOnClick_connect);&lt;/P&gt;&lt;P&gt;&amp;nbsp; myOnClick_connect = dojo.connect(map, "onClick", doIdentify);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.connect(dijit.byId("val3"), "onChange", function(isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (isChecked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.disconnect(myOnClick_connect);&lt;/P&gt;&lt;P&gt;&amp;nbsp; myOnClick_connect = dojo.connect(map, "onClick", doIdentify);&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function showExtent(extent) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; var layer = map.getLayer(map.layerIds[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (map.getLevel() &amp;gt; 5) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; toggle.show();&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer.setVisibility(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (aspf) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; aspf.setVisibility(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp; toggle.hide();&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer.setVisibility(false);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (aspf) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; aspf.setVisibility(false);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (map.getLevel() &amp;gt; 4) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; document.getElementById("active").style.visibility = "visible";&lt;/P&gt;&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp; document.getElementById("active").style.visibility = "hidden";&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function doIdentify(evt) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ((dijit.byId("val2").checked &amp;amp;&amp;amp; map.getLevel() &amp;gt; 4) || dijit.byId("val3").checked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.geometry = evt.mapPoint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyParams.mapExtent = map.extent;&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifyTask.execute(identifyParams, function(idResults) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; addToMap(idResults, evt);&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function addToMap(idResults, evt) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; var idResult;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (var i = 0, il = idResults.length; i &amp;lt; il; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; idResult = idResults&lt;I&gt;.feature;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (dijit.byId("val2").checked) {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; window.open("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/ST30_EDF_PDF/FB" rel="nofollow" target="_blank"&gt;http://localhost/ST30_EDF_PDF/FB&lt;/A&gt;&lt;SPAN&gt;" + idResult.attributes.HUC_12 + ".pdf");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (dijit.byId("val3").checked) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (map.getLevel() &amp;gt; 5) {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; aspf = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/acpf/MapServer" rel="nofollow" target="_blank"&gt;http://localhost/server30/rest/services/acpf/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; visible : true&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; aspf = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/acpf/MapServer" rel="nofollow" target="_blank"&gt;http://localhost/server30/rest/services/acpf/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; visible : false&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(aspf);&lt;/P&gt;&lt;P&gt;&amp;nbsp; legend.layerInfos.splice(1, 0, {&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer : aspf,&lt;/P&gt;&lt;P&gt;&amp;nbsp; title : " ",&lt;/P&gt;&lt;P&gt;&amp;nbsp; autoToggle : false &lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; legend.refresh();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; dojo.addOnLoad(init);&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;body class="claro"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline"&lt;/P&gt;&lt;P&gt;&amp;nbsp; gutters="false" style="width:100%; height:100%;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="header" dojotype="dijit.layout.ContentPane" region="top"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ACPF Land-Use Viewer&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div dojotype="dijit.layout.ContentPane" id="leftPane" region="left"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div dojotype="dijit.layout.TabContainer" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div dojotype="dijit.layout.ContentPane" title = "Legend" selected="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="legendDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;input dojoType="dijit.form.RadioButton" id="val1" name="group1"&lt;/P&gt;&lt;P&gt;&amp;nbsp; checked="checked" value="nav" type="radio" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;label for="val1"&amp;gt; Navigate &amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;input dojotype="dijit.form.RadioButton" id="val2"&amp;nbsp; name="group1"&lt;/P&gt;&lt;P&gt;&amp;nbsp; value="pdf" type="radio" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;label for="val2"&amp;gt; PDFs &amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;input dojotype="dijit.form.RadioButton" id="val3"&amp;nbsp; name="group1"&lt;/P&gt;&lt;P&gt;&amp;nbsp; value="add" type="radio" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;label for="val3"&amp;gt; Populate &amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;label id="active" style=" color:Red; font-size:large; visibility:hidden;"&amp;gt;PDFs Active&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;label &amp;gt;To use this map:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Use your mouse to Pan and Zoom&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Zooming in will activate the PDF downloads, "PDFs Active" note will appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Select the PDF button to enable to PDF downloads&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Click on a watershed to obtain the PDF&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Select the Populate button to enable detailed information&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; - Click on a watershed to bring up extra information &amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;br /&amp;gt;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div style="width:64px;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="BasemapToggle" &amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id="map" dojotype="dijit.layout.ContentPane" region="center" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275218#M25388</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-07T18:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275219#M25389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So this var dynamicUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/edf/MapServer" rel="nofollow" target="_blank"&gt;http://localhost/server30/rest/services/edf/MapServer&lt;/A&gt;&lt;SPAN&gt;"; is a cached map service?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does it's cached lods matched the ArcGIS Online lods?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275219#M25389</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-07T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275220#M25390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct on both counts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275220#M25390</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-07T18:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275221#M25391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There are a few funky things in your code probably left over from your upgrade from legacy code to AMD. Also without your CSS I can't tell if your layout is working. Right now with removing your CSS and your code calling your local layer it does not even run without several errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275221#M25391</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-07T19:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275222#M25392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where are you adding that alert? Is it in one of the identify functions? If so then you are just seeing a known bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a thread talking about results coming back with wrong WKID.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/93272"&gt;IdentifyTask + InfoWindow 'Zoomto' button using wrong spatial reference&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 20:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275222#M25392</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-07T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275223#M25393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what the addToMap function actually looks like. I accidentally removed a couple of pieces. Also when I set the extent, it goes to the middle of the ocean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; function addToMap(idResults, evt) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; var idResult;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; for (var i = 0, il = idResults.length; i &amp;lt; il; i++) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; idResult = idResults&lt;I&gt;.feature;&lt;/I&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; if (dijit.byId("val2").checked) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; window.open("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/ST30_EDF_PDF/FB" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://localhost/ST30_EDF_PDF/FB&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;" + idResult.attributes.HUC_12 + ".pdf");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; if (dijit.byId("val3").checked) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; if (map.getLevel() &amp;gt; 5) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; aspf = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/acpf/MapServer" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://localhost/server30/rest/services/acpf/MapServer&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; visible : true&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; });&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; aspf = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/server30/rest/services/acpf/MapServer" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;http://localhost/server30/rest/services/acpf/MapServer&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; visible : false&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; });&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; map.addLayer(aspf);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;alert(aspf.spatialReference.wkid)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map.setExtent(aspf.initialExtent);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; legend.layerInfos.splice(1, 0, {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; layer : aspf,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; title : " ",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; autoToggle : false&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; });&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; legend.refresh();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; dojo.addOnLoad(init);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 13:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275223#M25393</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-08T13:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275224#M25394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So the map service that &lt;A class="unlinked" title="http://localhost/server30/rest/services/acpf/MapServer"&gt;http://localhost/server30/rest/services/acpf/MapServer&lt;/A&gt;‌ represents has a WKID of 102100? What does it's Initial Extent values actually look like when you view the Rest Service Directory page for this layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 13:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275224#M25394</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-08T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275225#M25395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I can't explain this but it seems to be zooming properly now even though it still shows 4326. This I can deal with as that is all I was wanting it to do. If something breaks again, I'll get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 13:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275225#M25395</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-08T13:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275226#M25396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok this is interesting. Once I take the alert out, it reverts back to zooming into the ocean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275226#M25396</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-08T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275227#M25397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; it sound like you need to wait for the layer to load before you set the maps extent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275227#M25397</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-08T15:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Spatial Reference Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275228#M25398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Can't believe I didn't think of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-spatial-reference-incorrect/m-p/275228#M25398</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2014-08-08T15:55:33Z</dc:date>
    </item>
  </channel>
</rss>

