<?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: How to add shapefile on basemap without open file dialog in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591777#M55333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you are trying to load a shapefile that already exists on the server, is that correct? The example uploads a shapefile from the users computer to the server then loads it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have the file on the server, better just serve it up as a service. If you don't have arcserver, convert it to KML or something easier to work with. Looks like no way to just load a shapefile in the API. Pretty sad on ESRIs part considering they the only ones who use .shp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also upload the shapefile to arcgis online then save the map and load it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 21:52:56 GMT</pubDate>
    <dc:creator>PaulCrickard</dc:creator>
    <dc:date>2015-01-06T21:52:56Z</dc:date>
    <item>
      <title>How to add shapefile on basemap without open file dialog</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591776#M55332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to modify the JavaScript for adding shapefile to a basemap (script found here:&amp;nbsp; &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jssamples/portal_addshapefile.html" rel="nofollow" target="_blank"&gt;Add shapefile | ArcGIS API for JavaScript&lt;/A&gt; ).&amp;nbsp; However, I'm trying to get this functionality on my website whereby user specifies the shapefile's filename; then behind the scene, the script retrieves the shapefile from a folder in the website and adds the specified shapefile to the basemap.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this?&amp;nbsp; Been trying but unsuccessful.&amp;nbsp; I have an HTML button that I want the user to click and (without navigating to the location of the shapefile--since it's a website), the shapefile is added.&amp;nbsp; So, I'm trying to achieve something like the following for the button:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Consolas;"&gt;&amp;lt;button&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="submit"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="btnAddShp"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="Command"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="Add Shapefile"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="btn btn-cyan2 btn-sm"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;onclick&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;="addShapefile()"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Add Shapefile&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: Consolas;"&gt;button&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 21:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591776#M55332</guid>
      <dc:creator>MarilynGambone</dc:creator>
      <dc:date>2015-01-06T21:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile on basemap without open file dialog</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591777#M55333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you are trying to load a shapefile that already exists on the server, is that correct? The example uploads a shapefile from the users computer to the server then loads it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have the file on the server, better just serve it up as a service. If you don't have arcserver, convert it to KML or something easier to work with. Looks like no way to just load a shapefile in the API. Pretty sad on ESRIs part considering they the only ones who use .shp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also upload the shapefile to arcgis online then save the map and load it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 21:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591777#M55333</guid>
      <dc:creator>PaulCrickard</dc:creator>
      <dc:date>2015-01-06T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile on basemap without open file dialog</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591778#M55334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes. The shapefiles already exist on the server.&amp;nbsp; I guess I really need to install the ArcGIS Server version in our production server because there are thousands of shapefiles that the user can select from (it's going to be quite a task to convert each one to KML).&amp;nbsp; I still don't have the ArcGIS Server; so I'm trying to see if the JavaScript API can work without using a service.&amp;nbsp; I guess not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 22:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-shapefile-on-basemap-without-open-file/m-p/591778#M55334</guid>
      <dc:creator>MarilynGambone</dc:creator>
      <dc:date>2015-01-06T22:17:15Z</dc:date>
    </item>
  </channel>
</rss>

