I have a similar question as it was asked years ago in this thread:
https://community.esri.com/thread/116957
Whenever an item is selected on my webmap it gets this default cyan colour. Is there any possible way to disable this functionality?
I am using JS API 4.15
Thanks in advance!
This works fine for me:
<SPAN class="keyword token">var</SPAN> view <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">MapView</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> container<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"viewDiv"</SPAN><SPAN class="punctuation token">,</SPAN> map<SPAN class="punctuation token">:</SPAN> map<SPAN class="punctuation token">,</SPAN> center<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">101.94981250000075</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">41.20977753557709</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> zoom<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">5</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> view<SPAN class="punctuation token">.</SPAN>popup<SPAN class="punctuation token">.</SPAN>highlightEnabled <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Christian.
Have you seen the highlightEnabled property of the views popup?
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#highlightEnabled
Thanks Robert Scheitlin, GISP but this highlightEnabled property seems not to work for me. Despite that you gave me some inspiration to solve the problem by using the following properties on my mapview.
view = new MapView({ map: webmap, container: "viewDiv", highlightOptions: { color: [255,255,255,0] } });
I've achieved, what I wanted, despite that I'd like to know how you'd have solved this problem with the property you mentioned.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.