| <script src="/ViaVirtualEarth/Portals/0/VE.js"></script> |
| function CreateCompass() { var el=document.createElement("div"); el.id="VE_Compass"; el.style.background="url(images/compass.gif)"; el.onmousedown=VE_Compass._MouseDown; el.onmouseup=VE_Compass._MouseUp; el.onmousemove=VE_Compass._MouseMove; el.style.position="absolute"; el.style.top = 100; el.style.left = 15; el.style.zIndex=31; el.style.width = 93; el.style.height = 91; VE_Compass.element=el; document.body.appendChild(el); } function OnPageLoad(){ CreateCompass(); ... |
| <table id="VE_MapScale" cellpadding="0" cellspacing="0" unselectable="on"> <tr> <td> <div id="VE_MapScaleLabel" unselectable="on"> </div> </td> </tr> <tr> <td> <div id="VE_MapScaleBar" unselectable="on"> </div> </td> </tr> </table> |
| #VE_MapScale { position: absolute; width: 150px; height: 18px; padding: 0; margin: 0; z-index: 31; } #VE_MapScaleLabel { height: 22px; font-family: Verdana; font-size: 12pt; color: black; overflow: hidden; } #VE_MapScaleBar { width: 150px; height: 5px; background: green; overflow: hidden; } |
| PositionElement(document.getElementById("VE_MapScale"), 300, 550, 150, 18); UpdateMapScale(); |
| map.onEndZoom=function(e){ document.getElementById("info").innerHTML = ’Latitude = ’ + e.latitude + ’, Longitude = ’ + e.longitude+’), Zoom=’ + e.zoomLevel; UpdateMapScale();} |