52
Views
6
Comments
How can I use my API key in the Static map tool?

I created a google maps API key.  But  how do I have to use it in the static map?

I watched a couple videos but it doesn't work. Can someone explain it in an easy way for me?

UserImage.jpg
M B

Hi Krishnanand,

I real don't see what I do wrong. but I followed the map component documentation.

This is how it looked right now:



I use a google api key and maybe I put it in the wrong place?? but put it in the apikey:


2023-04-16 15-25-31
Krishnanand Pathak

Sharing the oml in which there is a screen GoogleMapss 
Just add the API Key in Maps component and publish then Test.




MapsAPI.oml
UserImage.jpg
M B

This came after the photo down



2023-04-16 15-25-31
Krishnanand Pathak

I think your OutsystemsUI version is different.
Try to refresh the dependency through Manage Dependencies then publish.

UserImage.jpg
M B

Wel thanks!  But it doesn't work. if I look in the browser console  it says: Google maps JavaScript API error: InvalidKeyError.  And if I click on the document it says:

The API key included in the script element that loads the API is not found. Please make sure you are using a correct API key. You can generate a new API key in the Cloud Console.

So I Think there is something with the API key..

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.