일과 생활
Home
  • 분류 전체보기 (181)
    • 이야기 (3)
    • Tools (2)
      • vs code (2)
    • Open API (82)
      • Jquery (47)
      • Naver (2)
      • Google (21)
      • Daum (4)
      • kakao (2)
      • 그 외 (6)
    • DataBase (28)
      • MS-SQL (22)
      • My-SQL (6)
    • Progmming (24)
      • ASP (1)
      • PHP (9)
      • .Net (7)
      • JSP (0)
      • HTML (0)
      • JAVA (0)
      • Python (2)
      • Javascript (4)
      • git (1)
    • CSS (1)
    • OS (15)
      • Microsoft (14)
      • Linux (0)
      • mac (1)
    • Cloud Server (3)
    • 추천 정보 (14)
    • 에러노트 (8)
Home
블로그 내 검색

일과 생활

함께 쌓여가는 개발자의 경험과 기록

  • Open API/Google

    중국에서 Google map 실행이 안되는 경우 해결 방법

    2018. 10. 23.

    by. Yo.

    728x90

    중국내에서 Google map 실행이 안되는 경우 해결 방법


    원인은 https 접속이 안되기 때문이고 

    이 문제는 Google map FAQ에서 해결 방법을 제시해주고 있습니다.



    아래 내용은 Google Map FAQ의 일부 발췌한 내용입니다.


    Google Maps Platform products are served within China from the domain maps.google.cn. This domain does not support https. When making requests to Google Maps Platform products from China, please replace https://maps.googleapis.com with http://maps.google.cn.



    중국에서 https://maps.googleapis.com 접속이 정상적으로 이뤄지지 않기 때문에


    http 통신을 해야하고 중국내에서 이용할 수있는 도메인은 http://maps.google.cn 


    아래와 같이 Google Map API javascript 파일 참조시에 도메인을 변경해줍니다.



    <script src="http://maps.google.cn/maps/api/js?key=YOUR_API_KEY"
    type="text/javascript">
    </script>



    내용이 변경될 수 있기 때문에 Google Map FAQ 링크를 함께 남깁니다.


    https://developers.google.com/maps/faq#china_ws_access

    728x90
    저작자표시 (새창열림)

    댓글

    관련글

    • [Google Map] Places search box 구글 자동완성을 이용한 위경도 값 가져오기 2018.07.04
    • [Google API] 구글맵 v3 infoBox 2016.12.14
    • 구글맵 v3 단순 다중 마커 (배열이용) 2016.12.12
    • 구글맵 마커 + 말풍선 - v3 2016.12.12
    맨 위로
전체 글 보기
  • SyntaxHighlighter 웹버전
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Daum Corp.

Designed by Nana
블로그 이미지
Yo.

티스토리툴바