<?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 we pass the map service (REST) URL as a URL parameter to the JS API map templ in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463523#M42841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to host it locally and/or do something not explicitly demonstrated in a sample, then yes, it requires a little code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're free to use the ArcGIS.com viewer or Explorer Online, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2011 19:01:41 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-07-26T19:01:41Z</dc:date>
    <item>
      <title>Can we pass the map service (REST) URL as a URL parameter to the JS API map template?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463517#M42835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ArcGIS.com (Javascript) viewer accepts a map service (REST) URL as a URL parameter, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?url=http%3a%2f%2f129.2.24.163%2fArcGIS%2frest%2fservices%2f00_SMC_Environmental_Health%2fMapServer&amp;amp;source=sd"&gt;http://www.arcgis.com/home/webmap/viewer.html?url=http%3a%2f%2f129.2.24.163%2fArcGIS%2frest%2fservices%2f00_SMC_Environmental_Health%2fMapServer&amp;amp;source=sd&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try this with my locally-hosted JS API map template, nothing appears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can we pass the map service (REST) URL as a URL parameter to the JS API map template?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463517#M42835</guid>
      <dc:creator>DonBarker</dc:creator>
      <dc:date>2011-07-26T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463518#M42836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ags_fullmaplayoutwithborderandmargin.html"&gt;"Border and Margin" ArcGIS.com sample&lt;/A&gt;&lt;SPAN&gt; show this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the URL for the sample:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ags/ags_fullmaplayoutwithborderandmargin.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ags/ags_fullmaplayoutwithborderandmargin.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here it is with a URL parameter for a webmap:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ags/ags_fullmaplayoutwithborderandmargin.html?webmap=d902ef17333c4dbe9e0caa05e067ec89"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/ags/ags_fullmaplayoutwithborderandmargin.html?webmap=d902ef17333c4dbe9e0caa05e067ec89&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463518#M42836</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T18:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463519#M42837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking time to reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my question is about passing in the REST URL as a parameter, rather than the unique id of an AGO web map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463519#M42837</guid>
      <dc:creator>DonBarker</dc:creator>
      <dc:date>2011-07-26T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463520#M42838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking time to reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I don't see where the REST URL for a map service is passed as a URL parameter in either of the examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463520#M42838</guid>
      <dc:creator>DonBarker</dc:creator>
      <dc:date>2011-07-26T18:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463521#M42839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The same strategy applies. After you grab the URL using esri.urlToObject(), create a dynamic map service layer and add it to the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463521#M42839</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463522#M42840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this explanation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it requires some Javascript coding.&amp;nbsp; Whereas, the example I provided for the ArcGIS.com viewer (above),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this example of the AGXO (Silverlight) viewer &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://explorer.arcgis.com/?url=http://129.2.24.163/ArcGIS/rest/services/00_SMC_Environmental_Health/MapServer"&gt;http://explorer.arcgis.com/?url=http://129.2.24.163/ArcGIS/rest/services/00_SMC_Environmental_Health/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require no scripting.&amp;nbsp; Or, please let me know if I'm missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463522#M42840</guid>
      <dc:creator>DonBarker</dc:creator>
      <dc:date>2011-07-26T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463523#M42841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to host it locally and/or do something not explicitly demonstrated in a sample, then yes, it requires a little code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're free to use the ArcGIS.com viewer or Explorer Online, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 19:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463523#M42841</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T19:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463524#M42842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, these are very cool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a core part of our San Mateo County strategy to publish our county geodatabase map layers using AGO resources; i.e. at little or no cost besides our existing investment in ArcGIS Server and geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 19:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463524#M42842</guid>
      <dc:creator>DonBarker</dc:creator>
      <dc:date>2011-07-26T19:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass the map service (REST) URL as a URL parameter to the JS API map templ</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463525#M42843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice. If you're interested in hosting your data on ArcGIS.com you should talk to your account rep.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 19:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-we-pass-the-map-service-rest-url-as-a-url/m-p/463525#M42843</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T19:09:56Z</dc:date>
    </item>
  </channel>
</rss>

