Select to view content in your preferred language

refresh images on Image Layer

664
0
06-11-2014 07:52 PM
HuanQiao
New Contributor
I have added an MapImageLayer on the map and add an MapImage(.png format) on the image layer. I want to accomplish the effect like showing a video by changing the href attribute of the Mapimage with a timer.
After I changed the href attribute the image did not change. I tried map.setExtent() and map.resize() and that does not work.
Now I remove the image from image layer first and change the herf and finally add the image again on the image layer. Now I can see images changing with the timer but images are changed flickeringly and the display effect is bad.
Any help would be greatly appreciated.
0 Kudos
0 Replies