I see this for api 4.14
Esri Web Style Symbols (2D) | ArcGIS API for JavaScript 4.14
Is there something like this for 3.x api? I need a few symbols and need help finding out how to find them
Jay,
What most people do is render it with an image using PictureMarkerSymbol.
https://developers.arcgis.com/net/10-2/desktop/api-reference/html/5d809f1b-68de-4582-a4fe-166ed752941c.htm
Almost.
<SPAN class="keyword token">var</SPAN> pictureMarkerSymbolexample <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">PictureMarkerSymbol</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'http://www.esri.com/graphics/aexicon.jpg'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">51</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">51</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> myFeaturelayer<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setRenderer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">SimpleRenderer</SPAN><SPAN class="punctuation token">(</SPAN>pictureMarkerSymbolexample<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> map<SPAN class="punctuation token">.</SPAN><SPAN class="token function">addLayer</SPAN><SPAN class="punctuation token">(</SPAN>myFeaturelayer<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Something like this?
<SPAN class="keyword token">var</SPAN> pictureMarkerSymbolexample <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">PictureMarkerSymbol</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">'http://www.esri.com/graphics/aexicon.jpg'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">51</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">51</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> myFeaturelayer<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setRenderer</SPAN><SPAN class="punctuation token">(</SPAN>pictureMarkerSymbolexample <SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> map<SPAN class="punctuation token">.</SPAN><SPAN class="token function">addLayer</SPAN><SPAN class="punctuation token">(</SPAN>myFeaturelayer<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I am accessing a Feature service that I have no control over the symbol point.
Looking to convert/render those points with a hospital symbol...
Is there a list of symbols that I can apply to those points in 3.x javascript api
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.