|
I notice there's a object on the Simplovation.Web.Maps.VE.CustomIconSpecification thats named ImageOffset.
I have tried to use this one without any luck. Could you please guide me in the right direction here.
The pushpins always appear up to the left of the actual point. But they seems more "right" the more one zoom. But I guess that's just because the offset is less visible the closer one get onto the target...
Here's the code I have tried. (I read somewhere that the offset in VE is 13, 13 pixels as standard...)
Dim oIcon As New Simplovation.Web.Maps.VE.CustomIconSpecification()
oIcon.Image = "images/maintenanceobjects/" + oMaintenanceobject.MapStatus.ToString + ".gif"
oIcon.ImageWidth = 10
oIcon.ImageHeight = 10
oIcon.ImageOffset = New Simplovation.Web.Maps.VE.Pixel(CInt((oIcon.ImageWidth / 2) - 13), CInt((oIcon.ImageHeight / 2) - 13))
oPushpin.CustomIcon = oIcon
But the pushpin won't be moved even though I set the imageoffset-pixel to for instance 1000, 1000..
Please help! Thanks in advance. :-)
|