Skip to content
created by Aha00aAha00a at 2019-12-07
last modified by Aha00aAha00a at 2022-03-05
revision: 6

1. Distance Matrix API

https://developers.google.com/maps/documentation/distance-matrix/intro

한국에서는 mode를 transit밖에 지원하지 않는다. 지도 반출 이슈때문인 것으로 보임..

그래서 직선거리가 500m정도 되는 장소를 transit으로 쿼리해보면 1400m정도로 나온다. 출발점에서 버스정류장으로 걸어가서, 버스틀 타서 이동한 후, 내려서 도착점까지 걸어갔을 때의 거리가 나오는것.. 하...

2020-02-19국내에 데이터센터를 만들었다고 한다. 그리고 구글 클라우드 플랫폼 서비스와 구글 지도 서비스의 한국 서비스 또한 Google Cloud Korea LLC로 이전되었다고 하니.. transit을 사용하고, 기다려보자. --2020-06-23

2. Hiding Map Features

2022-03-01 쯤 부터 지도에 너무 많은 정보들이 표시되어 끄고 싶었다. 돌려줘 내지도.

Google Maps Platform - Home - Products - Google Maps Platform - Documentation - Web - Maps JavaScript API - Samples - Hiding Map Features With Styling

Points of interest (POI) 라고 한다. POI를 끄면 된다.

Google Maps Platform - Home - Products - Google Maps Platform - Documentation - Web - Maps JavaScript API - Style Reference - featureType

이 중에서 poi.business를 꺼주면 된다.

AhaWiki에 적용함. 켜고 끄는 버튼까지.

https://github.com/Aha00a/AhaWiki/commit/ccd3b1bd61da6ab147224efc4c7480766fd80a08

핵심은 init할 때 styles를 주고(끈 상태),

            var map = new google.maps.Map(document.getElementById(id), {
                styles: [
                    {
                        featureType: "poi.business",
                        stylers: [{ visibility: "off" }],
                    }
                ],
            });

만들어놓은 버튼 클릭시에 켬끔을 setOptions 하면 된다는것.

                        var id = '@id';
                        $('#store@id').click(function () {
                            var $this = $(this);
                            if($this.hasClass('on')) {
                                objectMap[id].setOptions({
                                    styles: [
                                        {
                                            featureType: "poi.business",
                                            stylers: [{ visibility: "off" }],
                                        }
                                    ],
                                });
                            } else {
                                objectMap[id].setOptions({ styles: [] });
                            }
                            $this.toggleClass('on');
                        });

--2022-03-05

3. See Also

3.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

3.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+