GithubHelp home page GithubHelp logo

Comments (2)

tsauvajon avatar tsauvajon commented on July 28, 2024 1

Google added a limit to the API usage.
https://cloud.google.com/maps-platform/pricing/sheet/

While we previously had unlimited Google maps queries (I think), it's now heavily limited.

Since the default key is probably used by hundreds if not thousands of websites, you might want to get your own Google maps API key: https://developers.google.com/maps/documentation/javascript/get-api-key.

Please note that enabling billing with Google is required, as far as I know (even though it will never cost you anything unless you explicitly agree to it).

Once you've got your new API key, open layouts/partials/js.html, find the line where the default key is: "https://maps.googleapis.com/maps/api/js?key=AIzaSyCefOgb1ZWqYtj7raVSmN4PL2WkTrc-KyA&sensor=false", and replace it with your own key, as following:
"https://maps.googleapis.com/maps/api/js?key=[YOUR_KEY]&sensor=false".

Be sure to restrict how the key can be used to avoid anyone else from using it ! You can do that in the Console: add both referrers (in my case, my website is published at https://thomas.sauvajon.tech so I added that as a referrer: only requests coming from this website will work), and what API can be used with this key (once again in my case, only JavaScript API).

from hugo-elate-theme.

raklein avatar raklein commented on July 28, 2024

Great, thanks for the clear explanation. Fixed on my end, maybe just needs a little note in the readme.

from hugo-elate-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.