﻿     var map = null;  

      var icon = "<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:50px;'>ΝΕΑ ΚΤΙΡΙΑ</div>";  

    
  var SpaceNeedle = new VELatLong(39.6278, 22.3825);    
     var pinLocation1 = new VELatLong(39.6275, 22.3839);  
     var pinLocation2 = new VELatLong(39.6271, 22.3828);  
     var pinLocation3 = new VELatLong(39.6274, 22.3822);  
     var pinLocation4 = new VELatLong(39.6275, 22.3818);  
     var pinLocation5 = new VELatLong(39.6284, 22.3809);  
     var pinLocation6 = new VELatLong(39.6273, 22.3812);  
     var pinLocation7 = new VELatLong(39.62765, 22.3818); 
     var pinLocation8 = new VELatLong(39.6275, 22.3824);  
     var pinLocation9 = new VELatLong(39.6286, 22.3806);  
     var pinLocation10 = new VELatLong(39.6282, 22.3834); 
     var pinLocation11 = new VELatLong(39.6255, 22.3827);
     var pinLocation12 = new VELatLong(39.62765, 22.3821);
     var pinLocation13 = new VELatLong(39.62770, 22.3825);
     var pinLocation14 = new VELatLong(39.6276, 22.3838); 

       function GetMap()         {           
 map = new VEMap('myMap');           
 map.LoadMap(SpaceNeedle, 17);            // Let me know if a birdseye scene is available         
   map.AttachEvent("onobliqueenter", OnObliqueEnterHandler);     
//map.HideDashboard();
    }  


      function FindLoc()
      {
var MyLoc = prompt("Παρακαλώ εισάγετε τοποθεσία", "Larissa")
         try
         {
            map.Find(null, MyLoc);
         }
         catch(e)
         {
            alert(e.message);
         }
      }

    
   function OnObliqueEnterHandler()     
    {            if(map.IsBirdseyeAvailable())          
  {               var TopOfNeedle = new VELatLong(39.6278, 22.3825);    
            map.SetBirdseyeScene(TopOfNeedle);           
 }      
   }     

      function AddPushpin()      {         
var shape = new VEShape(VEShapeType.Pushpin,pinLocation1);         
         shape.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:70px;'>ΝΕΑ ΚΤΙΡΙΑ (Κτίριο ΔΔΕ)</div>");                  //Set the info box         map.ClearInfoBoxStyles();
shape.SetTitle('ΝΕΑ ΚΤΙΡΙΑ (ΚΤΙΡΙΟ ΔΔΕ)');          
shape.SetDescription("Στα νέα κτίρια στεγάζονται τα γραφεία του προϊσταμένου, του μόνιμου εκπαιδευτικού προσωπικού, αίθουσες διαλέξεων και 2 εργαστήρια.");    
map.AddShape(shape);     

var shape2 = new VEShape(VEShapeType.Pushpin,pinLocation2);     
shape2.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:50px;'>Τ1 & Τ2</div>");     
shape2.SetTitle('ΚΤΙΡΙΟ ΤΜΗΜΑΤΟΣ ΤΟΥΡΙΣΤΙΚΩΝ ΕΠΑΓΓΕΛΜΑΤΩΝ');          
shape2.SetDescription("Εργαστήρια Τ1 & Τ2");    
map.AddShape(shape2);   

var shape3 = new VEShape(VEShapeType.Pushpin,pinLocation3);         
shape3.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:30px;'>ΕΣΕ</div>");     
shape3.SetTitle('ΕΡΓΑΣΤΗΡΙΟ');          
shape3.SetDescription("Εργαστήριο ΕΣΕ");    
map.AddShape(shape3);   

var shape4 = new VEShape(VEShapeType.Pushpin,pinLocation4);    
shape4.SetCustomIcon("<div style='font-size:14px;font-weight:bold;border:solid 2px Black;background-color:White;width:40px;'>ΕΡΓ 3</div>");          
shape4.SetTitle('ΕΡΓΑΣΤΗΡΙΟ');          
shape4.SetDescription("Εργαστήριο 3 (Ξένων γλωσσών)");    
map.AddShape(shape4);  

var shape5 = new VEShape(VEShapeType.Pushpin,pinLocation5);  
shape5.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:50px;'>ΝΤ & UNIX</div>");            
shape5.SetTitle('ΕΡΓΑΣΤΗΡΙΑ');          
shape5.SetDescription("Εργαστήρια UNIX & NT");    
map.AddShape(shape5);  

var shape6 = new VEShape(VEShapeType.Pushpin,pinLocation6);  
shape6.SetCustomIcon("<div style='font-size:8px;font-weight:bold;border:solid 2px Black;background-color:White;width:50px;'>Αίθουσες διδασκαλίας</div>"); 
shape6.SetTitle('ΑΙΘΟΥΣΕΣ ΔΙΔΑΣΚΑΛΙΑΣ');          
shape6.SetDescription("Αίθουσες διδασκαλίας Α31, Α34, Α32 ");    
map.AddShape(shape6);  

var shape7 = new VEShape(VEShapeType.Pushpin,pinLocation7);    
shape7.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:White;width:66px;'>Αμφιθέατρο</div>");          
shape7.SetTitle('ΓΤΘΕ');          
shape7.SetDescription("Αμφιθέατρο του Γενικού Τμήματος της ΣΤΕΦ");    
map.AddShape(shape7);  

var shape8 = new VEShape(VEShapeType.Pushpin,pinLocation8);    
shape8.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:white;width:66px;'>Αμφιθέατρο</div>");         
shape8.SetTitle('ΜΕΓΑΛΟ ΑΜΦΙΘΕΑΤΡΟ');          
shape8.SetDescription("");    
map.AddShape(shape8);  

var shape9 = new VEShape(VEShapeType.Pushpin,pinLocation9);    
//shape9.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:aqua;width:66px;'>Εστιατόρια</div>");         
shape9.SetTitle('ΕΣΤΙΑΤΟΡΙΑ');          
shape9.SetDescription("");    
map.AddShape(shape9);  

var shape10 = new VEShape(VEShapeType.Pushpin,pinLocation10);    
//shape10.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:aqua;width:66px;'>Βιβλιοθήκη</div>");         
shape10.SetTitle('ΒΙΒΛΙΟΘΗΚΗ');          
shape10.SetDescription("<A HREF='http://library.teilar.gr/' TARGET='_BLANK'>http://library.teilar.gr</A>");    
map.AddShape(shape10); 

var shape11 = new VEShape(VEShapeType.Pushpin,pinLocation11);    
//shape11.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:aqua;width:86px;'>Σπουδαστική μέριμνα</div>");         
shape11.SetTitle('Σπουδαστική μέριμνα');          
shape11.SetDescription("");    
map.AddShape(shape11);

var shape12 = new VEShape(VEShapeType.Pushpin,pinLocation12);    
//shape12.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:aqua;width:86px;'>Κέντρο διαχείρισης δικτύου</div>");         
shape12.SetTitle('Κέντρο διαχείρισης δικτύου');          
shape12.SetDescription("<A HREF='http://noc-portal.teilar.gr/' TARGET='_BLANK'>http://noc-portal.teilar.gr</A>");    
map.AddShape(shape12);

var shape13 = new VEShape(VEShapeType.Pushpin,pinLocation13);    
//shape13.SetCustomIcon("<div style='font-size:12px;font-weight:bold;border:solid 2px Black;background-color:aqua;width:50px;'>Διοίκηση</div>");         
shape13.SetTitle('Διοίκηση');          
shape13.SetDescription("Γραφείο Προέδρου & Αντιπροέδρων");    
map.AddShape(shape13);

var shape14 = new VEShape(VEShapeType.Pushpin,pinLocation14);         
shape14.SetCustomIcon("<div style='font-size:8px;font-weight:bold;border:solid 2px Black;background-color:White;width:60px;'>ΓΡΑΜΜΑΤΕΙΑ</div>");     
shape14.SetTitle('ΓΡΑΜΜΑΤΕΙΑ');          
shape14.SetDescription("Γραμματεία Τμήματος");    
map.AddShape(shape14);  
 }
