Google map does not work any more











up vote
-1
down vote

favorite












I have seen most of the posts about google map, but no one have answered my question considering new google Api changes in 2018.



I have this code in my page:



<div id="map"></div>
<script>
function initMap() {
var myLatLng = { lat: 35.799064, lng: 51.441882 };
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
zoom: 16
});
var marker = new google.maps.Marker({
map: map,
position: myLatLng,
title: 'Hello World!'
});
}

</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
type="text/javascript"></script>


I verified my website with uploading a google file in the root of my website.



I have Created an Api key and got the key from google and pasted it in my page.



I tested my Api key in both: Restricted to my website and no restriction.



But still I have the error:




Oops! Something went wrong




This the address of page: Page With Google Map










share|improve this question




























    up vote
    -1
    down vote

    favorite












    I have seen most of the posts about google map, but no one have answered my question considering new google Api changes in 2018.



    I have this code in my page:



    <div id="map"></div>
    <script>
    function initMap() {
    var myLatLng = { lat: 35.799064, lng: 51.441882 };
    var map = new google.maps.Map(document.getElementById('map'), {
    center: myLatLng,
    zoom: 16
    });
    var marker = new google.maps.Marker({
    map: map,
    position: myLatLng,
    title: 'Hello World!'
    });
    }

    </script>
    <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
    type="text/javascript"></script>


    I verified my website with uploading a google file in the root of my website.



    I have Created an Api key and got the key from google and pasted it in my page.



    I tested my Api key in both: Restricted to my website and no restriction.



    But still I have the error:




    Oops! Something went wrong




    This the address of page: Page With Google Map










    share|improve this question


























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      I have seen most of the posts about google map, but no one have answered my question considering new google Api changes in 2018.



      I have this code in my page:



      <div id="map"></div>
      <script>
      function initMap() {
      var myLatLng = { lat: 35.799064, lng: 51.441882 };
      var map = new google.maps.Map(document.getElementById('map'), {
      center: myLatLng,
      zoom: 16
      });
      var marker = new google.maps.Marker({
      map: map,
      position: myLatLng,
      title: 'Hello World!'
      });
      }

      </script>
      <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
      type="text/javascript"></script>


      I verified my website with uploading a google file in the root of my website.



      I have Created an Api key and got the key from google and pasted it in my page.



      I tested my Api key in both: Restricted to my website and no restriction.



      But still I have the error:




      Oops! Something went wrong




      This the address of page: Page With Google Map










      share|improve this question















      I have seen most of the posts about google map, but no one have answered my question considering new google Api changes in 2018.



      I have this code in my page:



      <div id="map"></div>
      <script>
      function initMap() {
      var myLatLng = { lat: 35.799064, lng: 51.441882 };
      var map = new google.maps.Map(document.getElementById('map'), {
      center: myLatLng,
      zoom: 16
      });
      var marker = new google.maps.Marker({
      map: map,
      position: myLatLng,
      title: 'Hello World!'
      });
      }

      </script>
      <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
      type="text/javascript"></script>


      I verified my website with uploading a google file in the root of my website.



      I have Created an Api key and got the key from google and pasted it in my page.



      I tested my Api key in both: Restricted to my website and no restriction.



      But still I have the error:




      Oops! Something went wrong




      This the address of page: Page With Google Map







      google-maps google-maps-api-3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 at 7:53









      xomena

      17k43568




      17k43568










      asked Jul 16 at 10:22









      Farzin Kanzi

      2,88221320




      2,88221320
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          If you check the browser console you will see the following error message:



          Google Maps JavaScript API error: RefererDeniedMapError



          According to the documentation this error means:




          Your application was blocked for non-compliance with the Google Maps Platform Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.




          source: https://developers.google.com/maps/documentation/javascript/error-messages#referer-denied-map-error



          You should reach out to the compliance team via webform in order to unblock your domain.



          I hope this helps!






          share|improve this answer





















          • Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
            – Farzin Kanzi
            Jul 16 at 20:14











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51359618%2fgoogle-map-does-not-work-any-more%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          If you check the browser console you will see the following error message:



          Google Maps JavaScript API error: RefererDeniedMapError



          According to the documentation this error means:




          Your application was blocked for non-compliance with the Google Maps Platform Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.




          source: https://developers.google.com/maps/documentation/javascript/error-messages#referer-denied-map-error



          You should reach out to the compliance team via webform in order to unblock your domain.



          I hope this helps!






          share|improve this answer





















          • Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
            – Farzin Kanzi
            Jul 16 at 20:14















          up vote
          2
          down vote



          accepted










          If you check the browser console you will see the following error message:



          Google Maps JavaScript API error: RefererDeniedMapError



          According to the documentation this error means:




          Your application was blocked for non-compliance with the Google Maps Platform Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.




          source: https://developers.google.com/maps/documentation/javascript/error-messages#referer-denied-map-error



          You should reach out to the compliance team via webform in order to unblock your domain.



          I hope this helps!






          share|improve this answer





















          • Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
            – Farzin Kanzi
            Jul 16 at 20:14













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          If you check the browser console you will see the following error message:



          Google Maps JavaScript API error: RefererDeniedMapError



          According to the documentation this error means:




          Your application was blocked for non-compliance with the Google Maps Platform Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.




          source: https://developers.google.com/maps/documentation/javascript/error-messages#referer-denied-map-error



          You should reach out to the compliance team via webform in order to unblock your domain.



          I hope this helps!






          share|improve this answer












          If you check the browser console you will see the following error message:



          Google Maps JavaScript API error: RefererDeniedMapError



          According to the documentation this error means:




          Your application was blocked for non-compliance with the Google Maps Platform Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.




          source: https://developers.google.com/maps/documentation/javascript/error-messages#referer-denied-map-error



          You should reach out to the compliance team via webform in order to unblock your domain.



          I hope this helps!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 16 at 11:26









          xomena

          17k43568




          17k43568












          • Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
            – Farzin Kanzi
            Jul 16 at 20:14


















          • Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
            – Farzin Kanzi
            Jul 16 at 20:14
















          Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
          – Farzin Kanzi
          Jul 16 at 20:14




          Thank you very much. Obviously your answer is true and I did what you said and now I am waiting for the email.
          – Farzin Kanzi
          Jul 16 at 20:14


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51359618%2fgoogle-map-does-not-work-any-more%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)