I am using a dynamic map service that contains a point layer that changes frequently. I refresh the dynamic layer every 10 seconds, but the graphic that contains the map tip remains at the original location.If I remove the graphics from the graphicslayer, and recreate them, I see the graphics blink, but the show up at the original location. How do I get the graphics to refresh, and show up at the new location, just as is happening with the dynamic layer?
Looking at your code, you are trying to add graphics to a MapServer layer. This is read-only and any edits to it will not be applied, even if you refresh your dynamic layer.