Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Задать лимит зума #491

Open
kentforth opened this issue Sep 27, 2024 · 0 comments
Open

Задать лимит зума #491

kentforth opened this issue Sep 27, 2024 · 0 comments

Comments

@kentforth
Copy link

Как можно задать лимит на зум, чтобы при скролле карты при приближении, зум остановился и больше не работал?

Как можно получить события скролла зума при клике на кнопки зума?

<yandex-map
            v-if="coords.length"
            ref="map"
            :zoom="zoom"
            :coords="[coords[coordsIndex].latitude, coords[coordsIndex].longitude]"
            :options="{ suppressMapOpenBlock: true }"
            :settings="mapSettings"
            :controls="['zoomControl']"
            class="choose-warehouse-modal__map ml-3 mt-3"            
          >
            <ymap-marker
              v-for="(coordinate, index) in coords"
              :key="coordinate.id"
              :icon="getIcon(coordinate.id)"
              :coords="[coordinate.latitude, coordinate.longitude]"
              :marker-id="coordinate.id"             
            />
          </yandex-map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant