<?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 do I add a shapefile (.lpk) to a map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678753#M63282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you say "add to map", is that map only for you displaying on your computer? Or, do you want to pass the URL of the web app so that you can share it?&lt;BR /&gt;In order to share your data or layer, you have to host it as a service either on your ArcGIS Server machine, or put it on arcgis.com.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the map to be share-able on a public website. Since I don't have my own ArcGIS server, how would I put it on arcgis.com? And what kind of layer class/object does shapefile fall under? I'm not sure if I phrased this question correction. As an example, to add a KML layer, I would create a KMLLayer object then add it to the map by doing so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.require("esri.layers.KMLLayer");
var kmlUrl = "http://url-to-kml-file-here.kmz"; 
kml1 = new esri.layers.KMLLayer(kmlUrl);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
map.addLayer(kml1);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But for a shapefile (.lkp), what do I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:36:20 GMT</pubDate>
    <dc:creator>DamNguyen</dc:creator>
    <dc:date>2021-12-12T04:36:20Z</dc:date>
    <item>
      <title>How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678751#M63280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not familiar with GIS so I don't know what kind of layer a shapefile is. How do I add it to an existing map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;map = new esri.Map("mapDiv", {
&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-95.80, 39.29],
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 4,
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo"
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 23:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678751#M63280</guid>
      <dc:creator>DamNguyen</dc:creator>
      <dc:date>2013-11-22T23:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678752#M63281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you say "add to map", is that map only for you displaying on your computer? Or, do you want to pass the URL of the web app so that you can share it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to share your data or layer, you have to host it as a service either on your ArcGIS Server machine, or put it on arcgis.com.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2013 00:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678752#M63281</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-11-23T00:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678753#M63282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you say "add to map", is that map only for you displaying on your computer? Or, do you want to pass the URL of the web app so that you can share it?&lt;BR /&gt;In order to share your data or layer, you have to host it as a service either on your ArcGIS Server machine, or put it on arcgis.com.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the map to be share-able on a public website. Since I don't have my own ArcGIS server, how would I put it on arcgis.com? And what kind of layer class/object does shapefile fall under? I'm not sure if I phrased this question correction. As an example, to add a KML layer, I would create a KMLLayer object then add it to the map by doing so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.require("esri.layers.KMLLayer");
var kmlUrl = "http://url-to-kml-file-here.kmz"; 
kml1 = new esri.layers.KMLLayer(kmlUrl);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
map.addLayer(kml1);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But for a shapefile (.lkp), what do I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678753#M63282</guid>
      <dc:creator>DamNguyen</dc:creator>
      <dc:date>2021-12-12T04:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678754#M63283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can't add shapefiles.&amp;nbsp; Otherwise few would pay for Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to either publish the data, or publish it on arcgis.com with an account and then consume the webmap in your application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678754#M63283</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-11-25T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678755#M63284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you can't add shapefiles.&amp;nbsp; Otherwise few would pay for Server.&lt;BR /&gt;&lt;BR /&gt;You have to either publish the data, or publish it on arcgis.com with an account and then consume the webmap in your application.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not understanding you entirely because I'm very new at this. Sorry in advance. By publish it on arcgis.com. Do you mean create a webmap (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html"&gt;http://www.arcgis.com/home/webmap/viewer.html&lt;/A&gt;&lt;SPAN&gt;) upload the shapefile, then embed it in my website?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678755#M63284</guid>
      <dc:creator>DamNguyen</dc:creator>
      <dc:date>2013-11-25T16:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678756#M63285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q000000m2000000"&gt;http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q000000m2000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But remember&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Limitations&lt;BR /&gt;Below are the limitations to using shapefiles in the ArcGIS.com map viewer.&lt;BR /&gt;Compression formats other than a .zip archive are not supported.&lt;BR /&gt;Files containing more than 1,000 features cannot be added to a map.&lt;BR /&gt;The following features are not supported: multipatch or multipoint geometries, geometries that cross the dateline, or self-intersections in polygons. Shapefiles with these features cannot be added to a map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your shapefile is outside this it won't work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678756#M63285</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-11-25T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678757#M63286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Jeff!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678757#M63286</guid>
      <dc:creator>DamNguyen</dc:creator>
      <dc:date>2013-11-25T16:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a shapefile (.lpk) to a map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678758#M63287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you are welcome.&amp;nbsp; good luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-a-shapefile-lpk-to-a-map/m-p/678758#M63287</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2013-11-25T16:47:52Z</dc:date>
    </item>
  </channel>
</rss>

