Cloudy and temperature in real time kml file

Posted on Posted in Collaborative projects, Internet integration of maps

It’s ready big map for BGOutdoor website,that shows temperature, cloudiness and precipitation in real time. For this purpose uses a plugin for browsers on Google Earth, several JavaScript and two servers for satellite images, one of which at NASA.

All points and layers are placed in Google Earth and accordingly recorded in a kml file. Calling the different layers and synchronization going through java script in head page:

[startCode]<*script src="*****************************************" type="text/javascript">
<*script src="vremeto.js" type="text/javascript">
<*style type="text/css">
<*!-- #apDiv1 { position:absolute; width:283px; height:46px; z-index:1; left: 21px; top: 801px; overflow: visible; visibility: visible; } -->


And add #apDiv1, where you want a map in body.
The java script contains text from kml fail:
var ge;
var kml;

function initCallback(instance) {

var la = ge.createLookAt('');
la.set(42.748644, 25.235311, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 35, 650000 );

kml = ge.parseKml(
'Текст съдържанието на kml файла');


//set a click listener that affects all placemarks
ge.getGlobe(), 'click', function(event) {
var obj = event.getTarget();
if (obj.getType() == 'KmlPlacemark'){
var placemark = obj;
var placemark_name = placemark.getName();
//get the full balloon html
var placemark_desc_active = placemark.getBalloonHtmlUnsafe();
//same as above, except with 'active' content like JS stripped out
var placemark_desc = placemark.getBalloonHtml();
//create new balloon with rendered content
var balloon = ge.createHtmlStringBalloon('');

' + placemark_name + '

' + placemark_desc_active);

function base_setup(instance){
ge = instance;
document.getElementById('installed-plugin-version').innerHTML = ge.getPluginVersion().toString();

function init() {'map3d', initCallback, failureCallback);

function failureCallback(errorCode) {}

This ensures the simultaneous operation of all layers and their equality in the map. The points that call data via iframe should be changed with CDATA in the description.
[startCodeBlock]<*![CDATA[<*iframe src="link to source" width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" allowtransparency="true">]]>[endCodeBlock]

Map can use at time now . As mentioned, in the proper use of the card you must have installed Google Earth Plugin. That map here

I would also like to hear your opinion