Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UI元素(如MapSettingControl)在Safari 13上消失_Ios_Ionic Framework_Safari_Here Api - Fatal编程技术网

Ios UI元素(如MapSettingControl)在Safari 13上消失

Ios UI元素(如MapSettingControl)在Safari 13上消失,ios,ionic-framework,safari,here-api,Ios,Ionic Framework,Safari,Here Api,问题在于,在Safari 13上,某些元素没有按实现的顺序(z索引)显示。但是,该元素按预期运行,因此缩放可以工作(如果您知道其位置),但控件不可见。这在其他设备上正常工作,例如Mac或ios12上的Safari 13 heremap是Ionic home.page的一个元素,包括一个here map组件。here map组件初始化MapControlElements 已尝试在此处设置z索引为的映射,例如90,并将MapSettingsControl设置为99。然而,它始终保持领先地位。尝试在C

问题在于,在Safari 13上,某些元素没有按实现的顺序(z索引)显示。但是,该元素按预期运行,因此缩放可以工作(如果您知道其位置),但控件不可见。这在其他设备上正常工作,例如Mac或ios12上的Safari 13

heremap是Ionic home.page的一个元素,包括一个here map组件。here map组件初始化MapControlElements

已尝试在此处设置z索引为的映射,例如90,并将MapSettingsControl设置为99。然而,它始终保持领先地位。尝试在CSS、addClass和direct设置中设置MapControlSetting的HTML元素。我试图添加一个定制控件并添加CSS类。到目前为止运气不好

    **HTML component**
     <div #map class="map" style="width: 100%; height: 100%;">

    **CSS component**
    .map {
      position: absolute;
      z-index: 10;
      background-color:primary
    }

   .btnOnTop {
      position: absolute; 
      z-index: 99; /* Make sure it does not overlap */
   }

    **here-component**
    @ViewChild("map",{static: true})public mapElement: ElementRef;

    this.mapUI.getControl("mapsettings").addClass("btnOnTop"); 

    or

    this.mapUI.getElement().style.zIndex = 999;
**HTML组件**
**CSS组件**
.地图{
位置:绝对位置;
z指数:10;
背景色:原色
}
.btnOnTop{
位置:绝对位置;
z-index:99;/*确保它不重叠*/
}
**这里是组件**
@ViewChild(“map”,{static:true})公共mapElement:ElementRef;
this.mapUI.getControl(“mapsettings”).addClass(“btnOnTop”);
或
this.mapUI.getElement().style.zIndex=999;

我想让控件元素在给定的路线上可见,例如右下角,但在Safari上和Safari 13上的Chrome上,控件元素正在消失。

尝试使用以下方法设置索引:

public PositionIndicator setZIndex(int index)
设置位置指示器的Z索引。默认Z索引是当前支持的最大值

参数:

索引-MapObject的新z索引值,在[0..65535]范围内的16位整数 返回: PositionIndicator此对象用于方法链接

请参阅以下文档,并升级至最新的android版本


能否请您提供您的代码版本,以便我们可以尝试在我们这边复制?只要我在地图上添加一些离子项目作为覆盖,就会发生这种情况。然后您会丢失hereUI元素,但是,如果您知道这些元素的位置,您可以使用它们。我使用的是带ios13.2.3的iphone6s。我应该如何向您提供一些代码?