PictureMarkerSymbol Source

Discussion created by JALevine on Mar 13, 2013
Latest reply on Aug 15, 2016 by mfaulcon
Is there a way to source a PictureMarkerSymbol to something other than a url? For example, I've loaded an HTMLImageElement that I'd like to use as the image for my PictureMarkerSymbol, but the API says the PictureMarkerSymbol requires a url string, not an object.  The reason I'm trying to do it this way is that my image is fairly large and takes a while to load; I'd like to attach a loadComplete event that fires when the image is finished loading.  If I load it as an HTMLImageElement, I can do this; however, the PictureMarkerSymbol does not have an onLoad even that fires when the image is finished loading.

Thanks for your help,