Here api 这里映射Javascript SDK在Angular应用程序中运行,但性能很差。如何提高手机设备(iPhone 6)的性能?
即使在iphone6上打开一张地图,速度也非常慢,每10秒系统就会刷新一次页面。Here api 这里映射Javascript SDK在Angular应用程序中运行,但性能很差。如何提高手机设备(iPhone 6)的性能?,here-api,Here Api,即使在iphone6上打开一张地图,速度也非常慢,每10秒系统就会刷新一次页面。 正常默认映射: constructor() { this.platform = new H.service.Platform({ 'apikey': API_Key }); } public ngAfterViewInit() { let defaultLayers = this.platform.createDefaultLayers(); this.map
正常默认映射:
constructor() {
this.platform = new H.service.Platform({
'apikey': API_Key
});
}
public ngAfterViewInit() {
let defaultLayers = this.platform.createDefaultLayers();
this.mapHere = new H.Map(
this.mapElement.nativeElement,
defaultLayers.vector.normal.map, //3.1
// defaultLayers.normal.map, //3.0
{
zoom: 16,
center: this.center,
pixelRatio: window.devicePixelRatio || 1
}
);
......
}
为确保在移动设备上获得最佳性能,请将以下元标记添加到HTML页面的
部分:
查看链接以了解更多信息。
您能提供更多详细信息吗?例如,这是唯一一个正在使用的地图加载JS吗?是否还有其他重DOM?