aviation-chart 2.0.42 → 2.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nav-sdk.d.ts +1 -1
- package/dist/nav-sdk.esm.js +4 -4
- package/glm.txt +2 -2
- package/package.json +1 -1
package/dist/nav-sdk.d.ts
CHANGED
|
@@ -800,7 +800,7 @@ declare class RasterManager {
|
|
|
800
800
|
private updateCoordinates;
|
|
801
801
|
private addSource;
|
|
802
802
|
private addLayer;
|
|
803
|
-
addRasterLayer(layerId: string, sourceId: string, meteoType: string): void;
|
|
803
|
+
addRasterLayer(layerId: string, sourceId: string, meteoType: string, beforeId: string): void;
|
|
804
804
|
updateRasterLayer(sourceId: string, newUrl: string, meteoType: string): void;
|
|
805
805
|
removeRasterLayer(layerId: string, sourceId: string): void;
|
|
806
806
|
}
|
package/dist/nav-sdk.esm.js
CHANGED
|
@@ -4104,7 +4104,7 @@ class RasterManager {
|
|
|
4104
4104
|
return;
|
|
4105
4105
|
this.map.addSource(sourceId, { type: "image", url, coordinates: coords });
|
|
4106
4106
|
}
|
|
4107
|
-
addLayer(layerId, sourceId) {
|
|
4107
|
+
addLayer(layerId, sourceId, beforeId) {
|
|
4108
4108
|
if (this.map.getLayer(layerId))
|
|
4109
4109
|
return;
|
|
4110
4110
|
this.map.addLayer({
|
|
@@ -4117,12 +4117,12 @@ class RasterManager {
|
|
|
4117
4117
|
'raster-opacity': 1,
|
|
4118
4118
|
"raster-resampling": 'linear',
|
|
4119
4119
|
}
|
|
4120
|
-
});
|
|
4120
|
+
}, beforeId);
|
|
4121
4121
|
}
|
|
4122
|
-
addRasterLayer(layerId, sourceId, meteoType) {
|
|
4122
|
+
addRasterLayer(layerId, sourceId, meteoType, beforeId) {
|
|
4123
4123
|
this.updateCoordinates(meteoType);
|
|
4124
4124
|
this.addSource(sourceId, this.rasterUrl, this.coordinates);
|
|
4125
|
-
this.addLayer(layerId, sourceId);
|
|
4125
|
+
this.addLayer(layerId, sourceId, beforeId);
|
|
4126
4126
|
}
|
|
4127
4127
|
updateRasterLayer(sourceId, newUrl, meteoType) {
|
|
4128
4128
|
this.rasterUrl = newUrl;
|
package/glm.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# aviation-chart SDK 开发手册
|
|
2
2
|
|
|
3
|
-
SDK 版本:2.0.
|
|
3
|
+
SDK 版本:2.0.43
|
|
4
4
|
|
|
5
5
|
# 开发约定
|
|
6
6
|
|
|
@@ -2135,7 +2135,7 @@ declare class RasterManager {
|
|
|
2135
2135
|
constructor(map: Map);
|
|
2136
2136
|
get rasterSourceUrl(): string;
|
|
2137
2137
|
set rasterSourceUrl(url: string);
|
|
2138
|
-
addRasterLayer(layerId: string, sourceId: string, meteoType: string): void;
|
|
2138
|
+
addRasterLayer(layerId: string, sourceId: string, meteoType: string, beforeId: string): void;
|
|
2139
2139
|
updateRasterLayer(sourceId: string, newUrl: string, meteoType: string): void;
|
|
2140
2140
|
removeRasterLayer(layerId: string, sourceId: string): void;
|
|
2141
2141
|
}
|