1.824
breytingar
(Ný síða: Nú er hægt að skoða Vestmannaeyjar í gegnum [http://earth.google.com/ Google Earth] forritið. Öll húsin á Heimaey eru í þrívídd og húsin sem fóru undir hraun koma þar ein...) |
(prufa í google earth) |
||
Lína 8: | Lína 8: | ||
[[Mynd:Googleearth1.jpg]] | [[Mynd:Googleearth1.jpg]] | ||
[[Mynd:Googleearth2.jpg]] | [[Mynd:Googleearth2.jpg]] | ||
<script src="http://maps.google.com/jsapi?hl=en&key=ABQIAAAAnjdnAXHgWmdtZhazDy5MfBQfzQOy_I8INqJ_jOvqQRiov-aRjxT5t25cPSzBHfJthj3id-fAQSEe2g" | |||
type="text/javascript"></script> | |||
<script type="text/javascript"> /* <![CDATA[ */ | |||
var ge; | |||
google.load("earth", "1"); | |||
function init() { google.earth.createInstance('map3d', initCB, failureCB);} | |||
function initCB(instance) {ge = instance; ge.getWindow().setVisibility(true); | |||
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO); | |||
ge.getOptions().setStatusBarVisibility(1); | |||
ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); | |||
ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true); | |||
ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS, true); | |||
ge.getLayerRoot().enableLayerById(ge.LAYER_TERRAIN, true); | |||
// fetch a KML file and show it | |||
function finished(object) { | |||
if (!object) { | |||
setTimeout(function() { | |||
alert('Bad or null KML.'); | |||
}, 0); | |||
return; | |||
} | |||
ge.getFeatures().appendChild(object); | |||
var placemark = object.getFeatures().getChildNodes().item(1); | |||
var modelLocation = placemark.getGeometry().getLocation(); | |||
var lookAt = ge.createLookAt(''); | |||
var lat = modelLocation.getLatitude(); | |||
var lng = modelLocation.getLongitude(); | |||
var alt = 1; | |||
lookAt.set(lat, lng, alt, ge.ALTITUDE_ABSOLUTE, 0, 37, 39); | |||
ge.getView().setAbstractView(lookAt); | |||
} | |||
var url = 'http://sketchup.google.com/' + | |||
'3dwarehouse/download?mid=73fa80fca7c05bccba2061415d26ef11&rtyp=ks'; | |||
google.earth.fetchKml(ge, url, finished); | |||
} | |||
function failureCB(errorCode) { | |||
} |