์ฌ๋ฌ๋ถ ์๋
ํ์ธ์,
์ด ์์ ๋ฅผ ๋ฐ๋ผ ์ด๋ฒคํธ๋ฅผ ์ถ๊ฐํฉ๋๋ค. https://github.com/SebastianM/angular-google-maps/pull/1159/files
๊ทธ๋ฌ๋ ์ฌ์ ํ ๋ณ๊ฒฝ ์ฌํญ์ด ๋ํ๋์ง ์์์ต๋๋ค. ๋ณ๊ฒฝ ์ฌํญ์ด ํฌํจ๋ ํ๋ก์ ํธ๋ฅผ ์ด๋ป๊ฒ ๋ค์ ๋น๋ํ ์ ์์ต๋๊น?
@matishw ์์๋์ด? ๋ง์ปค์ ๋ ๋ง์ ์ด๋ฒคํธ๋ฅผ ์ถ๊ฐํ ์์ ์ด๋ฏ๋ก ์ด์ ๊ด์ฌ์ด ์์ต๋๋ค.
@matishw ๋ด ํ๋กํ์์ repo ๋ฅผ ๋ณต์ ํ๊ณ npm/yarn์ ์ฌ์ฉํ์ฌ ๋น๋ํ ์ ์์ง๋ง ์ด PR์ด ๋ณํฉ๋ ๋๊น์ง ๊ธฐ๋ค๋ฆฌ๋ ๊ฒ์ด ์ข์ต๋๋ค. ๊ทธ ๋์ ๋ค์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
@ViewChild(AgmMap) map: any;
private dragEndSubscription: Subscription;
ngOnInit() {
this.dragEndSubscription = (this.map._mapsWrapper as GoogleMapsAPIWrapper)
.subscribeToMapEvent('dragend')
.subscribe(() => // Your logic goes here);
}
ngOnDestroy() {
this.dragEndSubscription.unsubscribe();
}
์ด ๋ฌธ์ ๋ ์ต๊ทผ ํ๋์ด ์์๊ธฐ ๋๋ฌธ์ ์๋์ผ๋ก ์ค๋๋ ๊ฒ์ผ๋ก ํ์๋์์ต๋๋ค. ๋ ์ด์ ํ๋์ด ์์ผ๋ฉด ํ์๋ฉ๋๋ค. ๊ทํ์ ๊ธฐ์ฌ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@matishw ๋ด ํ๋กํ์์ repo ๋ฅผ ๋ณต์ ํ๊ณ npm/yarn์ ์ฌ์ฉํ์ฌ ๋น๋ํ ์ ์์ง๋ง ์ด PR์ด ๋ณํฉ๋ ๋๊น์ง ๊ธฐ๋ค๋ฆฌ๋ ๊ฒ์ด ์ข์ต๋๋ค. ๊ทธ ๋์ ๋ค์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.