bpratt


Am refining my first map and would like to use a custom icon in the default onMouseOver to display text, and use the same icon to display a picture while the left mouse button is held down. Is this possible

I already have the onMouseOver and custom icon working and assume I need to incorporate the onMouseDown and onMouseUp events. Any help on combining these events would be greatly appreciated.

Bill



Re: Can I use same Pushpin for text and picture?

Derek Chan


Try this: on the onMouseOver event, grab the pinID (assuming you've stored it somewhere) and then change the element image url.  I would assume the same to apply for onMousedown and onMouseup.  Something like this code:

document.getElementById(pinID);

I'll see if I can post some sample code later in the week







Re: Can I use same Pushpin for text and picture?

bpratt

I will play with that, but would appriceate the sample as I am pretty new to this.

Bill