Hey All,
I'm having trouble figuring out what the best way to solve my problem is. I'm trying to have a layer of markers that may have different images, can rotate, have hover popups, and context menus that can all change on a refresh. I'm currently using a SimpleMarkerOverlay and adding the markers through a server-side Onclick event. This works very well. I have a timer on the page, also, so that every five minutes, I check to see if the position of the objects I'm tracking has changed. I can change the position of the markers with no problems. The issue comes when I have to change the image or rotation angle of the marker. If I change either of these, I end up with a 'broken picture' icon, instead of my marker, but it still functions with the hover pop-up and context menu. I've also tried removing and re-adding the icon, but the hover popup and context menu cease to function after this. I have also tried moving the icon through javascript, but it seems that the SimpleMarkerOverlay is not supported, and the InMemoryMarkerOverlay cannot have more than one icon/image for markers. Can you recommend how I should go about accomplishing my goal? Thanks a lot!
-Dustin