Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

73
Visualizações
Openlayers prevent pinch rotate during pinch zoom

I noticed that when trying to zoom into my openlayers map on mobile via PinchZoom interaction, the pinch often unwantedly also rotates the map. I know that I can increase the rotate interaction's tolerance by setting its threshold option, but I would like to disable PinchRotate altogether during a pinch zoom instead.

I have tried to deactivate PinchRotate in a ol.View.on('change:resolution') handler and activate it again in a ol.Map.on('moveend') handler. However, this prevents rotating altogether because there does not seem to be any threshold on the PinchZoom interaction and openlayers seems to start zooming right away when just touching the screen with two fingers.

Has anyone been able to implement this behavior before or knows how to add a threshold to the PinchZoom interaction?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda