2030786605

2030786605



<!DOCTYPE html PUBLIC "-//W3C//DTD XHIML 1.0 Strict//E!i" -http://www.w3.org/IR/xhtmll/DTD/xhLnll-stricc.dtcl-> |

□<html xmlns«”http://vww.w3.org/1999/xhtmln>

H <hCdd>

Cncta http-equiv»"contcnt-typc" eontent-"text/html; charsct-utf-$V>

<ticle>Cooglc Barth API Saaple</title>

<scri.pt src»"http://www.google.com/]sapi?)tey^ABQIAAAAuPsJp)c33ffitDpJ4G8cqBn3RRaGTTH6U2‘118aADlłaOVKaW!n5a8VlłxOC2V‘BXTx2DiyXGsTOxpWhvIG7D3w" type--text/}avascrlpt0x/scrlpt>


Lien vers l'API Google Earth


<script tyFC«”tcxt/3avascripf> var ge;

google.lcad( earth", l); //charger lc module google earth g functlan imt() {

google.earth.createlnscance{*r-ip3d’, initCallbacfc, failureCallbacfc); // initialiser le plugm ł

functlan lnitCalibacJc(ir.stance) ( ge - mstance;

ge.gecWindow().setVlsibility(true); var layerRcot = ge.getLayerRoot();

layerRoot.er.ableLayerById(ge.LAYER_TERRAIH, true); // aflicher ou r.cr. le terrain layerRoct.enabieLayerById(ge.LAYER_RCADS, faLse);// afficher ou non les routes layerRoot.cnabieLayerById(ge.LAY£R_BUILDIHGS, faLse): //afflcher ou non les batiments en 3D layerRcot.enableLayerById(ge.LHYER_BCRi:£RS( faLse); //afficher ou non les limtes de communes, pays ... ge.getOptionsO .setFlyToSpeed(l); //vitesse de vol var navControl * ge.getNavigatior.Control() ;

navControl.setVisibility(ge.VISI3ILITY_SHCW); // afficher ou r.on les £l£r.ents de controle ge.getOptionsO.setStatu3BarVisibilicy(false); //affichage de la barre des coordonnees ge.getOptionsO.setOvervievMapVisibility(faLse); //affichage de la rappemonde generale


functlan finishedfcb^ect) {

If (•object) {

// evertir si il y a un prcbl^re au niveau du chargement du fichier KKL setTimeout(functlanO {alertC    ’);), 0); return;)


ge.getFeaturesO.appendChild(ob}ecc); var la - ge.createLocicAt(    );    // voler 3usqu’a chatel sur noselle

la.set(48.312222, 6.394722,0, // latitude, icr.gitude, altltude ge. ALT ITUDE^RELkI TVE_TO_GROUWD,

0r // heading

0, // straight-down tilt

1000 // rangę (inverse of zoom)

);

ge.getView() .setAfcstractView(la);)


// rentrer le KML

var url ■ •http://localhost/’,model_ext/aod_ge/forteresse.I®2’; gcogle.earth.£ecchKml(ge, url, fimshcd) ;

)

H functlan failureCallbaclc(errorCode) (

)

</scnpt>


</head>

H <body enload-Minlt ()'* style-"font-family: anal, sans-serlf; font-si2e: 13px; border: 0;"> <div id-raap3d" style»'width: 800px; height: 450px;*X/div>

</bcdy>

</htal>


Script du plug-in Google Earth


Affichage de la fenetre Google Earth




Wyszukiwarka

Podobne podstrony:
img55 Rainld <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
screenshot 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
XHTML code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitlonal//EN"
notepad <?DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
2.2.2. Kod html „jednowierszowej tabeli” <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
screenshot 2 <!DOCTYPE html PUBLIC "-//M3C//DTD XHTML 1.1//EN"
07ccw11 frames_noframes - Notepad £ile Edit Search Help <!D0CTVPE HTML PUBLIC ,,-//IETF//DTD HTML
2.1.3. Kod html strony z p.2 -rolę znacznika <iframe> przejął <object> <!DOCTYPE html
Plik Edycja Widok Pomoc <fDOCTYPE htm 1 PUBLIC "-//W3C//DTD XHTML 1.0 Transitlonal//EN"
Moduł 1 Podstawy HTML Piotr Bubacz ITA-103 Aplikacje Internetowe < IDOCTYPE html PUBLIC

więcej podobnych podstron