Google static map not showing google map image
I want to display static google map image using latitude and longitude. For that i am using below url
https://maps.googleapis.com/maps/api/staticmap?center=23.006562499999994,72.50172265625&zoom=18&size=280x280&markers=color:red|23.006562499999994,72.50172265625&key="MY_API_KEY"
For that i have already enabled these APIs in my google API console.
1) Maps SDK For Android
2) Maps JavaScript API
3) Maps Static API
4) Places SDK For Android
Still my google map image is not showing in my application and when i run this link chrome browser it always display this kind of error.

To overcome with this, i have dig google and found that for google map there is 25,000/day request is available but i have already checked that there are not much requests in my API console.
But none of them are working. So how can I overcome with this?
Advanced help would be appreciated!!
add a comment |
I want to display static google map image using latitude and longitude. For that i am using below url
https://maps.googleapis.com/maps/api/staticmap?center=23.006562499999994,72.50172265625&zoom=18&size=280x280&markers=color:red|23.006562499999994,72.50172265625&key="MY_API_KEY"
For that i have already enabled these APIs in my google API console.
1) Maps SDK For Android
2) Maps JavaScript API
3) Maps Static API
4) Places SDK For Android
Still my google map image is not showing in my application and when i run this link chrome browser it always display this kind of error.

To overcome with this, i have dig google and found that for google map there is 25,000/day request is available but i have already checked that there are not much requests in my API console.
But none of them are working. So how can I overcome with this?
Advanced help would be appreciated!!
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08
add a comment |
I want to display static google map image using latitude and longitude. For that i am using below url
https://maps.googleapis.com/maps/api/staticmap?center=23.006562499999994,72.50172265625&zoom=18&size=280x280&markers=color:red|23.006562499999994,72.50172265625&key="MY_API_KEY"
For that i have already enabled these APIs in my google API console.
1) Maps SDK For Android
2) Maps JavaScript API
3) Maps Static API
4) Places SDK For Android
Still my google map image is not showing in my application and when i run this link chrome browser it always display this kind of error.

To overcome with this, i have dig google and found that for google map there is 25,000/day request is available but i have already checked that there are not much requests in my API console.
But none of them are working. So how can I overcome with this?
Advanced help would be appreciated!!
I want to display static google map image using latitude and longitude. For that i am using below url
https://maps.googleapis.com/maps/api/staticmap?center=23.006562499999994,72.50172265625&zoom=18&size=280x280&markers=color:red|23.006562499999994,72.50172265625&key="MY_API_KEY"
For that i have already enabled these APIs in my google API console.
1) Maps SDK For Android
2) Maps JavaScript API
3) Maps Static API
4) Places SDK For Android
Still my google map image is not showing in my application and when i run this link chrome browser it always display this kind of error.

To overcome with this, i have dig google and found that for google map there is 25,000/day request is available but i have already checked that there are not much requests in my API console.
But none of them are working. So how can I overcome with this?
Advanced help would be appreciated!!
asked Nov 21 at 4:59
Piyush Gupta
117116
117116
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08
add a comment |
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08
add a comment |
2 Answers
2
active
oldest
votes
I would venture to guess that you setup your api key as restricted for an Android App. I deduce this from your mentioning in the comments that you setup the Sha1.
For using the static API, you are using a standard http call, as it is not supported by the Android Maps. Therefore you have to use a key that is unrestricted. Sounds scary, but there is no way around it, other than setting up your own server as a go in between. You can still restrict the APIs, but nothing else.
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
add a comment |
You need to add meta data in your manifiest including the map key in Application.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_MAP_KEY" />
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f53405519%2fgoogle-static-map-not-showing-google-map-image%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would venture to guess that you setup your api key as restricted for an Android App. I deduce this from your mentioning in the comments that you setup the Sha1.
For using the static API, you are using a standard http call, as it is not supported by the Android Maps. Therefore you have to use a key that is unrestricted. Sounds scary, but there is no way around it, other than setting up your own server as a go in between. You can still restrict the APIs, but nothing else.
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
add a comment |
I would venture to guess that you setup your api key as restricted for an Android App. I deduce this from your mentioning in the comments that you setup the Sha1.
For using the static API, you are using a standard http call, as it is not supported by the Android Maps. Therefore you have to use a key that is unrestricted. Sounds scary, but there is no way around it, other than setting up your own server as a go in between. You can still restrict the APIs, but nothing else.
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
add a comment |
I would venture to guess that you setup your api key as restricted for an Android App. I deduce this from your mentioning in the comments that you setup the Sha1.
For using the static API, you are using a standard http call, as it is not supported by the Android Maps. Therefore you have to use a key that is unrestricted. Sounds scary, but there is no way around it, other than setting up your own server as a go in between. You can still restrict the APIs, but nothing else.
I would venture to guess that you setup your api key as restricted for an Android App. I deduce this from your mentioning in the comments that you setup the Sha1.
For using the static API, you are using a standard http call, as it is not supported by the Android Maps. Therefore you have to use a key that is unrestricted. Sounds scary, but there is no way around it, other than setting up your own server as a go in between. You can still restrict the APIs, but nothing else.
answered Nov 21 at 5:55
lionscribe
1,9431612
1,9431612
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
add a comment |
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I have already API restriction set none
– Piyush Gupta
Nov 21 at 5:58
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
I am referring to application restriction which should be set to none, not Android App. Try it out by creating a new key with no restrictions whatsoever.
– lionscribe
Nov 21 at 6:06
add a comment |
You need to add meta data in your manifiest including the map key in Application.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_MAP_KEY" />
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
add a comment |
You need to add meta data in your manifiest including the map key in Application.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_MAP_KEY" />
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
add a comment |
You need to add meta data in your manifiest including the map key in Application.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_MAP_KEY" />
You need to add meta data in your manifiest including the map key in Application.
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_MAP_KEY" />
answered Nov 21 at 6:18
SHAH MD MONIRUL ISLAM
1,07531327
1,07531327
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
add a comment |
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
This is already implemented in manifest file.
– Piyush Gupta
Nov 21 at 10:09
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%2f53405519%2fgoogle-static-map-not-showing-google-map-image%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
are you passing your api key correctly ?
– Vivek Mishra
Nov 21 at 5:03
Yes. It is correct API
– Piyush Gupta
Nov 21 at 5:04
can you show your code how you are showing the map
– Vivek Mishra
Nov 21 at 5:05
Code(link) i have mentioned in my question.
– Piyush Gupta
Nov 21 at 5:08