<commit_before><% content_for(:extrajs) do %>
  <script src="http://cdn.leafletjs.com/leaflet/v1.1.0/leaflet.js" data-turbolinks-track="true"></script>
  <script src="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js" data-turbolinks-track="true"></script>

  <%= javascript_include_tag "geodatos/geodatos_todos", "data-turbolinks-track" => true %>

  <script data-turbolinks-track="true">
	  $('#map').css('height', $('#contenedor_mapa').height() - 30);
	  $(document).ready(function() {
		  //map.fitBounds(L.latLngBounds(L.latLng(14.3227,-86.4236),L.latLng(32.4306,-118.2727)));
		  $(window).resize(function () {
			  $('#map').css('height', $('#contenedor_mapa').height() - 30);
			  map.invalidateSize(true);
		  });

		  //TODO: Poner en el evento cuando se crea el mapa y acomodar este js
		  $('#geodata_e_imagen_li > a, #map a.leaflet-control-fullscreen-button').click(function () {
			  setTimeout(function(){
				  $('#map').css('height', $('#contenedor_mapa').height() - 30);
				  map.invalidateSize(true);
			  },1000);
		  });
	  });
  </script>

<% end %>

<% content_for(:extracss) do %>
  <!--link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /-->
  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.1.0/leaflet.css" />
  <link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.css" />
  <link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' />

  <%= stylesheet_link_tag "MarkerCluster.Default", "data-turbolinks-track" => true %>
<% end %>


<div id="map"></div>

<commit_msg>wait, leaflet funciona chistoso, se clusterizan todos con el mismo set de color<commit_after><% content_for(:extrajs) do %>
  <script src="http://cdn.leafletjs.com/leaflet/v1.1.0/leaflet.js" data-turbolinks-track="true"></script>
  <script src="https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js" data-turbolinks-track="true"></script>



<% end %>

<% content_for(:extracss) do %>
  <!--link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /-->
  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.1.0/leaflet.css" />
  <link rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.css" />
  <link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' />

  <%= stylesheet_link_tag "MarkerCluster.Default", "data-turbolinks-track" => true %>
<% end %>


<div id="map"></div>

<%= javascript_include_tag "geodatos/geodatos_todos", "data-turbolinks-track" => true %>

<script data-turbolinks-track="true">
	$('#map').css('height', $('#contenedor_mapa').height() - 30);
	$(document).ready(function() {
		//map.fitBounds(L.latLngBounds(L.latLng(14.3227,-86.4236),L.latLng(32.4306,-118.2727)));
		$(window).resize(function () {
			$('#map').css('height', $('#contenedor_mapa').height() - 30);
			map.invalidateSize(true);
		});

		//TODO: Poner en el evento cuando se crea el mapa y acomodar este js
		$('#geodata_e_imagen_li > a, #map a.leaflet-control-fullscreen-button').click(function () {
			setTimeout(function(){
				$('#map').css('height', $('#contenedor_mapa').height() - 30);
				map.invalidateSize(true);
			},1000);
		});
	});
</script>
{'fraction_non_alphanumeric': 0.22034883720930232, 'fraction_numerical': 0.030813953488372094, 'mean_word_length': 4.436018957345971, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 45, 'https://': 6, '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': '655095', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1319, 'n_words': 156}