Modify HTML, add z-index etc.

403
0
01-15-2013 08:02 AM
MichaelRandall
New Contributor
How do I set html attributes for graphics I'm placing in a map layer?

I am interested in modifying attributes like alt, style (z-index), title.

Here's a code sample:

                        point = new esri.geometry.Point(lng, lat);
                        point = esri.geometry.geographicToWebMercator(point);
                        symbol = new esri.symbol.PictureMarkerSymbol("image.png", width, height);
                        attribs = {"attribute1":"attribute1 value")};
                        graphic = new esri.Graphic(point, symbol, attribs, infoTemplate);

Thanks!
0 Kudos
0 Replies