2017-12-25 44 views
-1

heroku에 반응 앱을 배포했지만지도가 표시되지 않습니다.Google지도 로컬로 작동하지만 Heroku가 아닙니다

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys util.js:248:12

나는 도서관 모두를 포함하고 index.html을에 스크립트 태그와 함께로드 시도, 내가 얻을 : You have included the Google Maps API multiple times on this page. This may cause unexpected errors. Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

주 : 나는 이러한 오류 메시지를받을 키 제한이 설정되어 왜 로컬 호스트에서 작동하지만 히로코에서는 작동하지 않는지 궁금합니다.

답변

1

Google지도에서 API 키없이 Google지도에 액세스 할 수 있습니다. 개발 모드 및 "유일한"트래 피킹을 사용하여 사이트가 "localhost"에있는 경우에만 허용됩니다. 개발자), here 무엇이 필요합니까?