문제

Sounds stupid, but since there is no specific example in documentation, its not clear how to use the api key.
This part of code from documentation is not clear:

<script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key={API_KEY}&sensor=SET_TO_TRUE_OR_FALSE">
    </script>

Well I will find my apikey, let's say that the value of my api key will be for example: 123456ABCDEFG

So how should I used it?

1)src="https://maps.googleapis.com/maps/api/js?key={123456ABCDEFG}&sensor=false"
or
2)src="https://maps.googleapis.com/maps/api/js?key=123456ABCDEFG&sensor=false"
or else?

도움이 되었습니까?

해결책

Don't forget the equals.

src="https://maps.googleapis.com/maps/api/js?key=123456ABCDEFG&sensor=false" 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top