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

307
Views
¿Cómo aplico una máscara circular en un mapa de Google, de modo que la ventana solo muestre el mapa dentro del círculo?

Sé que la API de Google Maps le permite superponer un círculo transparente sobre un mapa, pero quiero que el elemento del mapa real se represente dentro de un círculo. ¿Cuál sería el enfoque más limpio que recomiendas? No creo que la API tenga esta funcionalidad para remodelar la ventana. ¿Tendría que superponerlo a través de CSS? Cualquier ayuda sería muy apreciada.

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

0

Si es solo un círculo, simplemente coloque el iframe en un círculo con overflow:hidden .

 .circle-wrapper { width: 70vh; height: 70vh; overflow: hidden; border-radius: 50%; } .circle-wrapper iframe { width: 100%; height: 100%; }

Aquí está el codepen 👉 https://codepen.io/phucbui/pen/YzrLaJY

about 4 years ago · Juan Pablo Isaza Report

0

Podrías usar una máscara:

Envuelva su iframe del mapa de Google en una etiqueta y agregue estilos de máscara a la etiqueta.

 <div class="mask-tag"><iframe src=""></iframe></div> .mask-tag { /** use any image you would like */ mask-image: url(/img/theme/shape-heart.svg); mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-image: url(/img/theme/shape-heart.svg); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; }
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!