No Google maps after compiling web app of the 6.2 server

Hello,

After building the web app in Visual Studio Code, I lost access to Google Maps. I copied all the contents from the build folder to the web folder on the server, and everything else is working fine except for Google Maps. I'm not sure what went wrong. I compiled the web app because I removed the lock icon from the login screen of the manager app.

maps.png

Anton Tananaev5 months ago

You have to set the API key.

Is it possible to use free as it was? If so, what API do I need? Do I need to use paid Google API?

I set it on the Custom map: https://mt0.google.com/vt/lyrs=m,traffic&hl=en&x={x}&y={y}&z={z}&s=Ga and it is working, on the google API of course not.

Anton Tananaev5 months ago

You can still use it as a custom map layer if you want.

Ok, but if I want to use those?
maps1.png
Which Google API should I use? I tried paid but not working, tried as well as in the custom maps, not working. What do I miss?

Anton Tananaev5 months ago

You need to make sure you have a key with the tiles API enabled.

Anton Tananaev5 months ago

Oh ok, got it, thank you. Have a nice weekend.

It is working, I did not enable Tiles in the Google Maps Console.
For those who want to enable Google Maps after you recompile the web app:

  1. You have to have enabled the billing account on the console.
  2. After making the project and generating the Google Map API key ENABLE tiles in the console APIs.
  3. Set the API key on the server once for all Google Maps.