Can I use firefly symbols within the ArcGIS API for JavaScript 4 renderer?

1068
3
Jump to solution
04-08-2018 12:02 PM
DennisPayk
New Contributor II

I would like to use firefly symbols like described here What’s New in ArcGIS Online? Firefly! - ArcGIS Blog  within a renderer in the ArcGIS API for JavaScript to render symbols from a point Feature Layer. Is this possible somehow?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

Sure you can do this. I think the easiest way would be to symbolize your map using the ArcGIS Online Map Viewer then save the web map and look at the network traffic and view the web map json. You can then pull that info into your jsapi app. Here's an simple web map that uses the firefly symbol. 

http://www.arcgis.com/sharing/rest/content/items/e2a892af27d94d6fb03e9d51b4f74d59/data?f=json 

And here's a test app that uses the same symbology: 

JS Bin - Collaborative JavaScript Debugging 

View solution in original post

3 Replies
KellyHutchins
Esri Frequent Contributor

Sure you can do this. I think the easiest way would be to symbolize your map using the ArcGIS Online Map Viewer then save the web map and look at the network traffic and view the web map json. You can then pull that info into your jsapi app. Here's an simple web map that uses the firefly symbol. 

http://www.arcgis.com/sharing/rest/content/items/e2a892af27d94d6fb03e9d51b4f74d59/data?f=json 

And here's a test app that uses the same symbology: 

JS Bin - Collaborative JavaScript Debugging 

JinnanZhang1
New Contributor

Here is a simple app that you can use to generate the firefly symbols that can be used with ArcGIS JS API:

https://vannizhang.github.io/firefly-symbols-generator/dist/

RyanBohan
Occasional Contributor II

What a great app, thank you.  Love the way the colors are displayed

0 Kudos