<?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 Adding Layers from local drive in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-layers-from-local-drive/m-p/188938#M17494</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 want to add layers to my map with JavaScript API. There are some examples in the Resource Center "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Creating a custom tiled layer type&lt;/SPAN&gt;&lt;SPAN&gt;" title such as; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"This function adds the layer to the map."&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function init() {
&amp;nbsp; var map = new esri.Map("map");
&amp;nbsp; map.addLayer(new my.PortlandTiledMapServiceLayer());
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I want to add my layers from my local drive (C:\), because I want to open my map in a browser without internet access. How can I do this, can you give a sample code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Sep 2010 14:21:09 GMT</pubDate>
    <dc:creator>GeoInformatik</dc:creator>
    <dc:date>2010-09-05T14:21:09Z</dc:date>
    <item>
      <title>Adding Layers from local drive</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-layers-from-local-drive/m-p/188938#M17494</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 want to add layers to my map with JavaScript API. There are some examples in the Resource Center "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Creating a custom tiled layer type&lt;/SPAN&gt;&lt;SPAN&gt;" title such as; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"This function adds the layer to the map."&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function init() {
&amp;nbsp; var map = new esri.Map("map");
&amp;nbsp; map.addLayer(new my.PortlandTiledMapServiceLayer());
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I want to add my layers from my local drive (C:\), because I want to open my map in a browser without internet access. How can I do this, can you give a sample code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 14:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-layers-from-local-drive/m-p/188938#M17494</guid>
      <dc:creator>GeoInformatik</dc:creator>
      <dc:date>2010-09-05T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Layers from local drive</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-layers-from-local-drive/m-p/188939#M17495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some posts regarding the upload of local files to a JS API application. Most of them rely on a web-service for a) uploading the file and b) providing it to the JS API app via an URL. In general, security reasons and the HTTP protocol don't allow you to upload files to a JS application directly. A web-service - based on .NET, Java, PHP, Perl or anything else - allows uploading a file via HTTP. The Flex and Silverlight APIs behave different and the possibilities for accessing local data are greater. But for JavaScript I don't see a way for not using a service in the backend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 07:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-layers-from-local-drive/m-p/188939#M17495</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2010-09-06T07:08:27Z</dc:date>
    </item>
  </channel>
</rss>

