My graphicGemetry object contains X and Y values (-9212442.86532579,4421916.145327024) but my image isn't appearing. I suspect there are other data values I need in order to plot my point but I do not know what they are.
Here is what I have and no errors are being reported:
cppr.App.map.graphics.clear(); var symbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 18, // symbol size new esri.symbol.SimpleLineSymbol( esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 1), new dojo.Color([255,255,0,0.80]) ); cppr.App.map.graphics.add(new esri.Graphic(graphicGeometry, symbol));
I should also add that I've used this code above when I queried the map service. What I'm doing now is querying a MSSQL Database to pull back the name. the database also contains the x & y coordindates so I thought I'd be able to reuse the same code as shown above but apparently there is something missing.