Skip to content

ionic 5.5.2 angular + openlayers: Controls vanish on ios native + emulator (cordova) #22755

@Siedlerchr

Description

@Siedlerchr

Bug Report

Ionic version:

[ ] 4.x
[x] 5.5.2

Current behavior:
After rendering on native ios the OpenLayers controls vanish. This only happens on ios native (iPad and emulator), safari on mac does not have this problem. The Last working ionic version was 5.4.1.

Expected behavior:
The controls stay on top of the map

Steps to reproduce:

Run the app using ionic cordova run ios in the emulator on an ipad or on a real device
switch between Test 1 and Map
See the controls flashing and vanish when switching between the pages.

Related code:

A sample application via GitHub
https://github.com/Siedlerchr/ionic-ol-bugtest

Other information:
A Colleague and I debugged this and discovered that this might be somehow related to zIndex ordering, The controls are rendere, but somehow behind the map.

Ionic info:

Ionic:

   Ionic CLI                     : 6.12.3 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.5.2
   @angular-devkit/build-angular : 0.1002.1
   @angular-devkit/schematics    : 10.2.1
   @angular/cli                  : 10.2.1
   @ionic/angular-toolkit        : 2.3.3

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : ios 6.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

   cordova-res : 0.15.2
   native-run  : 1.3.0

System:

   ios-deploy : 1.11.0
   ios-sim    : 8.0.2
   NodeJS     : v12.18.3 (/usr/local/bin/node)
   npm        : 6.14.11
   OS         : macOS Big Sur
   Xcode      : Xcode 12.3 Build version 12C33

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions