AnsweredAssumed Answered

Point symbol disappears upon zoom

Question asked by ihussein1 on Mar 25, 2015
Latest reply on Mar 26, 2015 by ihussein1

Hey guys,

 

I am working on an app where a user clicks on a piece of data in a grid which then zooms to the location. Since these are points, I could use setextent, and used centerAndZoom to zoom to the point. My issue though here is when it zooms to the point, the point symbol disappears. is there anyway to keep the point symbol upon executing centerAndZoom()?

 

heres a fiddle Edit fiddle - JSFiddle

 

ok what I did was make the point into a graphic. doesnt keep the same symbol, which really isnt a problem.

 

if anyone were to have the same issue-          

markersymbol = make a new symbol

var graphic = your point

graphic.setsymbol(markersymbol)

map.graphics.add(graphic)

Outcomes