<?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: Layer display problems in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106532#M9835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;​!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's something I've not thought about at all. How much different is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently all I need extra is the PopupTemplate system that lets me make that nice tooltip (which also contains a generated link for each river area when clicked that brings people to the last view.)&amp;nbsp; so as long as it supports doing something like this I'm all for it. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make it a MapImageLayer? Simply just load the WebMap/Scene with the layer in it like this example?&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapimagelayer/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapimagelayer/index.html"&gt;MapImageLayer | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arnt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Jun 2016 03:24:51 GMT</pubDate>
    <dc:creator>Arnt_OddvarPedersen</dc:creator>
    <dc:date>2016-06-12T03:24:51Z</dc:date>
    <item>
      <title>Layer display problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106530#M9833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making an app that's using some of the ArcGIS/ESRI features and the JavaScript API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to create a new &lt;STRONG&gt;Web&lt;/STRONG&gt; &lt;STRONG&gt;Map&lt;/STRONG&gt; where I added my own &lt;STRONG&gt;Map Notes&lt;/STRONG&gt; layer.&amp;nbsp; On that layer I marked up my content using the &lt;EM&gt;&lt;STRONG&gt;Area&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;and &lt;EM&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;tool. I applied my styles to them so they're not all the same color and saved the layer/map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading for a bit, I found out that to get them displayed on my base map I needed to import the layer service and apply it to my &lt;STRONG&gt;map view&lt;/STRONG&gt; in JS.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require(["esri/Map",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/views/MapView",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/FeatureLayer",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function (Map, MapView, FeatureLayer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureLayer = new FeatureLayer({
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgis.com%2FMyID%2Farcgis%2Frest%2Fservices%2FMyLayerName%2FFeatureServer%2F3" target="_blank"&gt;http://services.arcgis.com/MyID/arcgis/rest/services/MyLayerName/FeatureServer/3&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ['*']
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new Map({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [featureLayer]
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; var view = new MapView({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container: "areaMap",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 13,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [13.1835075, 65.8429693]
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;This thing works really well however once I published the layer I had created it seems to have lost all the styling and settings I set to the different &lt;STRONG&gt;Area&lt;/STRONG&gt; shapes, not to mention that the text fields I had up with them are gone. What have I done wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, I read through the 4.0 Documentation that you can directly load a WebMap as well through Javascript but when I try to load my custom map with my Feature Layer attached to it, the layers seem to not load at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate any help on this as I've been hitting my head against the wall since Thursday trying to fix this now. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106530#M9833</guid>
      <dc:creator>Arnt_OddvarPedersen</dc:creator>
      <dc:date>2021-12-11T06:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Layer display problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106531#M9834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arnt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you have a specific need to use FeatureLayer and not just use MapImageLayer? When you use FeatureLayer you will end up losing may things you have setup, as they will have to be manually setup. If you use MapImageLayer then the layer will be rendered on the server and will maintain the features you are losing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 02:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106531#M9834</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-12T02:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Layer display problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106532#M9835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;​!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's something I've not thought about at all. How much different is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently all I need extra is the PopupTemplate system that lets me make that nice tooltip (which also contains a generated link for each river area when clicked that brings people to the last view.)&amp;nbsp; so as long as it supports doing something like this I'm all for it. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make it a MapImageLayer? Simply just load the WebMap/Scene with the layer in it like this example?&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapimagelayer/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapimagelayer/index.html"&gt;MapImageLayer | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arnt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 03:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106532#M9835</guid>
      <dc:creator>Arnt_OddvarPedersen</dc:creator>
      <dc:date>2016-06-12T03:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Layer display problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106533#M9836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arnt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The difference is like I said earlier the layer and all of it's sub layers are rendered on the server (not the client) thus it uses the full capabilities of ArcGIS server (i.e. advanced cartography, labeling, etc). Yes it is as simple as the sample you linked. Give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106533#M9836</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-13T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Layer display problems</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106534#M9837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked out just brilliantly. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-display-problems/m-p/106534#M9837</guid>
      <dc:creator>Arnt_OddvarPedersen</dc:creator>
      <dc:date>2016-06-14T11:34:49Z</dc:date>
    </item>
  </channel>
</rss>

