Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Openseadragon: cargue y elimine imágenes en mosaico adicionales al acercar / alejar

¿Hay algún ejemplo sobre cómo cargar y eliminar imágenes en mosaico adicionales al acercar o alejar? De esta manera, el navegador solo tendría que manejar un subconjunto de imágenes en mosaico (nivel de detalle reducido) y podría tener un mayor rendimiento.

Traté de averiguar cómo hacer esto. Es una pena que no tenga las habilidades de programación para hacer eso :( terminé con esto:

 viewer.addTiledImage({ tileSource: 'g2.dzi', x: 0.2, y: 0.1, width: 0.01, opacity: 0 }); viewer.addHandler('bookmark-url-change', function(event) { var zoom = viewer.viewport.getZoom(); if (zoom >= 2) { viewer.world.getItemAt().setOpacity(1) } else if (zoom < 2) { viewer.world.getItemAt().setOpacity(0) } });

Sería genial si pudieras ayudarme a hacerlo bien. ¡Gracias!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esto debería funcionar:

 // Before this presumably you have made a viewer with a single image. viewer.addTiledImage({ tileSource: 'g2.dzi', x: 0.2, y: 0.1, width: 0.01, opacity: 0 }); viewer.addHandler('zoom', function(event) { var topImage = viewer.world.getItemAt(1); if (topImage) { var zoom = viewer.viewport.getZoom(); if (zoom >= 2) { topImage.setOpacity(1) } else if (zoom < 2) { topImage.setOpacity(0) } } });

No lo he probado, pero debería ser la idea general correcta.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!