4
4
isAuthTokenSet ,
5
5
requestAuthToken ,
6
6
CRS_EPSG3857 ,
7
- CRS_EPSG4326 ,
8
7
BBox ,
9
8
MimeTypes ,
10
9
ApiType ,
@@ -23,6 +22,7 @@ if (!process.env.S5PL2_LAYER_ID) {
23
22
24
23
const instanceId = process . env . INSTANCE_ID ;
25
24
const layerId = process . env . S5PL2_LAYER_ID ;
25
+ const bbox = new BBox ( CRS_EPSG3857 , 1408887.3053523689 , 5087648.602661333 , 1487158.8223163893 , 5165920.119625352 ) ;
26
26
27
27
export default {
28
28
title : 'Sentinel 5P L2' ,
@@ -39,8 +39,6 @@ export const getMapURL = () => {
39
39
40
40
const layer = new S5PL2Layer ( instanceId , layerId ) ;
41
41
42
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
43
- // const bbox = new BBox(CRS_EPSG4326, 18, 20, 20, 22);
44
42
const getMapParams = {
45
43
bbox : bbox ,
46
44
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -66,7 +64,6 @@ export const getMapWMS = () => {
66
64
67
65
const perform = async ( ) => {
68
66
const layer = new S5PL2Layer ( instanceId , layerId ) ;
69
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
70
67
const getMapParams = {
71
68
bbox : bbox ,
72
69
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -106,8 +103,6 @@ export const getMapWMSEvalscript = () => {
106
103
return colorBlend(val, limits, colors);
107
104
` ,
108
105
) ;
109
- // const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
110
- const bbox = new BBox ( CRS_EPSG3857 , 1408887.3053523689 , 5087648.602661333 , 1487158.8223163893 , 5165920.119625352 ) ;
111
106
const getMapParams = {
112
107
bbox : bbox ,
113
108
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -158,7 +153,6 @@ export const getMapProcessing = () => {
158
153
` ,
159
154
) ;
160
155
161
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
162
156
const getMapParams = {
163
157
bbox : bbox ,
164
158
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -211,7 +205,6 @@ export const getMapProcessingWithoutInstance = () => {
211
205
212
206
) ;
213
207
214
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
215
208
const getMapParams = {
216
209
bbox : bbox ,
217
210
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -247,7 +240,6 @@ export const getMapProcessingFromLayer = () => {
247
240
248
241
const layer = new S5PL2Layer ( instanceId , layerId ) ;
249
242
250
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
251
243
const getMapParams = {
252
244
bbox : bbox ,
253
245
fromTime : new Date ( Date . UTC ( 2020 , 2 - 1 , 2 , 0 , 0 , 0 ) ) ,
@@ -266,7 +258,6 @@ export const getMapProcessingFromLayer = () => {
266
258
267
259
export const findTiles = ( ) => {
268
260
const layer = new S5PL2Layer ( instanceId , layerId ) ;
269
- const bbox = new BBox ( CRS_EPSG3857 , - 2035059.4 , 15497760.4 , - 1956787.9 , 15576031.8 ) ;
270
261
const containerEl = document . createElement ( 'pre' ) ;
271
262
272
263
const wrapperEl = document . createElement ( 'div' ) ;
0 commit comments