OCStoyanov
  • Blog
  • Photography
    • Galleries
      • Along the way
      • Caves
      • Landscape
      • Macro
      • Nature
      • Reportedly
    • +
      • Google+
      • Frickr
      • 500px
    • Photo walks
      • Light and cult
      • Trashscape Project
      • Beglika and Chatama
      • Crete
  • Outdoor
    • Adventure
      • EVKM
      • #ExploreCrete
      • Boyana (eco) path Project
    • Good Idea!
      • Sofia City Escape
      • Kids camps and Team Buildings
      • For Relax
      • Welcome to Sofia
    • Activities
      • Caving
      • Climbing
      • Cycling
      • Cycling Touring
      • Kayaking and Rafting
      • Winter activities
    • Hike
      • Ecotrails
      • Marked and excursion trails
      • Multy-day trails
      • Thematic trails
  • Advice
    • Карта TopoBulgaria
    • Tips and tricks
      • Good to know
      • First aid
      • Equipment
      • Survivor and bushcraft
      • About Food
      • Orienting
    • Guide
      • Camping and nice places for tent in Bulgaria
      • Friendly world map
  • Work
    • Work Files
      • GIS
      • Various statistics
      • Interesting maps
      • Internet maps
      • Touristic maps
      • Print maps
    • Useful Maps
      • Tourist map of Bulgaria
      • Карта TopoBulgaria
    • Portfolio
      • Graphic design
      • Web design
      • Maps
    • Projects
      • Scheme of public transport in Sofia
      • Bulgaria of the early 20th century
      • Detailed GIS on Caves zoning in Bulgaria
      • GIS of the basic morphographic units in the Physiological Geographic Regions in Bulgaria
      • Vintage style maps
      • Maps of the world
  • Download
    • Icons and symbols for web and print maps
      • Classic signs and icons for tourist maps
      • Icons for outdoors and tourism
      • Pin icons for outdoors and tourism
    • More
      • PDF and e-books
      • Die drawing
      • For kids
  • Bulgarian
Uncategorized

Облачност и температура в реално време

Облачност и температура в реално време
Uncategorized

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="https://www.google.com/jsapi?key=*****************************************" 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; } -->

[endCode]

And add #apDiv1, where you want a map in body.
The java script contains text from kml fail:
var ge;
var kml;
google.load('earth','1');

function initCallback(instance) {
base_setup(instance);

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

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

ge.getFeatures().appendChild(kml);

//set a click listener that affects all placemarks
google.earth.addEventListener(
ge.getGlobe(), 'click', function(event) {
var obj = event.getTarget();
if (obj.getType() == 'KmlPlacemark'){
event.preventDefault();
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('');
//balloon.setFeature(placemark);
balloon.setMaxWidth(300);
balloon.setContentString('

' + placemark_name + '

' + placemark_desc_active);
ge.setBalloon(balloon);
}
});
}

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

function init() {
google.earth.createInstance('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

Previous articleKML карта на населението по възраст в общините на БългарияNext article Излетник 3 - Седемте Рилски езера

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About me and site

I hope here you will find what you are looking for. That is, what I can offer - interesting maps of Bulgaria and the world, even more, interesting ideas for tourism and adventures, as well as useful information about my native city - Sofia. You can learn more about these things as well as my most interesting projects from the links below.
I'm still adding photos and translations, so Error 404 pops up. Use Search or the menu to find what you are looking for

Recent Posts

Elata Cave24/02/2019
Fusion Tables is retiring. And what to do with all these tables now?15/12/2018
What if we split the population of Bulgaria into two equal parts03/11/2018

Popular Posts

Famous unknown Reselets2 comments
Ice and fire mood1 comment
Little, but beautiful Lastovica cave1 comment
Maliovitsa – for climbing and hiking1 comment
Promo video of our new Light and Cult discoveries1 comment

Projects in Progress

Downloads

  • Donation Free Download
  • Cycling Touring in Bulgaria
  • Animation movies and reviews
  • Advertising here
  • Contact me
  • About me
Maps, Photography and Adventure 2019 © Stoyanov
Условия за ползване на файловете