bing map pin sliding

kyle shapiro asked on March 31, 2015 22:16

When using the Icon Field Map Property on a bingmap webpart, the pins will be further and further off position depending on how far out the zoom level is. When zoomed all the way in, it will be perfectly accurate. As I zoom out, it will become less and less accurate, hitting higher and higher on the map. This behavior only happens while the Icon Field Map Property is used. The image I use for the Icon Field is exactly the same dimensions as the default pin, and has the same pixel for the tip of the pin image. As a test, I made the default bing pin image the image I was using for Icon Field, and once again, the pin will slide off it's mark exponentially more as the map is zoomed out. Once again, if the Icon Field is left blank, the pins are always positioned correctly. Any suggestions on why this may be or what I can do to work around it?

Correct Answer

kyle shapiro answered on April 1, 2015 16:47

This is resolved. The bing map javascript file ~\CMS\CMSWebParts\Maps\Documents\BingMaps_files\BingMaps.js sets the dimentions of the pin image to 30x50 px default. The bing map default image is 25x39 px. Changing this js file to 25x39 resolved the issue.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.