Icon appears offset from actual Latitude and Longitude

Last post 6/8/2009 9:21:47 PM by Medwyn. 10 replies. << Back to Web.Maps.VE v2.0 General
6/23/2008 4:05:31 PM
nsfranklin

Icon appears offset from actual Latitude and Longitude

Hi

We are taking data from a trimtrac device that uses WGS84 standard, however when comparing the locations of pushpins/icons between Google Maps and VE, Google maps looks considerable more accurate.

 

For example a vehicle that in on the road in Google maps is offset to the right of the road, by 10 to 20 feet by comparison, and therefore looks like it is located alongside the road.

 

Any thoughts please.

6/25/2008 8:17:41 PM
Chris Pietschmann

Re:Icon appears offset from actual Latitude and Longitude

The accuracy at which Virtual Earth plots the pushpins isn't something that is affected or can be fixed within the Web.Maps.VE component.
6/26/2008 3:04:06 AM
jmaronge

Re:Icon appears offset from actual Latitude and Longitude

I am noticing this also.  When I lookup my address it puts the pushpin across the street and my neighbors house.  I went to http://maps.live.com and search for my address and it did the same thing.  Since I am new to the maps I do not know if it has always been like this.  Even the birds eye view is off.  Call me crazy but I could swear that eariler today the birds eye view showed my house.  I remember seeing my pool in the window that came up.  Not it is showing my neighbors pool. 

I know this is a MS issue but does anyone know where we can post to find out somemore info?

Thanks,

Jason

6/26/2008 4:00:38 AM
Chris Pietschmann

Re:Icon appears offset from actual Latitude and Longitude

You can post questions in the Virtual Earth: Map Control Development forum on MSDN.

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=537&SiteID=1
11/14/2008 1:17:58 PM
ThomasSL

Re:Icon appears offset from actual Latitude and Longitude

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. :-)

3/9/2009 7:40:55 PM
snoop_hardin

Re:Icon appears offset from actual Latitude and Longitude

I also have had no luck on utilizing the ImageOffset. When I use the ImageOffset, my pushpin remains in the same location, despite the value I use.

My code is as follows: 

Dim myShape As New Shape(points(0))

myShape.CustomIcon = New CustomIconSpecification()
myShape.CustomIcon.Image = "images/pushpin.png"
myShape.CustomIcon.ImageOffset = New Simplovation.Web.Maps.VE.Pixel(CInt(-50), CInt(-50))
Map1.AddShape(myShape)

Please help us out here Chris!

3/9/2009 7:48:07 PM
snoop_hardin

Re:Icon appears offset from actual Latitude and Longitude

More specifically, my desire is to have the pushpin placed where the bottom center of the image is located at the latitude and longitude. Any code to do this would be appreciated.

I think it is only logical that all pushpins whould be at the bottom center, correct?

3/9/2009 7:50:45 PM
snoop_hardin

Re:Icon appears offset from actual Latitude and Longitude

As I'm visualizing what this would look like, this would also require the mouseover popup to be adjusted. More than likely, the top right of the pushpin image would be best.

Is there a way to move this as well?

5/4/2009 7:15:42 PM
andre

Re:Icon appears offset from actual Latitude and Longitude

hi snoop_hardin,

is there already a solution for your question (ImageOffset-Property)?

We have the same problems with the VE Live Component and are wondering, if this component will be a solution?

Thanks,

Andre

5/5/2009 9:47:22 PM
Chris Pietschmann

Re:Icon appears offset from actual Latitude and Longitude

Andre, What is the "VE Live Component" that you are referring to?
6/8/2009 9:21:47 PM
Medwyn

Re:Icon appears offset from actual Latitude and Longitude

Same issue here.

If I display different sized images on the map then the larger image is to the bottom right of the small image since it looks like it's placing the top left of the image at the lat/long selected.

Without this functionality there's no way I can move the icon so the center of the image is at the lat/lon and the icon stays in the same place regardless of it's size.

Any other workarounds available? This is likely to be a big issue for me.