Trela pro asked 6 years ago


I'm adding your map feature to my website and i always have problems with API key. Where should i place Google Map API Key in scripts from this site? https://mdbootstrap.com/javascript/bootstrap-google-map/

rsademos pro answered 6 years ago


I just ran into this myself. You can add the key like this: In the examples just below the map-container definition the Google Maps Javascript API is called. Add your key to that call. All the other Javascript (the map options etc. you can leave as is).   <div id="map-container" class="z-depth-1" style="height: 500px"></div> [ . . . ] <!--Google Maps--> <script src="https://maps.google.com/maps/api/js?key=YOURKEYGOESHERE"></script>

Trela pro commented 6 years ago

Cool, thank you!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags