I am looking for a way to remove some of the drawing options available when the Draw Widget loads. I saw this: Draw widget - configure available draw modes as an idea/suggestion, but wondering if there is way to get the job done using some css in the html file as seen here in this post for the Screening Widget: Hide tools in Screening Widget. I am looking to hide most of the drawing options except the Polygon, Freehand Polygon, and text option. I attached a image showing which tools I am looking to hide. Any help is greatly appreciated.
Matt,
A css rule would be the simplest way:
<SPAN class="selector token">.jimu-widget-draw .draw-item.point-icon, .jimu-widget-draw .draw-item.line-icon, .jimu-widget-draw .draw-item.polyline-icon, .jimu-widget-draw .draw-item.freehand-polyline-icon, .jimu-widget-draw .draw-item.arrow-icon, .jimu-widget-draw .draw-item.triangle-icon, .jimu-widget-draw .draw-item.extent-icon, .jimu-widget-draw .draw-item.circle-icon, .jimu-widget-draw .draw-item.ellipse-icon</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="property token">display</SPAN><SPAN class="punctuation token">:</SPAN> none!important<SPAN class="punctuation token">;</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></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Add this to the bottom of the widgets style.css
That worked perfect. Thanks Robert. As always, much appreciated.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.