mjrandall@usgs.gov

Modify HTML, add z-index etc.

Discussion created by mjrandall@usgs.gov on Jan 15, 2013
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!

Outcomes