Карта не загружается полностью на весь экран - PullRequest
0 голосов
/ 30 сентября 2019

У меня есть функция, которая изменяет размеры карты. Когда карта в полноэкранном режиме, не загружается полностью, как головоломки. Я не знаю почему. MapPuzzles

У кого-то была эта проблема с картой листовок?

private resizeMap() {
        this.$scope.isMapFullscreen = !this.$scope.isMapFullscreen
        let currentBounds = this.provider.getBounds()
        let currentZoom = this.provider.getZoom()

        angular.element('.navbar-fixed-top').toggleClass("fixed")
        if (this.$scope.isMapFullscreen) {
            this.indexElement = this.$element.index()
            this.$element.appendTo('body')
        } else {
            if (this.indexElement === 0) {
                this.$element.prependTo(this.parentElement)
            } else {
                this.$element.insertAfter(this.parentElement.children().eq(this.indexElement - 1));
            }
        }
        this.$timeout(() => {
            this.provider.setBounds(currentBounds)
            this.provider.setZoom(currentZoom)
        }, 100)
    }

Это не проблема с функцией, потому что с картой Google хорошо работает.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...