AnsweredAssumed Answered

JS: Add Symbols not successful

Question asked by shaningesri on Jul 28, 2014
Latest reply on Jul 28, 2014 by shaningesri

I have a couple of JS applications that used to work very well.  After several months, I re-run them again and got problems in adding symbols on the map.  The related code is below:  

function drawResponseGeometries2(response) {        map.graphics.clear();      // clear graphicsLayer if exists        var pointJson = response.Geometry[0];        var point = new esri.geometry.Point(pointJson);        var symbol = new esri.symbol.SimpleMarkerSymbol({            "color": [255, 0, 0, 128],            "size": 10,            "angle": -30,            "xoffset": 0,            "yoffset": 0,            "type": "esriSMS",            "style": "esriSLSSolid",            "outline": {                "color": [0, 0, 0, 255],                "width": 1,                "type": "esriSLS",                "style": "esriSLSSolid"            }        });        var g = new esri.Graphic(point, symbol);        map.setExtent(initialExtent.expand(0.125));        map.graphics.add(g);        map.centerAt(point);    }

When I run debugger, I could not detect anything wrong.  How can this program be debugged?  Appreciate if you can share your experience.

Remark:  The new format of this forum looks to be not good at all.

Outcomes