<commit_before>{% extends("EnfiCienciasDoAmbienteSiteBundle::base.html.twig") %}


{% block head %}

    <style type="text/css">
      #map-canvas { width: 100%; height: 500px }
    </style>

    <script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=<KEY>">
    </script>

    <script type="text/javascript">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(-21.984, -47.881),
          zoom: 15
        };
        var map = new google.maps.Map(document.getElementById("map-canvas"),
            mapOptions);
      }
      google.maps.event.addDomListener(window, 'load', initialize);
    </script>

{% endblock head %}

{% block content %}

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

{% endblock content %} <commit_msg>Adicionado trecho para incluir novos Markers via js<commit_after>{% extends("EnfiCienciasDoAmbienteSiteBundle::base.html.twig") %}


{% block head %}

    <style type="text/css">
      #map-canvas { width: 100%; height: 500px }
    </style>

    <script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=<KEY>">
    </script>

    <script type="text/javascript">
    function initialize() {
      var mapOptions = {
        center: new google.maps.LatLng(-21.984, -47.881),
        zoom: 15
      };
      var map = new google.maps.Map(document.getElementById("map-canvas"),
          mapOptions);
      google.maps.event.addListener(map, 'click', function(event) {
          placeMarker(map, event.latLng);
      });
    }
    google.maps.event.addDomListener(window, 'load', initialize);

    function placeMarker(map, location) {
      var marker = new google.maps.Marker({
          position: location, 
          map: map
      });

      //map.setCenter(location);
    }

    </script>

{% endblock head %}

{% block content %}

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

{% endblock content %} 
{'fraction_non_alphanumeric': 0.16073298429319371, 'fraction_numerical': 0.018848167539267015, 'mean_word_length': 2.6330798479087454, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '2373115', 'n_tokens_mistral': 652, 'n_tokens_neox': 590, 'n_words': 114}