Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

305
Vistas
How to show maps route on the upper side of the screen?


I've been trying to build an app for navigation to practice my React Native coding skills until I encountered an issue regarding the native maps (at least for the iPhone). I want the route to be displayed only on the upper side of the screen (top half). I am trying to use 'edgePadding' property but it doesn't affect the map no matter what values i send to it. This is what it automaticly renders:

React elements are blocking the route view

As I said, I want the route always to be displayed on the top half so the component doesn't block it. Like the following:

enter image description here

 useEffect(() => {
    if (!origin || !destination) return;
    // Zoom & fit to markers
    mapRef.current.fitToSuppliedMarkers(['origin', 'destination'], {
      edgePadding: { top: 50, bottom: 200, left: 50, right: 50}, // <= doesn't work
    });
  }, [origin, destination])
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda