<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am brand new to this list and the site so I was hoping for some suggestions in getting a bug in the Bing Maps data Attribution checked in. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The bug that I found was that when your entire map is west of -90 or east of +90, no text attribution shows up. I have attached a picture but this is easily reproducible at <a href="http://openlayers.org/dev/examples/bing-tiles.html">http://openlayers.org/dev/examples/bing-tiles.html</a> . (It’s also probably not a good idea to leave out attribution when you view the providers home location of Seattle.) <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The fix seems to be a very simple change that forces the code to handle the fact that the JSON response from the Imagery Metadata call for the bounding boxes is lat/lon and not Lon/lat. <o:p></o:p></p><p class=MsoNormal>For example:<o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>bbox=27, -179.99, 87, -126.5 is clearly two lat/lon </span><span style='color:#1F497D'>rather than lon/lat pairs. </span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I discovered that the existing code was not passing the “reverseOrder” flag to “OpenLayers.Bounds.fromArray”. Just adding missing second parameter of “true” allows the code to generate bounding boxes consistent with the rest of Open Layers and the bug is fixed. The line below </span><span style='color:#1F497D'>with the added parameter </span><span style='color:#1F497D'>is from Bing.js. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>bbox = OpenLayers.Bounds.fromArray(coverage.bbox, true);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Normally, I do not like hard coding “true” or any constants if there is a different way but in this case, I see no way expressing that the JSON data order</span><span style='color:#1F497D'> returned from the Microsoft call </span><span style='color:#1F497D'> is what it is. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Of course, this also means that the attribution was not correct in many places even when it did show up. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>As I am not familiar with the processes used for validation or testing but I hope I will hear from someone soon. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks in advance, <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Eric Blasenheim<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>