55 < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
66 < meta name ="robots " content ="index, all " />
77 < title > WebGL Earth API - Demo</ title >
8-
8+
99 < script src ="api.js "> </ script >
1010
1111 < script >
2222 zooming : true ,
2323 proxyHost : 'http://srtm.webglearth.com/cgi-bin/corsproxy.fcgi?url='
2424 } ) ;
25-
25+
2626 app . showMiniGlobe ( '../deploy/world512.jpg' , 128 ) ;
27-
27+
2828 // Get your own key from: https://www.bingmapsportal.com/
29- var bingKey = 'AsLurrtJotbxkJmnsefUYbatUuBkeBTzTL930TvcOekeG8SaQPY9Z5LDKtiuzAOu ' ;
30-
29+ var bingKey = 'AuCVBGPx1VQORSzUMGplLr3JTilLi3lUA3WnqT5SbKcUP5H2s9mh9XsHfy_VKmdG ' ;
30+
3131 mapB = app . initMap ( WebGLEarth . Maps . BING , [ 'AerialWithLabels' , bingKey ] ) ;
3232 mapM = app . initMap ( WebGLEarth . Maps . MAPQUEST ) ;
3333 app . setBaseMap ( mapM ) ;
3434
3535 mapBo = app . initMap ( WebGLEarth . Maps . BING , [ 'AerialWithLabels' , bingKey ] ) ;
3636 mapMo = app . initMap ( WebGLEarth . Maps . MAPQUEST ) ;
37-
37+
3838 customTMS = app . initMap ( WebGLEarth . Maps . CUSTOM , [ 'TMS' , 'http://webglearth.googlecode.com/svn/resources/tms/{z}/{x}/{y}.jpg' , 1 , 5 , 256 , true ] ) ;
3939
4040 //make the overlays transparent
4141 mapBo . setOpacity ( 0.5 ) ;
4242 mapMo . setOpacity ( 0.5 ) ;
43-
43+
4444 setInterval ( function ( ) {
4545 document . getElementById ( 'infodiv' ) . innerHTML = app . getHeading ( ) + ', ' + app . getTilt ( ) ;
4646 } , 100 ) ;
47-
48-
47+
48+
4949 //Print coordinates of the mouse
5050 var printCoords = function ( e ) {
5151 document . getElementById ( 'coordsbox' ) . innerHTML =
6262 } ;
6363 listenKey = app . on ( 'click' , alertCoords ) ;
6464 }
65-
65+
6666 function addSomeMarkers ( ) {
6767 var londonM = app . initMarker ( 51.507222 , - 0.1275 ) ;
6868 var denverM = app . initMarker ( 39.739167 , - 104.984722 ) ;
6969 var cairoM = app . initMarker ( 30.058056 , 31.228889 ) ;
70-
70+
7171 londonM . bindPopup ( '<h2>London</h2>This marker is already opened.' , 250 ) . openPopup ( ) ;
7272 denverM . bindPopup ( '<h2>Denver</h2>You can\'t see this marker without rotating the Earth.' ) ;
7373
7878 londonM . closePopup ( ) ;
7979 } ;
8080 cairoM . on ( 'click' , closeLondon ) ;
81-
81+
8282 document . getElementById ( "addmarkers" ) . disabled = true ;
8383 }
8484 </ script >
85-
85+
8686 </ head >
8787 < body onload ="javascript:startWE() ">
8888 < div id ="webglearthdiv " style ="width:600px;height:400px; "> </ div >
123123 < br />
124124 < img id ="screenshot " />
125125 </ body >
126- </ html >
126+ </ html >
0 commit comments