I am trying to add a point to map like this:

var point = new esri.geometry.Point(19.82, 41.33);
point = esri.geometry.geographicToWebMercator(point);
var symbol = new esri.symbol.PictureMarkerSymbol("https://cdn1.iconfinder.com/data/icons/Map-Markers-Icons-Demo-PNG/128/Map-Marker-Marker-Outside-Chartreuse.png", 32, 32);
var graphic = new esri.Graphic(point, symbol);
var layer = new esri.layers.GraphicsLayer();

however the marker is showing on the back of borders layers! I tried to keep the point at first level using:


but it didn't work! Can you please let me know what I am doing wrong?

  • What version of the API are you using? – GavinR Sep 4 '15 at 3:12
  • What is the type of the layer (you called it the "borders layer") that the GraphicsLayer is showing up behind? – GavinR Sep 4 '15 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.