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

304
Views
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
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!