<?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 a custom marker with given renderer for features on portalitem? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142234#M13255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ that's as well my opinion but it was a wish from a customer. Those moments when I ask myself "why am I doing this" haha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2020 10:02:11 GMT</pubDate>
    <dc:creator>ChristianBischof</dc:creator>
    <dc:date>2020-05-29T10:02:11Z</dc:date>
    <item>
      <title>How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142227#M13248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using JS API 4.15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a portalItem which comes with already rendered markers for its features (3 feature layers). Those markers have shadows which shouldn't be "clickable" to trigger the popup.&lt;/P&gt;&lt;P&gt;So the idea is to put our own markers (for which we have renderer.json files) exactly on all of those provided markers of the portalItem so that we have access to all those markers and make the provided markers not clickable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically we want to put our own markers with the according renderer.json on top of the given markers from the portalItem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody could provide some sample code, instructions or suggestions I'd be glad!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 13:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142227#M13248</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-05-27T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142228#M13249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/405468"&gt;Christian Bischof&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this tutorial&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/style-feature-layers/" title="https://developers.arcgis.com/javascript/latest/guide/style-feature-layers/"&gt;Style feature layers | ArcGIS API for JavaScript 4.15&lt;/A&gt; answer your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 13:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142228#M13249</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-05-27T13:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142229#M13250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ this was helpful, but I am still a bit stuck with this "clickable are thing". Let's say I wanted to make only the white man in the image of the trailheadslayer to be the trigger for the popup&amp;nbsp;&lt;STRONG&gt;as demonstrated in the clickablearea.png file I added to the question.&amp;nbsp;&lt;/STRONG&gt;So basically if the area outside of the red box is clicked nothing happens, but if the click is inside of it the popup opens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 08:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142229#M13250</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-05-28T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142230#M13251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/405468"&gt;Christian Bischof&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can add the feature layers twice. Once the original one, the one with the shadow, and another one on top, with your own rendering.&lt;/P&gt;&lt;P&gt;In that case you can set &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEnabled" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEnabled"&gt;&lt;STRONG style="font-family: andale mono, monospace; "&gt;popupEnabled&lt;/STRONG&gt; to &lt;STRONG style="font-family: andale mono, monospace; "&gt;false&lt;/STRONG&gt;&lt;/A&gt; for the first layer and to &lt;STRONG style="font-family: andale mono, monospace; "&gt;true&lt;/STRONG&gt; for the second one. This should give the desired effect.&lt;/P&gt;&lt;P&gt;Please note: you may also wish to set the &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#listMode" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#listMode"&gt;&lt;STRONG style="font-family: andale mono, monospace; "&gt;listMode&lt;/STRONG&gt; to &lt;STRONG style="font-family: andale mono, monospace; "&gt;false&lt;/STRONG&gt;&lt;/A&gt; for the bottom layer, just to avoid that the layer appears twice in the &lt;STRONG style="font-family: andale mono, monospace; "&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html"&gt;LayerList&lt;/A&gt;&lt;/STRONG&gt; (if you have any in your app).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this solve your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 11:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142230#M13251</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-05-28T11:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142231#M13252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ I am currently trying to make exactly this approach work haha &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&amp;nbsp;I'll share my code snippet when I'm done - if anybody else's faster, feel free to contribute &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;Additoinally maybe it's worth mentioning that the webmap is a portalItem and already comes with some feature layers added to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 11:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142231#M13252</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-05-28T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142232#M13253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ your suggestion was helpful and I was able to implement it, but it didn't fix my issue because the popup opens generally not only at an exact click on the feature/it's marker, but also if the click event happens "somewhere very close to it". Eventually I wasn't able to achieve what I wanted: define a certain area which is clickable to trigger the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I guess if the markers would be bigger than this approach could work for others &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 09:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142232#M13253</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-05-29T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142233#M13254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/405468"&gt;Christian Bischof&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, that's what I asked myself from the first time I saw your question: why would you want to have a marker that is partly clickable, and partly non-clickable at all?!&lt;/P&gt;&lt;P&gt;From an end user perspective: it would drive me nuts if I clicked on a marker (because visually it is just one marker) and it would only react when I clicked in a particular part of it.&lt;/P&gt;&lt;P&gt;That's why click events which happen "somewhere very close to it" are also honored. It would discourage the users of your app if they have to click 10 or 20 times to open a popup...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, anyways, you could try to use the suggestion which I gave above, but most probably it is best not to use it at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 09:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142233#M13254</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-05-29T09:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom marker with given renderer for features on portalitem?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142234#M13255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/331608"&gt;Egge-Jan Pollé&lt;/A&gt;‌ that's as well my opinion but it was a wish from a customer. Those moments when I ask myself "why am I doing this" haha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 10:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-a-custom-marker-with-given-renderer-for/m-p/142234#M13255</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-05-29T10:02:11Z</dc:date>
    </item>
  </channel>
</rss>

