Thank you so much for the reply. My requirement is to show moving vehicles. if i use the above mentioned java script i have to hard code the value of longt and lat. But i cant do that since the vehicle location will alway should move as per the long and lat. Is there any way to achieve this functionality.
I have created a Property called MarkerImage in the map referring data page class and set the binary file (icon) to that property. It allows the changes in run time and we can conditionally add multiple icons.