#pragma checksum "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a8325e0dbdd911c06e92558bf82819562ef5692a"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Map), @"mvc.1.0.view", @"/Views/Home/Map.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\_ViewImports.cshtml"
using MeteoWebApp;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\_ViewImports.cshtml"
using MeteoWebApp.Models;

#line default
#line hidden
#nullable disable
#nullable restore
#line 1 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
using System.Globalization;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a8325e0dbdd911c06e92558bf82819562ef5692a", @"/Views/Home/Map.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c7d9dcd9f7e5caf74659f6b7850561373116a8e8", @"/Views/_ViewImports.cshtml")]
    public class Views_Home_Map : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Tuple<List<Station>, List<Measurement>>>
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            WriteLiteral("\r\n");
            WriteLiteral("\r\n");
#nullable restore
#line 5 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
  
    ViewData["Title"] = "Mapa";

#line default
#line hidden
#nullable disable
            WriteLiteral(@"
<!--    mapquest script
        Generate map with stations gps points
-->
<script type=""text/javascript"">
    window.onload = function() 
    {
        L.mapquest.key = 'a9YhjRAyttVFG33ZY9pHlsHkSke0DtaJ';

        var map = L.mapquest.map('map', 
        {
");
#nullable restore
#line 19 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
             foreach (var item in Model.Item1)
            {
                if (item.Default)
                {
                    

#line default
#line hidden
#nullable disable
            WriteLiteral("center: [");
#nullable restore
#line 23 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                              Write(item.GpsLatitude.ToString(CultureInfo.InvariantCulture));

#line default
#line hidden
#nullable disable
            WriteLiteral(" , ");
#nullable restore
#line 23 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                         Write(item.GpsLongitude.ToString(CultureInfo.InvariantCulture));

#line default
#line hidden
#nullable disable
            WriteLiteral("],");
#nullable restore
#line 23 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                                                                                                
                }
            }

#line default
#line hidden
#nullable disable
            WriteLiteral("            layers: L.mapquest.tileLayer(\'map\'),\r\n            zoom: 8\r\n        });\r\n\r\n");
#nullable restore
#line 30 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
 foreach (var item in Model.Item1)
    {

        

#line default
#line hidden
#nullable disable
            WriteLiteral(" \r\n       L.mapquest.textMarker([");
#nullable restore
#line 34 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                         Write(item.GpsLatitude.ToString(CultureInfo.InvariantCulture));

#line default
#line hidden
#nullable disable
            WriteLiteral(" , ");
#nullable restore
#line 34 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                    Write(item.GpsLongitude.ToString(CultureInfo.InvariantCulture));

#line default
#line hidden
#nullable disable
            WriteLiteral("], \r\n        {\r\n            text:\'");
#nullable restore
#line 36 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
             Write(item.Name);

#line default
#line hidden
#nullable disable
            WriteLiteral("\',\r\n            subtext: \'");
#nullable restore
#line 37 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                        
                try
                {
                    

#line default
#line hidden
#nullable disable
#nullable restore
#line 40 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
               Write(Model.Item2.Where(s => s.StationId == item.StationId).Select(s => s.Temperature).Single());

#line default
#line hidden
#nullable disable
#nullable restore
#line 40 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                                              
                }
                catch (Exception ex)
                {
                    
                }
        

#line default
#line hidden
#nullable disable
            WriteLiteral(@"°C',
            position: 'right',
            type: 'marker',
            icon:
            {
                primaryColor: '#333333',
                secondaryColor: '#333333',
                size: 'sm'
            }
        }).bindPopup('Teplota: ");
#nullable restore
#line 55 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                 
                try
                {
                    

#line default
#line hidden
#nullable disable
#nullable restore
#line 58 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
               Write(Model.Item2.Where(s => s.StationId == item.StationId).Select(s => s.Temperature).Single());

#line default
#line hidden
#nullable disable
#nullable restore
#line 58 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                                              
                }
                catch (Exception ex)
                {
                    
                }
        

#line default
#line hidden
#nullable disable
            WriteLiteral("°C, Vlhkost: ");
#nullable restore
#line 64 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                        
                try
                {
                    

#line default
#line hidden
#nullable disable
#nullable restore
#line 67 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
               Write(Model.Item2.Where(s => s.StationId == item.StationId).Select(s => s.Humidity).Single());

#line default
#line hidden
#nullable disable
#nullable restore
#line 67 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                                                                                                           
                }
                catch (Exception ex)
                {
                    
                }

        

#line default
#line hidden
#nullable disable
            WriteLiteral("%\').addTo(map);\r\n         ");
#nullable restore
#line 75 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\Map.cshtml"
                
    }

#line default
#line hidden
#nullable disable
            WriteLiteral(@"    };
</script>

<div class=""text-center"">
    
    <div class=""d-flex flex-column h-100 text-shadow-1 bg-opacity-50""> 
            <!-- First row with name  -->
            <div class=""col-12 p-0 text-left""> 
                <h2>Poloha stanic na mapě</h2> 
            </div>
    </div>

    <div class=""card h-10 overflow-hidden text-black rounded-5 shadow-lg bg-light bg-opacity-50""><!--  Map  -->
        <div class=""d-flex flex-column h-100 text-shadow-1""> 
            <div class=""row"">    
			    <div class=""col-12 text-center"">   
                    <div id=""map"" style=""width: 100%; height: 600px;""></div>
                </div>
             </div>
        </div><!--End of map  -->
    </div> 
</div>");
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<Tuple<List<Station>, List<Measurement>>> Html { get; private set; }
    }
}
#pragma warning restore 1591
