Sep
18
Written by:
Soul Solutions
Monday, 18 September 2006
A little trick for when you add your custom Pushpin in Virtual Earth, if you need to modify the postion of the pin slighty to line up the point of pin or centre of crosshair with the correct pixel you must set a "iconstyle" and do it in css.
//set an iconStyle when adding the pin in js
var x = new VEPushpin(id, location, icon_url, title,
details, iconStyle, titleStyle, detailsStyle);
/*The css class for the pushpin, use left and top to adjust offset*/
.MyPushpinStyle {position:absolute;left:0px;top:-20px;}
Tags:
1 comments so far...
Stopping animation when we click the pin
Hi, thanks a lot for giving me lot of information about vertual earth. In one of my applications i have used animated gif image for pushpin. It animates while showing the location. It works fine until we go and click the pushpin. When we click it stops animating.And when we refresh the form then the animation starts again. I cant figure out how can I resolve the problem. Please give me one solution. My mail id : kiranv@intergy.com.au Thank you.
By Kiran on
Wednesday, 18 October 2006
|