Search code examples
javascripthtmlgoogle-mapsgoogle-apiapi-key

how to include googe maps api key in rd google map plugin


i am using RD Google Map plugin but i can't find the google api script

the page do not display the map and display this error and a gray area instead of map

js?sensor=false&libraries=geometry,places&v=3.7&_=1525804623037:40 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

enter image description here

then i tried to add this script line to initialize the google maps

      <script src="https://maps.googleapis.com/maps/api/js?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="text/javascript"></script>

but this time the map did not display at all

with this error

js?sensor=false&libr…&_=1525804236821:96 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

enter image description here

if i include the script it says it is included multiple times and if i exclude it it says no key

please advice

thanks in advance


Solution

  • After more searching and digging i found the answer here

    MissingKeyMapError when configuring Google Maps API

    i tried the solution and find it helpful and the issue is solved