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
google-maps google-maps-api-3
add a comment |
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
google-maps google-maps-api-3
add a comment |
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
google-maps google-maps-api-3
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
google-maps google-maps-api-3
edited Nov 22 at 7:53
xomena
17k43568
17k43568
asked Jul 16 at 10:22
Farzin Kanzi
2,88221320
2,88221320
add a comment |
add a comment |
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!
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
add a comment |
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!
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
add a comment |
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!
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
add a comment |
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!
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!
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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