question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Iphone X Fullscreen Map

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

Cordova Platforms  : android 7.0.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS
cordova-plugin-googlemaps 2.3.5 "cordova-plugin-googlemaps
@ionic-native/google-maps: ^4.8.2
@ionic-native/core: 4.7.0

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

Current behavior: I’m trying to achieve a full screen map. I was able to do it on my test devices but not on iPhone X as there’s a white space above the map in the notch area. Is this normal, my div is set to width 100% and height 100%.

Screen capture or video record: screen shot 2018-06-03 at 12 46 54 am

Related code

HTML Template

<ion-content>
    <div #map id="map"></div>
  </ion-content>

Thank you very much

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cedrickbaecommented, Jun 4, 2018

Thanks for the ideas, I check safari inspector and the css

.scroll-content {
padding-top : env(safe-area-inset-top);
}

in ionic is causing the white space above. It pushes the map div to the safe area causing white space.

Thanks again!

0reactions
wf9a5m75commented, Jun 2, 2018

If you can’t solve the problem by yourself, please share your project files on GitHub. Otherwise please debug by yourself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

View weather maps on iPhone - Apple Support
On your iPhone, view full-screen temperature, precipitation, and air quality maps using the Weather app.
Read more >
Google Maps now uses full screen on iPhone X. - Techzle
Google Maps now uses all available screen space on the iPhone X to display map data. Where Apple Maps uses a transparent bar...
Read more >
iOS 7 Maps go full screen, navigation gets night mode, new ...
Full Screen Maps. One new feature in Apple Maps, noted by AppleInsider reader Vesko Kateliev, is its full screen mode, which erases all...
Read more >
Google Maps Updated With Support for iPhone X - MacRumors
The Google Maps app displays full screen on the iPhone X's taller display, with a search bar located at the top of the...
Read more >
iPhone App is not full screen in iPhone X
Hello All, Today I will talk about a strange issue that I was facing, while trying to create a iPhone X version of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found