Select to view content in your preferred language

custom icons templatePicker?

848
2
10-26-2012 08:44 PM
CorySilva
Deactivated User
What is the best way to use custom icons with the dynamically built dojo widgets?
or
Can I link up a drawing template to a static html node like this:
<div id="template1" dojo-do-something...><img src="template1.png" /></div>

All in all I want to use custom icons for all the feature templates that templatePicker shows.
0 Kudos
2 Replies
CorySilva
Deactivated User
Well I ended up doing it the sloppy/annoying way.. A bunch of css overrides on the templatePicker itself.  If anyone knows a mo' better way please let me know.
0 Kudos
ReneRubalcava
Esri Frequent Contributor
Are you looking to extend the template picker or build something custom?
I've had a couple of scenarios where I needed to create data that wasn't tied to a map service, so I made a drag and drop utility with custom symbols.
Here is a sample
http://www.odoe.net/apps/dndeditdemo/
Here is the source
https://github.com/odoe/AGSDragDropHandler

Combine that with the Editor widget and a FeatureLayer and you should be flying.

It might help out.
0 Kudos