浏览代码

Fixed the problem with mapa in ftth

Jean Sumara 5 年之前
父节点
当前提交
44f0d3df9c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      composer.lock
  2. 1 1
      src/FTTHBundle/Resources/views/ONU/form.html.twig

+ 1 - 1
composer.lock

@@ -2060,7 +2060,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/MapBundle.git",
-                "reference": "be438ac33554bcfc78fe722ddc1b40d288abae16"
+                "reference": "73589c0c265e02c00aaef045796e1f6284088518"
             },
             "type": "library",
             "autoload": {

+ 1 - 1
src/FTTHBundle/Resources/views/ONU/form.html.twig

@@ -171,7 +171,7 @@
         function googleSearchDirectionAndShowMaps(address) {
             $('input[class="search-input"]').val(address);
             $.ajax({
-                url: "http://maps.googleapis.com/maps/api/geocode/json?address='" + address + "'",
+                url: "https://maps.googleapis.com/maps/api/geocode/json?address='" + address + "'&key=AIzaSyDYPe_h1T_5ThFNZukx05FJY21IAejj_LA",
                 type: "POST"
             }).done(function (res) {
                 if (res != undefined && res.status == google.maps.GeocoderStatus.OK) {