<commit_before>﻿@{
    ViewBag.Title = "Mapa";
}

<br />
<br />

<blockquote>En el siguiente mapa usted encontrará los eventos en un radio de 20km desde su posición.
    Los mismos tienen hoy como fecha de inicio</blockquote>

<div id="map" style="width:100%;height:600px;"></div>

<script>
    // Note: This example requires that you consent to location sharing when
    // prompted by your browser. If you see the error "The Geolocation service
    // failed.", it means you probably did not give permission for the browser to
    // locate you.

    function initMap() {

        var map = new google.maps.Map(document.getElementById('map'), {
            center: { lat: -30.944932, lng: -61.562566 },
            zoom: 14
        });

        var infoWindow = new google.maps.InfoWindow({ map: map });


        // Try HTML5 geolocation.
        if (navigator.geolocation) {
            navigator.geolocation.getCurrentPosition(function (position) {
                    pos = {
                    lat: position.coords.latitude,
                    lng: position.coords.longitude
                };
                position.lat = pos.lat;
                position.lng = pos.lng;

                var marker = new google.maps.Marker({
                    position: pos,
                    map: map,
                    title: 'Usted está aquí'
                });
                map.setCenter(pos);
                showPosition(pos);
            }, function () {
                //handleLocationError(true, infoWindow, map.getCenter());
                pos = {
                    lat: -30.944952,
                    lng: -61.560658
                };

                var marker = new google.maps.Marker({
                    position: pos,
                    map: map,
                    title: 'Posición Predeterminada'
                });
            });
        } else {
            // Browser doesn't support Geolocation
            //handleLocationError(false, infoWindow, map.getCenter());
            pos = {
                lat: -30.944952,
                lng: -61.560658
            };

            var marker = new google.maps.Marker({
                position: pos,
                map: map,
                title: 'Posición Predeterminada'
            });
        }


        function showPosition(position) {
            var data = [];
            $.ajax({
                url: "/Events/GetEventsForMap",
                dataType: 'json',
                async: true,
                data: { 'lat': position.lat, 'lng': position.lng },<commit_msg>Agregado ShowPosition en events<commit_after>﻿@{
    ViewBag.Title = "Mapa";
}

<br />
<br />

<blockquote>En el siguiente mapa usted encontrará los eventos en un radio de 20km desde su posición.
    Los mismos tienen hoy como fecha de inicio</blockquote>

<div id="map" style="width:100%;height:600px;"></div>

<script>
    // Note: This example requires that you consent to location sharing when
    // prompted by your browser. If you see the error "The Geolocation service
    // failed.", it means you probably did not give permission for the browser to
    // locate you.

    function initMap() {

        var map = new google.maps.Map(document.getElementById('map'), {
            center: { lat: -30.944932, lng: -61.562566 },
            zoom: 14
        });

        var infoWindow = new google.maps.InfoWindow({ map: map });


        // Try HTML5 geolocation.
        if (navigator.geolocation) {
            navigator.geolocation.getCurrentPosition(function (position) {
                    pos = {
                    lat: position.coords.latitude,
                    lng: position.coords.longitude
                };
                position.lat = pos.lat;
                position.lng = pos.lng;

                var marker = new google.maps.Marker({
                    position: pos,
                    map: map,
                    title: 'Usted está aquí'
                });
                map.setCenter(pos);
                showPosition(pos);
            }, function () {
                //handleLocationError(true, infoWindow, map.getCenter());
                pos = {
                    lat: -30.944952,
                    lng: -61.560658
                };

                var marker = new google.maps.Marker({
                    position: pos,
                    map: map,
                    title: 'Posición Predeterminada'
                });
                showPosition(pos);
            });
        } else {
            // Browser doesn't support Geolocation
            //handleLocationError(false, infoWindow, map.getCenter());
            pos = {
                lat: -30.944952,
                lng: -61.560658
            };

            var marker = new google.maps.Marker({
                position: pos,
                map: map,
                title: 'Posición Predeterminada'
            });
            showPosition(pos);
        }


        function showPosition(position) {
            var data = [];
            $.ajax({
                url: "/Events/GetEventsForMap",
                dataType: 'json',
                async: true,
                data: { 'lat': position.lat, 'lng': position.lng },
{'fraction_non_alphanumeric': 0.10486031381553769, 'fraction_numerical': 0.022579410639112132, 'mean_word_length': 1.31078691423519, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1687539', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1326, 'n_words': 365}