How can I see matlab results on google earth?
Mostrar comentarios más antiguos
Hello! I already have a weather balloon data script on matlab and I just want to transfer that data into google earth. What do I need to add on the script? I already downloaded the Google Earth Plug-in. I found this on web, but I don't know what is a function init()…
var ge;
google.load('earth', '1');
function init() {
google.earth.createInstance('map3d', initCallback, failureCallback);
}
function initCallback(pluginInstance) {
ge = pluginInstance;
ge.getWindow().setVisibility(true);
%add a navigation control
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
%add some layers
ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true);
ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true);
%just for debugging purposes
document.getElementById('installed-plugin-version').innerHTML =
ge.getPluginVersion().toString();
}
function failureCallback(errorCode) {
}
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Google Earth en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!