Coder Social home page Coder Social logo

Comments (12)

PNKBizz avatar PNKBizz commented on August 18, 2024 2

Привет!
дело скорее всего в стилях. Раньше были инлайновые width и hight по 100%, но я решил их удалить в пользу навешивания класса.
<yandex-map> has a class ymap-container and child element with class ymap-body, where rendering map instance.
То есть, чтобы сделать все как раньше - пропишите класс

.ymap-body {
  width: 100%;
  height: 100%;
}

Отпишите, если поможет - я закрою ишью

from vue-yandex-map.

idegart avatar idegart commented on August 18, 2024

Да, помогло
Спасибо большое!

from vue-yandex-map.

PNKBizz avatar PNKBizz commented on August 18, 2024

Не за что )

from vue-yandex-map.

k0va1 avatar k0va1 commented on August 18, 2024

@PNKBizz было бы неплохо добавить эту инфу в readme. Думаю, что не я один тупил и не понимал, что не так)

from vue-yandex-map.

PNKBizz avatar PNKBizz commented on August 18, 2024

@hetsketch Да, я сейчас работаю над релизом, в котором будет возможность определять свой класс. Тогда все и исправлю

from vue-yandex-map.

k0va1 avatar k0va1 commented on August 18, 2024

@PNKBizz круто! Так держать 😀

from vue-yandex-map.

hunty avatar hunty commented on August 18, 2024

потратил много часов чтобы найти решение) в доках ныне это нет, а yamap-class почему-то не работает с %.

from vue-yandex-map.

PNKBizz avatar PNKBizz commented on August 18, 2024

@hunty Не очень понял о чем вы...

from vue-yandex-map.

hunty avatar hunty commented on August 18, 2024

есть родительский блок, который имеет высоту 50% от родителя. При указании стиля для класс указанного через yamap-class в 100% по ширине и высоте, карта не показывается. Работает только со значениями в px. Карта так же не показывается, если задавать через определение стиля для класса ymap-container:

.ymap-container {
    width: 100%;
    height: 100%;
}

В моем случае, рабочей оказалась такая комбинация:

 .ymap-container {
        height: 100%;
        width: 100%;
 }
.ymap-body {
        width: 100%;
        height: 100%;
}

В данном случае карта успешно растягивается на ширину и высоту блока контейнера

from vue-yandex-map.

PNKBizz avatar PNKBizz commented on August 18, 2024

@hunty ymap-class

from vue-yandex-map.

hunty avatar hunty commented on August 18, 2024

Все верно, опечатался. Стиль задается через него корректно, но не отрабатывает как надо.

from vue-yandex-map.

PNKBizz avatar PNKBizz commented on August 18, 2024

создайте пример в песочнице, пожалуйста

from vue-yandex-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.