222 Commits

Author SHA1 Message Date
jenkins
7943cefddf [ci skip] Changed by Jenkins: 2414
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2023-12-29 10:17:00 +00:00
a2a287961c Fix error TS2307: Cannot find module 'ngx-openlayers' or its corresponding type declarations.
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-29 11:07:41 +01:00
8e8f18ad7c Aw5739 Add ngx openlayers
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2023-12-29 11:01:36 +01:00
jenkins
5cbb6f32f9 [ci skip] Changed by Jenkins: 2398
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-21 11:57:05 +00:00
b2469f731e trigger build
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-21 11:54:47 +00:00
jenkins
beb439469f [ci skip] Changed by Jenkins: 2397
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-19 13:26:17 +00:00
ef49f62ca2 AW-5727 - Farms blijft leeg bij harde reload
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-19 14:14:57 +01:00
jenkins
67abc67d9a [ci skip] Changed by Jenkins: 2396
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-15 13:11:48 +00:00
jenkins
1f7f410916 [ci skip] Changed by Jenkins: 2395
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-15 13:06:21 +00:00
2f176be8c6 Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-15 14:01:02 +01:00
1118c5ca60 Aw3998 Add click 2023-12-15 14:00:48 +01:00
jenkins
c7831d1d87 [ci skip] Changed by Jenkins: 2394
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-15 12:51:48 +00:00
31c5e0cb52 Aw3998 Add click
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-15 13:49:13 +01:00
jenkins
c6a632894d [ci skip] Changed by Jenkins: 2393
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-15 10:10:59 +00:00
e652c7bb5b Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-15 11:05:40 +01:00
818e04d1f3 Aw3998 Cleanup 2023-12-15 11:05:27 +01:00
jenkins
ebbac409a0 [ci skip] Changed by Jenkins: 2392
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-12-15 10:01:59 +00:00
5cc976ddd3 Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-12-15 10:59:18 +01:00
38eae3263e Aw-3998 Add ability to clear features 2023-12-15 10:59:10 +01:00
jenkins
a3eb2d9617 [ci skip] Changed by Jenkins: 2391
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-11-25 14:55:18 +00:00
03e3c7ad95 fix build...
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-11-25 15:52:47 +01:00
8fd8675260 AW-5366 fix scaling of histogram
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2023-11-25 15:46:31 +01:00
187811e4e2 upped version
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2023-11-25 15:41:39 +01:00
8e304fc6eb also use scale for histogram
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
2023-11-23 21:13:44 +01:00
jenkins
127dc44917 [ci skip] Changed by Jenkins: 2387
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2023-10-21 08:59:13 +00:00
jenkins
aa5a8f0843 [ci skip] Changed by Jenkins: 2385
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 08:47:16 +00:00
jenkins
a10aca92f1 [ci skip] Changed by Jenkins: 2383 2023-10-21 08:18:23 +00:00
jenkins
e42e94fcf7 [ci skip] Changed by Jenkins: 2382
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 08:16:00 +00:00
jenkins
2b83ccad1f [ci skip] Changed by Jenkins: 2381
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 08:13:37 +00:00
jenkins
e31d428c4b [ci skip] Changed by Jenkins: 2380
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:44:52 +00:00
jenkins
429e54ef8d [ci skip] Changed by Jenkins: 2379
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:39:40 +00:00
jenkins
02e13337bf [ci skip] Changed by Jenkins: 2378
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:34:27 +00:00
jenkins
b4eb7aaeac [ci skip] Changed by Jenkins: 2377
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:30:58 +00:00
jenkins
7e21c725d8 [ci skip] Changed by Jenkins: 2376
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:25:39 +00:00
jenkins
dd889ea7cc [ci skip] Changed by Jenkins: 2375
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:20:42 +00:00
jenkins
4dab5a00b1 [ci skip] Changed by Jenkins: 2374
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:16:29 +00:00
jenkins
5cc58e8988 [ci skip] Changed by Jenkins: 2373
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:11:47 +00:00
jenkins
0944e595d3 [ci skip] Changed by Jenkins: 2372
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:07:16 +00:00
jenkins
32bebec0df [ci skip] Changed by Jenkins: 2371
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 07:02:43 +00:00
jenkins
c0cf210600 [ci skip] Changed by Jenkins: 2370
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:58:06 +00:00
jenkins
f85a27a8e5 [ci skip] Changed by Jenkins: 2369
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:54:05 +00:00
jenkins
88ae8b829f [ci skip] Changed by Jenkins: 2368
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:49:06 +00:00
jenkins
fcb60ed8bc [ci skip] Changed by Jenkins: 2367
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:44:19 +00:00
jenkins
3d535507fb [ci skip] Changed by Jenkins: 2366
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:40:43 +00:00
jenkins
e89bdac47d [ci skip] Changed by Jenkins: 2365
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:35:36 +00:00
jenkins
4038702841 [ci skip] Changed by Jenkins: 2364
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:30:50 +00:00
jenkins
7ced2d2a7b [ci skip] Changed by Jenkins: 2363
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:27:26 +00:00
jenkins
c53981f4a6 [ci skip] Changed by Jenkins: 2362
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:21:55 +00:00
jenkins
076dec27d5 [ci skip] Changed by Jenkins: 2361
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:16:30 +00:00
jenkins
5354aa8d0a [ci skip] Changed by Jenkins: 2360
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:12:54 +00:00
jenkins
12143c8e69 [ci skip] Changed by Jenkins: 2359
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:07:52 +00:00
jenkins
50519e9236 [ci skip] Changed by Jenkins: 2358
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 06:03:08 +00:00
jenkins
7f6d007c04 [ci skip] Changed by Jenkins: 2357
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:58:43 +00:00
jenkins
98be4f05cc [ci skip] Changed by Jenkins: 2356
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:54:03 +00:00
jenkins
79558e2168 [ci skip] Changed by Jenkins: 2355
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:49:44 +00:00
jenkins
b966241997 [ci skip] Changed by Jenkins: 2354
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:44:51 +00:00
jenkins
60a7384f88 [ci skip] Changed by Jenkins: 2353
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:39:58 +00:00
jenkins
76f225b996 [ci skip] Changed by Jenkins: 2352
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:36:10 +00:00
jenkins
37a25c6b29 [ci skip] Changed by Jenkins: 2351
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:30:37 +00:00
jenkins
6c45842387 [ci skip] Changed by Jenkins: 2350
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:25:39 +00:00
jenkins
d37b0866d5 [ci skip] Changed by Jenkins: 2349
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:22:22 +00:00
jenkins
270f244128 [ci skip] Changed by Jenkins: 2348
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:16:55 +00:00
jenkins
ebddf688c6 [ci skip] Changed by Jenkins: 2347
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:11:46 +00:00
jenkins
f1c572ecc9 [ci skip] Changed by Jenkins: 2346
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:08:27 +00:00
jenkins
af5361b6c3 [ci skip] Changed by Jenkins: 2345
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 05:03:06 +00:00
jenkins
6daf0eab4a [ci skip] Changed by Jenkins: 2344
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:58:02 +00:00
jenkins
66fe0e9534 [ci skip] Changed by Jenkins: 2343
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:53:55 +00:00
jenkins
75ccc6dda4 [ci skip] Changed by Jenkins: 2342
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:49:13 +00:00
jenkins
e45ec785d7 [ci skip] Changed by Jenkins: 2341
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:44:43 +00:00
jenkins
b067b50937 [ci skip] Changed by Jenkins: 2340
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:39:41 +00:00
jenkins
0c2e6364ac [ci skip] Changed by Jenkins: 2339
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:34:53 +00:00
jenkins
b232fb2c8e [ci skip] Changed by Jenkins: 2338
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:31:22 +00:00
jenkins
4a19694c1a [ci skip] Changed by Jenkins: 2337
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:26:15 +00:00
jenkins
af766abe54 [ci skip] Changed by Jenkins: 2336
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:21:18 +00:00
jenkins
6333d78eab [ci skip] Changed by Jenkins: 2335
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:17:52 +00:00
jenkins
c06fe315d8 [ci skip] Changed by Jenkins: 2334
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:12:49 +00:00
jenkins
bc1f44f0b7 [ci skip] Changed by Jenkins: 2333
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:07:54 +00:00
jenkins
95bb8da8b7 [ci skip] Changed by Jenkins: 2332
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 04:04:15 +00:00
jenkins
68f8ff9cdd [ci skip] Changed by Jenkins: 2331
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:59:23 +00:00
jenkins
9e122fefd3 [ci skip] Changed by Jenkins: 2330
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:54:27 +00:00
jenkins
b47ead21be [ci skip] Changed by Jenkins: 2329
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:49:59 +00:00
jenkins
ebe43c3b27 [ci skip] Changed by Jenkins: 2328
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:45:21 +00:00
jenkins
686084f5cf [ci skip] Changed by Jenkins: 2327
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:40:56 +00:00
jenkins
0abaf15101 [ci skip] Changed by Jenkins: 2326
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:36:07 +00:00
jenkins
9dd2b5cdb5 [ci skip] Changed by Jenkins: 2325
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:31:28 +00:00
jenkins
2246a98bbb [ci skip] Changed by Jenkins: 2324
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:27:46 +00:00
jenkins
6265b66baf [ci skip] Changed by Jenkins: 2323
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:22:24 +00:00
jenkins
5488206588 [ci skip] Changed by Jenkins: 2322
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:17:37 +00:00
jenkins
b4f2042aa0 [ci skip] Changed by Jenkins: 2321
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:14:13 +00:00
jenkins
21dca2163b [ci skip] Changed by Jenkins: 2320
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:08:56 +00:00
jenkins
2bc02323ae [ci skip] Changed by Jenkins: 2319
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 03:03:55 +00:00
jenkins
8b073fb855 [ci skip] Changed by Jenkins: 2318
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:59:42 +00:00
jenkins
5d28b547a1 [ci skip] Changed by Jenkins: 2317
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:54:59 +00:00
jenkins
f2407dc12a [ci skip] Changed by Jenkins: 2316
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:50:27 +00:00
jenkins
f02b317cf4 [ci skip] Changed by Jenkins: 2315
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:45:35 +00:00
jenkins
270b774c33 [ci skip] Changed by Jenkins: 2314
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:40:55 +00:00
jenkins
864b72c82c [ci skip] Changed by Jenkins: 2313
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:37:12 +00:00
jenkins
c5716b0102 [ci skip] Changed by Jenkins: 2312
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:32:04 +00:00
jenkins
ad097121da [ci skip] Changed by Jenkins: 2311
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:27:18 +00:00
jenkins
79b33cff50 [ci skip] Changed by Jenkins: 2310
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:23:53 +00:00
jenkins
e01417f3b3 [ci skip] Changed by Jenkins: 2309
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:18:28 +00:00
jenkins
68ffc6f7d9 [ci skip] Changed by Jenkins: 2308
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:13:18 +00:00
jenkins
ef7cf410b9 [ci skip] Changed by Jenkins: 2307
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:08:49 +00:00
jenkins
151ba2563e [ci skip] Changed by Jenkins: 2306
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 02:04:04 +00:00
jenkins
78f4dca9a1 [ci skip] Changed by Jenkins: 2305
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:59:33 +00:00
jenkins
52bf963afd [ci skip] Changed by Jenkins: 2304
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:55:02 +00:00
jenkins
e6cfb85b8e [ci skip] Changed by Jenkins: 2303
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:50:24 +00:00
jenkins
6576e7cb6d [ci skip] Changed by Jenkins: 2302
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:46:19 +00:00
jenkins
7d7528ab4c [ci skip] Changed by Jenkins: 2301
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:41:07 +00:00
jenkins
34a79ec833 [ci skip] Changed by Jenkins: 2300
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:36:14 +00:00
jenkins
6cd5b0e5d7 [ci skip] Changed by Jenkins: 2299
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:32:38 +00:00
jenkins
412ddc01d1 [ci skip] Changed by Jenkins: 2298
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:27:32 +00:00
jenkins
10edf0728b [ci skip] Changed by Jenkins: 2297
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:22:40 +00:00
jenkins
57189ce4df [ci skip] Changed by Jenkins: 2296
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:18:05 +00:00
jenkins
e72f933014 [ci skip] Changed by Jenkins: 2295
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:13:27 +00:00
jenkins
782e7adb00 [ci skip] Changed by Jenkins: 2294
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:08:52 +00:00
jenkins
17b78476ee [ci skip] Changed by Jenkins: 2293
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 01:04:01 +00:00
jenkins
93630d5a09 [ci skip] Changed by Jenkins: 2292
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:59:21 +00:00
jenkins
79f09d0e0e [ci skip] Changed by Jenkins: 2291
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:55:15 +00:00
jenkins
02016eb404 [ci skip] Changed by Jenkins: 2290
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:50:40 +00:00
jenkins
59760ad201 [ci skip] Changed by Jenkins: 2289
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:45:44 +00:00
jenkins
6eca90abb6 [ci skip] Changed by Jenkins: 2288
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:41:31 +00:00
jenkins
b853b4d3f7 [ci skip] Changed by Jenkins: 2287
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:36:19 +00:00
jenkins
6e815e3442 [ci skip] Changed by Jenkins: 2286
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:31:19 +00:00
jenkins
befa82d0f6 [ci skip] Changed by Jenkins: 2285
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:27:12 +00:00
jenkins
5df0e6e423 [ci skip] Changed by Jenkins: 2284
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:22:27 +00:00
jenkins
669f93a327 [ci skip] Changed by Jenkins: 2283
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:17:41 +00:00
jenkins
73ff1fd47f [ci skip] Changed by Jenkins: 2282
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:13:28 +00:00
jenkins
e07c3aeb3d [ci skip] Changed by Jenkins: 2281
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:08:48 +00:00
jenkins
700b29c3d1 [ci skip] Changed by Jenkins: 2280
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-21 00:04:17 +00:00
jenkins
0ffdbfd3ca [ci skip] Changed by Jenkins: 2279
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:58:42 +00:00
jenkins
756db80b77 [ci skip] Changed by Jenkins: 2278
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:53:53 +00:00
jenkins
b2559be980 [ci skip] Changed by Jenkins: 2277
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:50:26 +00:00
jenkins
a9754a8eff [ci skip] Changed by Jenkins: 2276
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:44:53 +00:00
jenkins
d5961d4c96 [ci skip] Changed by Jenkins: 2275
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:40:03 +00:00
jenkins
56e35345fc [ci skip] Changed by Jenkins: 2274
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:36:15 +00:00
jenkins
9755f5a635 [ci skip] Changed by Jenkins: 2273
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:31:22 +00:00
jenkins
2ff1aff9f3 [ci skip] Changed by Jenkins: 2272
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:26:18 +00:00
jenkins
164ac7e3ad [ci skip] Changed by Jenkins: 2271
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:22:05 +00:00
jenkins
85a7e890bd [ci skip] Changed by Jenkins: 2270
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:17:20 +00:00
jenkins
8766293966 [ci skip] Changed by Jenkins: 2269
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:12:47 +00:00
jenkins
d2cad491b9 [ci skip] Changed by Jenkins: 2268
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:08:14 +00:00
jenkins
16d2c6abae [ci skip] Changed by Jenkins: 2267
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 23:03:36 +00:00
jenkins
a212b59d73 [ci skip] Changed by Jenkins: 2266
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:59:21 +00:00
jenkins
3574e34659 [ci skip] Changed by Jenkins: 2265
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:54:18 +00:00
jenkins
13704c6845 [ci skip] Changed by Jenkins: 2264
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:49:39 +00:00
jenkins
bbe337d115 [ci skip] Changed by Jenkins: 2263
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:45:43 +00:00
jenkins
e1b6e59b6a [ci skip] Changed by Jenkins: 2262
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:40:29 +00:00
jenkins
3685644888 [ci skip] Changed by Jenkins: 2261
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:35:31 +00:00
jenkins
050adcbc0f [ci skip] Changed by Jenkins: 2260
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:32:05 +00:00
jenkins
0a12005d5d [ci skip] Changed by Jenkins: 2259
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:26:59 +00:00
jenkins
8a4644049b [ci skip] Changed by Jenkins: 2258
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:21:55 +00:00
jenkins
ca7e5e03be [ci skip] Changed by Jenkins: 2257
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:17:41 +00:00
jenkins
a1ceabec47 [ci skip] Changed by Jenkins: 2256
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:13:00 +00:00
jenkins
917b875732 [ci skip] Changed by Jenkins: 2255
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:08:15 +00:00
jenkins
7df2004671 [ci skip] Changed by Jenkins: 2254
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 22:03:04 +00:00
jenkins
c50a79d723 [ci skip] Changed by Jenkins: 2253
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:58:10 +00:00
jenkins
519d789281 [ci skip] Changed by Jenkins: 2252
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:54:40 +00:00
jenkins
b5038e9661 [ci skip] Changed by Jenkins: 2251
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:49:31 +00:00
jenkins
bab69698c6 [ci skip] Changed by Jenkins: 2250
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:44:35 +00:00
jenkins
5c6ea6a391 [ci skip] Changed by Jenkins: 2249
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:40:39 +00:00
jenkins
328edc396b [ci skip] Changed by Jenkins: 2248
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:35:40 +00:00
jenkins
9cd8b81149 [ci skip] Changed by Jenkins: 2247
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:30:57 +00:00
jenkins
80e1f8042e [ci skip] Changed by Jenkins: 2246
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:26:44 +00:00
jenkins
1a1bdb314e [ci skip] Changed by Jenkins: 2245
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:22:06 +00:00
jenkins
51ec1bd3b4 [ci skip] Changed by Jenkins: 2244
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:17:45 +00:00
jenkins
c8440ca536 [ci skip] Changed by Jenkins: 2243
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:12:51 +00:00
jenkins
889d1b4f9e [ci skip] Changed by Jenkins: 2242
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:08:16 +00:00
jenkins
97b458e812 [ci skip] Changed by Jenkins: 2241
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 21:04:14 +00:00
jenkins
0378565b88 [ci skip] Changed by Jenkins: 2240
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:59:03 +00:00
jenkins
8ca8874707 [ci skip] Changed by Jenkins: 2239
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:53:57 +00:00
jenkins
dc2772aabf [ci skip] Changed by Jenkins: 2238
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:50:45 +00:00
jenkins
ce0e561a3f [ci skip] Changed by Jenkins: 2237
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:45:22 +00:00
jenkins
ba9aab03a9 [ci skip] Changed by Jenkins: 2236
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:40:28 +00:00
jenkins
f10686423d [ci skip] Changed by Jenkins: 2235
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:36:10 +00:00
jenkins
c1688f68c2 [ci skip] Changed by Jenkins: 2234
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:31:07 +00:00
jenkins
c916b2f155 [ci skip] Changed by Jenkins: 2233
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:26:38 +00:00
jenkins
5df9ac295d [ci skip] Changed by Jenkins: 2232
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:21:27 +00:00
jenkins
065a45dc98 [ci skip] Changed by Jenkins: 2231
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:16:45 +00:00
jenkins
6b66777699 [ci skip] Changed by Jenkins: 2230
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:13:16 +00:00
jenkins
9927ba0929 [ci skip] Changed by Jenkins: 2229
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:08:06 +00:00
jenkins
a05a29703c [ci skip] Changed by Jenkins: 2228
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:03:14 +00:00
jenkins
76952cac67 [ci skip] Changed by Jenkins: 2227
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 20:00:11 +00:00
jenkins
9b27a997f3 [ci skip] Changed by Jenkins: 2226
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:55:10 +00:00
jenkins
014e3143fd [ci skip] Changed by Jenkins: 2225
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:49:25 +00:00
jenkins
7eaf1686e1 [ci skip] Changed by Jenkins: 2224
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:45:29 +00:00
jenkins
d4bf2a6667 [ci skip] Changed by Jenkins: 2223
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:40:20 +00:00
jenkins
9d7cf637ee [ci skip] Changed by Jenkins: 2222
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:35:28 +00:00
jenkins
979f80ce89 [ci skip] Changed by Jenkins: 2221
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:31:06 +00:00
jenkins
c677a9b639 [ci skip] Changed by Jenkins: 2220
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:26:28 +00:00
jenkins
9440b91d90 [ci skip] Changed by Jenkins: 2219
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:22:00 +00:00
jenkins
2b18167761 [ci skip] Changed by Jenkins: 2218
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:17:12 +00:00
jenkins
da8b2f1d3a [ci skip] Changed by Jenkins: 2217
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:12:23 +00:00
jenkins
10e4e6abc6 [ci skip] Changed by Jenkins: 2216
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:08:42 +00:00
jenkins
6acfe7c32f [ci skip] Changed by Jenkins: 2215
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 19:03:43 +00:00
jenkins
d08c1b2008 [ci skip] Changed by Jenkins: 2214
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:59:00 +00:00
jenkins
a47e1d9a63 [ci skip] Changed by Jenkins: 2213
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:55:36 +00:00
jenkins
4187522739 [ci skip] Changed by Jenkins: 2212
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:50:18 +00:00
jenkins
c0d0088f6e [ci skip] Changed by Jenkins: 2211
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:45:22 +00:00
jenkins
d43dff3085 [ci skip] Changed by Jenkins: 2210
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:41:54 +00:00
jenkins
9a04e1f848 [ci skip] Changed by Jenkins: 2209
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:36:47 +00:00
jenkins
621773a6f1 [ci skip] Changed by Jenkins: 2208
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:32:05 +00:00
jenkins
a9672c44bf [ci skip] Changed by Jenkins: 2207
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:28:14 +00:00
jenkins
155c212f89 [ci skip] Changed by Jenkins: 2206
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:22:58 +00:00
jenkins
ee35c3f1b8 [ci skip] Changed by Jenkins: 2205
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:18:04 +00:00
jenkins
0a405f5515 [ci skip] Changed by Jenkins: 2204
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:13:42 +00:00
jenkins
b618b7c40f [ci skip] Changed by Jenkins: 2203
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:09:03 +00:00
jenkins
f10e68c4ad [ci skip] Changed by Jenkins: 2202
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 18:04:31 +00:00
jenkins
870c3c2c77 [ci skip] Changed by Jenkins: 2201
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:59:26 +00:00
jenkins
1559f15c7f [ci skip] Changed by Jenkins: 2200
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:54:47 +00:00
jenkins
96345e54fb [ci skip] Changed by Jenkins: 2199
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:51:16 +00:00
jenkins
f61590c677 [ci skip] Changed by Jenkins: 2198
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:45:57 +00:00
jenkins
6f1ec4a17a [ci skip] Changed by Jenkins: 2197
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:41:02 +00:00
jenkins
786e9392b1 [ci skip] Changed by Jenkins: 2196
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:37:24 +00:00
jenkins
f229c25b8f [ci skip] Changed by Jenkins: 2195
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:32:15 +00:00
jenkins
9bdd1ff35f [ci skip] Changed by Jenkins: 2194
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:27:09 +00:00
jenkins
4dd7a15b30 [ci skip] Changed by Jenkins: 2193
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:22:59 +00:00
jenkins
a4aa7dbb7d [ci skip] Changed by Jenkins: 2192
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:17:51 +00:00
jenkins
681d2fe273 [ci skip] Changed by Jenkins: 2191
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 17:12:35 +00:00
78b7ef44d9 Update Jenkinsfile.develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2023-10-20 12:20:03 +00:00
e19ca94653 Update Jenkinsfile 2023-10-20 12:19:52 +00:00
Willem Dantuma
a85378374b kick version
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
FarmMaps/FarmMapsLib/pipeline/head This commit looks good
2023-10-18 19:35:01 +02:00
103 changed files with 6280 additions and 2110 deletions

1
.gitignore vendored
View File

@@ -51,4 +51,5 @@ projects/common-map/node_modules/
.angular/* .angular/*
projects/common-map3d/node_modules/ projects/common-map3d/node_modules/
projects/common-map/node_modules/ projects/common-map/node_modules/
projects/ngx-openlayers/node_modules/
projects/common/node_modules/ projects/common/node_modules/

2
Jenkinsfile vendored
View File

@@ -4,7 +4,7 @@ pipeline {
agent any; agent any;
options { options {
copyArtifactPermission projectNames: env.allProjectsArtifactPermission; copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
disableConcurrentBuilds abortPrevious: true; disableConcurrentBuilds();
} }
stages { stages {
stage('FarmmapsLibBuildAll') { stage('FarmmapsLibBuildAll') {

View File

@@ -4,7 +4,7 @@ pipeline {
agent any; agent any;
options { options {
copyArtifactPermission projectNames: env.allProjectsArtifactPermission; copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
disableConcurrentBuilds abortPrevious: true; disableConcurrentBuilds();
} }
stages { stages {
stage('FarmmapsLibBuildAll') { stage('FarmmapsLibBuildAll') {

View File

@@ -215,7 +215,7 @@
"tsConfig": "projects/common-map/tsconfig.lib.prod.json" "tsConfig": "projects/common-map/tsconfig.lib.prod.json"
} }
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {
@@ -253,6 +253,43 @@
} }
} }
} }
},
"ngx-openlayers": {
"projectType": "library",
"root": "projects/ngx-openlayers",
"sourceRoot": "projects/ngx-openlayers/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-openlayers/tsconfig.lib.json",
"project": "projects/ngx-openlayers/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-openlayers/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-openlayers/src/test.ts",
"tsConfig": "projects/ngx-openlayers/tsconfig.spec.json",
"karmaConfig": "projects/ngx-openlayers/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/ngx-openlayers/**/*.ts",
"projects/ngx-openlayers/**/*.html"
]
}
}
}
} }
}, },
"cli": { "cli": {

4260
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "farmmaps-lib-app", "name": "farmmaps-lib-app",
"version": "3.5.0", "version": "4.2.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
@@ -23,6 +23,7 @@
"@farmmaps/common": "file:dist/common", "@farmmaps/common": "file:dist/common",
"@farmmaps/common-map": "file:dist/common-map", "@farmmaps/common-map": "file:dist/common-map",
"@farmmaps/common-map3d": "file:dist/common-map3d", "@farmmaps/common-map3d": "file:dist/common-map3d",
"ngx-openlayers": "file:dist/ngx-openlayers",
"@microsoft/signalr": "^3.1.16", "@microsoft/signalr": "^3.1.16",
"@ng-bootstrap/ng-bootstrap": "^13.0.0", "@ng-bootstrap/ng-bootstrap": "^13.0.0",
"@ngrx/effects": "^14", "@ngrx/effects": "^14",
@@ -42,9 +43,8 @@
"ngx-avatar": "^4.1.0", "ngx-avatar": "^4.1.0",
"ngx-clipboard": "^14.0.1", "ngx-clipboard": "^14.0.1",
"ngx-image-cropper": "^3.3.5", "ngx-image-cropper": "^3.3.5",
"ngx-openlayers": "1.0.0-next.19",
"ngx-uploadx": "^5.2.0", "ngx-uploadx": "^5.2.0",
"ol": "6.14.1", "ol": "~6.3.1",
"olcs": "^2.13.1", "olcs": "^2.13.1",
"resumablejs": "^1.1.0", "resumablejs": "^1.1.0",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",

View File

@@ -12,11 +12,11 @@
}, },
"peerDependencies": { "peerDependencies": {
"@angular/core": ">=14.0.0", "@angular/core": ">=14.0.0",
"@farmmaps/ngx-openlayers": "file:dist/ngx-openlayers",
"@ngrx/effects": ">=14.0.0", "@ngrx/effects": ">=14.0.0",
"@ngrx/router-store": ">=14.0.0", "@ngrx/router-store": ">=14.0.0",
"@ngrx/store": ">=14.0.0", "@ngrx/store": ">=14.0.0",
"ngrx-store-localstorage": ">=14.0.0", "ngrx-store-localstorage": ">=14.0.0",
"ngx-openlayers": ">=1.0.0-next.19",
"ol": ">=6.8.1", "ol": ">=6.8.1",
"tassign": ">=1.0.0" "tassign": ">=1.0.0"
} }

View File

@@ -14,7 +14,7 @@
"@ngrx/router-store":">=14.0.0", "@ngrx/router-store":">=14.0.0",
"@ngrx/store":">=14.0.0", "@ngrx/store":">=14.0.0",
"tassign": ">=1.0.0", "tassign": ">=1.0.0",
"ngx-openlayers": ">=1.0.0-next.19", "ngx-openlayers": "file:dist/ngx-openlayers",
"ol": ">=6.8.1" "ol": ">=6.8.1"
} }
} }

View File

@@ -18,6 +18,7 @@ export const SETPARENT = '[Map] SetParent';
export const SETPERIOD = '[Map] SetPeriod'; export const SETPERIOD = '[Map] SetPeriod';
export const STARTSEARCH = '[Map] StartSearch'; export const STARTSEARCH = '[Map] StartSearch';
export const STARTSEARCHSUCCESS = '[Map] StartSearchSuccess'; export const STARTSEARCHSUCCESS = '[Map] StartSearchSuccess';
export const CLICKFEATURE = '[Map] ClickFeature';
export const SELECTFEATURE = '[Map] SelectFeature'; export const SELECTFEATURE = '[Map] SelectFeature';
export const SELECTITEM = '[Map] SelectItem'; export const SELECTITEM = '[Map] SelectItem';
export const SELECTITEMSUCCESS = '[Map] SelectItemSuccess'; export const SELECTITEMSUCCESS = '[Map] SelectItemSuccess';
@@ -56,6 +57,7 @@ export const GETLAYERVALUE = '[Map] GetLayerValue'
export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess' export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide' export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
export const SETVIEWSTATE = '[Map] SetViewState' export const SETVIEWSTATE = '[Map] SetViewState'
export const CLEARFEATURES = '[Map] ClearFeatures';
export class Clear implements Action { export class Clear implements Action {
@@ -111,6 +113,12 @@ export class StartSearchSuccess implements Action {
constructor(public features: Array<Feature<Geometry>>, public query:IQueryState) { } constructor(public features: Array<Feature<Geometry>>, public query:IQueryState) { }
} }
export class ClickFeature implements Action {
readonly type = CLICKFEATURE;
constructor(public feature:Feature<Geometry>) { }
}
export class SelectFeature implements Action { export class SelectFeature implements Action {
readonly type = SELECTFEATURE; readonly type = SELECTFEATURE;
@@ -329,12 +337,18 @@ export class SetViewState implements Action {
constructor(public enabled:boolean) {} constructor(public enabled:boolean) {}
} }
export class ClearFeatures implements Action {
readonly type = CLEARFEATURES;
constructor() {}
}
export type Actions = SetMapState export type Actions = SetMapState
| Init | Init
| Clear | Clear
| SetParent | SetParent
| StartSearch | StartSearch
| StartSearchSuccess | StartSearchSuccess
| ClickFeature
| SelectFeature | SelectFeature
| SelectItem | SelectItem
| SelectItemSuccess | SelectItemSuccess
@@ -374,5 +388,6 @@ export type Actions = SetMapState
| GetLayerValue | GetLayerValue
| SetPeriod | SetPeriod
| ToggleShowDataLayerSlide | ToggleShowDataLayerSlide
| SetViewState; | SetViewState
| ClearFeatures;

View File

@@ -64,9 +64,9 @@ export class FeatureListContainerComponent {
viewContainerRef.clear(); viewContainerRef.clear();
if(showItem) { if(showItem) {
this.componentRef = viewContainerRef.createComponent(componentFactory); this.componentRef = viewContainerRef.createComponent(componentFactory);
(<AbstractFeatureListComponent>this.componentRef.instance).features = null; (<AbstractFeatureListComponent>this.componentRef.instance).features = this.features;
(<AbstractFeatureListComponent>this.componentRef.instance).queryState = queryState; (<AbstractFeatureListComponent>this.componentRef.instance).queryState = this.queryState;
(<AbstractFeatureListComponent>this.componentRef.instance).selectedFeature = null; (<AbstractFeatureListComponent>this.componentRef.instance).selectedFeature = this.selectedFeature;
} }
} }

View File

@@ -23,6 +23,7 @@ export abstract class AbstractFeatureListComponent {
handleFeatureClick(feature:Feature<Geometry>) { handleFeatureClick(feature:Feature<Geometry>) {
if(feature) { if(feature) {
this.store.dispatch(new mapActions.ClickFeature(feature));
const action = this.getAction(feature); const action = this.getAction(feature);
this.store.dispatch(action); this.store.dispatch(action);
} }

View File

@@ -1,15 +1,15 @@
<div class="row ps-3"> <div class="row ps-3">
<div class="col-8 nopadding"><span i18n>Average</span>:</div> <div class="col-8 nopadding"><span i18n>Average</span>:</div>
<div class="col-4 pull-left nopadding">{{histogram.mean| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.mean)| number:'1.0-2'}}</div>
<div class="col-8 nopadding"><span i18n>Standard deviation</span>:</div> <div class="col-8 nopadding"><span i18n>Standard deviation</span>:</div>
<div class="col-4 pull-left nopadding">{{histogram.stddev| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.stddev)| number:'1.0-2'}}</div>
<div class="col-8 nopadding"><span i18n>Min</span>:</div> <div class="col-8 nopadding"><span i18n>Min</span>:</div>
<div class="col-4 pull-left nopadding">{{histogram.min| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.min)| number:'1.0-2'}}</div>
<div class="col-8 nopadding" ><span i18n>Max</span>:</div> <div class="col-8 nopadding" ><span i18n>Max</span>:</div>
<div class="col-4 pull-left nopadding">{{histogram.max| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.max)| number:'1.0-2'}}</div>
<ng-container *ngIf="showConfidenceInterval()"> <ng-container *ngIf="showConfidenceInterval()">
<div class="col-8 nopadding"><span i18n>Confidence interval</span>:</div> <div class="col-8 nopadding"><span i18n>Confidence interval</span>:</div>
<div class="col-4 pull-left nopadding">{{histogram.confidence * 100| number:'1.0-0'}}%</div> <div class="col-4 pull-left nopadding">{{ getScaledValue(histogram.confidence * 100)| number:'1.0-0'}}%</div>
</ng-container> </ng-container>
</div> </div>

View File

@@ -14,6 +14,17 @@ export class HistogramDetailsComponent {
@Input() @Input()
histogram: IHistogram; histogram: IHistogram;
@Input()
scale: number | null;
public getScaledValue(value: number): number {
let v = value;
if (this.scale && this.scale != 0) {
v = this.scale * value;
}
return v;
}
showConfidenceInterval(): boolean { showConfidenceInterval(): boolean {
return this.histogram.confidence != null && this.histogram.confidence !== 1; return this.histogram.confidence != null && this.histogram.confidence !== 1;
} }

View File

@@ -35,7 +35,7 @@
</ng-container> </ng-container>
<ng-template #histogram> <ng-template #histogram>
<fm-map-histogram-details [histogram]="layer.renderer.band.histogram"></fm-map-histogram-details> <fm-map-histogram-details [histogram]="layer.renderer.band.histogram" [scale]="layer.scale"></fm-map-histogram-details>
</ng-template> </ng-template>
</div> </div>
</td> </td>

View File

@@ -192,6 +192,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
} }
handleFeatureClick(feature: Feature<Geometry>) { handleFeatureClick(feature: Feature<Geometry>) {
this.store.dispatch(new mapActions.ClickFeature(feature));
this.clickedFeature.next(feature); this.clickedFeature.next(feature);
} }

View File

@@ -388,6 +388,9 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
case mapActions.CLEARLAYERS: { case mapActions.CLEARLAYERS: {
return tassign(state, {overlayLayers: [], selectedOverlayLayer: null}); return tassign(state, {overlayLayers: [], selectedOverlayLayer: null});
} }
case mapActions.CLEARFEATURES: {
return tassign(state, {features: [], selectedFeature: null});
}
case mapActions.SETVISIBILITY: { case mapActions.SETVISIBILITY: {
const a = action as mapActions.SetVisibility; const a = action as mapActions.SetVisibility;
if(state.selectedItemLayer == a.itemLayer) { if(state.selectedItemLayer == a.itemLayer) {

View File

@@ -7,7 +7,7 @@
"peerDependencies": { "peerDependencies": {
"@angular/common": ">=14.0.0", "@angular/common": ">=14.0.0",
"@angular/core": ">=14.0.0", "@angular/core": ">=14.0.0",
"ngx-openlayers": "1.0.0-next.19", "ngx-openlayers": "file:dist/ngx-openlayers",
"cesium": ">=1.82.1", "cesium": ">=1.82.1",
"ol-cesium": ">=2.13.0" "ol-cesium": ">=2.13.0"
}, },

View File

@@ -0,0 +1,56 @@
{
"extends": "../../.eslintrc.json",
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"projects/ngx-openlayers/tsconfig.lib.json",
"projects/ngx-openlayers/tsconfig.spec.json"
],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "aol",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "aol",
"style": "camelCase"
}
],
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"arrow-parens": [
"off",
"always"
],
"import/order": "off",
"no-underscore-dangle": "off"
}
},
{
"files": [
"*.html"
],
"rules": {}
}
]
}

View File

@@ -0,0 +1,10 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/ngx-openlayers",
"assets": [
"ngcc.config.js"
],
"lib": {
"entryFile": "src/public-api.ts"
}
}

View File

@@ -0,0 +1,3 @@
module.exports = {
ignorableDeepImportMatchers: [/ol\//]
};

View File

@@ -0,0 +1,12 @@
{
"name": "ngx-openlayers",
"version": "2.0.0",
"publishConfig": {
"registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
},
"peerDependencies": {
"@angular/common": ">=14.x.x",
"@angular/core": ">=14.x.x",
"ol": "^6.0.0"
}
}

View File

@@ -0,0 +1,18 @@
import { Component, ElementRef, OnInit } from '@angular/core';
import { Attribution } from 'ol/control';
@Component({
selector: 'aol-attribution',
template: '<ng-content></ng-content>',
})
export class AttributionComponent implements OnInit {
instance: Attribution;
html: string;
constructor(private elementRef: ElementRef) {}
ngOnInit() {
this.html = this.elementRef.nativeElement.innerHTML;
this.instance = new Attribution(this);
}
}

View File

@@ -0,0 +1,26 @@
import { AfterViewInit, Component, ContentChildren, Host, QueryList } from '@angular/core';
import { Attribution } from 'ol/control';
import { AttributionComponent } from './attribution.component';
import { SourceComponent } from './sources/source.component';
@Component({
selector: 'aol-attributions',
template: '<ng-content></ng-content>',
})
export class AttributionsComponent implements AfterViewInit {
@ContentChildren(AttributionComponent)
attributions: QueryList<AttributionComponent>;
instance: Array<Attribution>;
constructor(@Host() private source: SourceComponent) {}
/* we can do this at the very end */
ngAfterViewInit() {
if (this.attributions.length) {
this.instance = this.attributions.map((cmp) => cmp.instance);
// console.log('setting attributions:', this.instance);
this.source.instance.setAttributions(this.instance);
}
}
}

View File

@@ -0,0 +1,89 @@
import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Coordinate } from 'ol/coordinate';
import { transform } from 'ol/proj';
import { GeometryLinestringComponent } from './geom/geometrylinestring.component';
import { GeometryMultiLinestringComponent } from './geom/geometrymultilinestring.component';
import { GeometryMultiPointComponent } from './geom/geometrymultipoint.component';
import { GeometryMultiPolygonComponent } from './geom/geometrymultipolygon.component';
import { GeometryPolygonComponent } from './geom/geometrypolygon.component';
import { MapComponent } from './map.component';
@Component({
selector: 'aol-collection-coordinates',
template: ` <div class="aol-collection-coordinates"></div> `,
})
export class CollectionCoordinatesComponent implements OnChanges, OnInit {
@Input()
coordinates: Coordinate[] | Coordinate[][] | Coordinate[][][];
@Input()
srid = 'EPSG:3857';
private host: any;
private mapSrid = 'EPSG:3857';
constructor(
private map: MapComponent,
@Optional() geometryLinestring: GeometryLinestringComponent,
@Optional() geometryPolygon: GeometryPolygonComponent,
@Optional() geometryMultipoint: GeometryMultiPointComponent,
@Optional() geometryMultilinestring: GeometryMultiLinestringComponent,
@Optional() geometryMultipolygon: GeometryMultiPolygonComponent
) {
if (!!geometryLinestring) {
this.host = geometryLinestring;
} else if (!!geometryPolygon) {
this.host = geometryPolygon;
} else if (!!geometryMultipoint) {
this.host = geometryMultipoint;
} else if (!!geometryMultilinestring) {
this.host = geometryMultilinestring;
} else if (!!geometryMultipolygon) {
this.host = geometryMultipolygon;
} else {
throw new Error('aol-collection-coordinates must be a child of a geometry component');
}
}
ngOnInit() {
this.map.instance.on('change:view', (e) => this.onMapViewChanged(e));
this.mapSrid = this.map.instance.getView().getProjection().getCode();
this.transformCoordinates();
}
ngOnChanges(changes: SimpleChanges) {
this.transformCoordinates();
}
private onMapViewChanged(event) {
this.mapSrid = event.target.get(event.key).getProjection().getCode();
this.transformCoordinates();
}
private transformCoordinates() {
let transformedCoordinates: Coordinate[] | Coordinate[][] | Coordinate[][][];
if (this.srid === this.mapSrid) {
transformedCoordinates = this.coordinates;
} else {
switch (this.host.componentType) {
case 'geometry-linestring':
case 'geometry-multipoint':
transformedCoordinates = (this.coordinates as Coordinate[]).map((c) => transform(c, this.srid, this.mapSrid));
break;
case 'geometry-polygon':
case 'geometry-multilinestring':
transformedCoordinates = (this.coordinates as Coordinate[][]).map((cc) =>
cc.map((c) => transform(c, this.srid, this.mapSrid))
);
break;
case 'geometry-multipolygon':
transformedCoordinates = (this.coordinates as Coordinate[][][]).map((ccc) =>
ccc.map((cc) => cc.map((c) => transform(c, this.srid, this.mapSrid)))
);
break;
}
}
this.host.instance.setCoordinates(transformedCoordinates);
}
}

View File

@@ -0,0 +1,9 @@
import { Component, ElementRef } from '@angular/core';
@Component({
selector: 'aol-content',
template: '<ng-content></ng-content>',
})
export class ContentComponent {
constructor(public elementRef: ElementRef) {}
}

View File

@@ -0,0 +1,30 @@
import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
import { Attribution } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-attribution',
template: ``,
})
export class ControlAttributionComponent implements OnInit, OnDestroy {
@Input()
collapsible: boolean;
componentType = 'control';
instance: Attribution;
target: Element;
constructor(private map: MapComponent, private element: ElementRef) {}
ngOnInit() {
this.target = this.element.nativeElement;
// console.log('ol.control.Attribution init: ', this);
this.instance = new Attribution(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-attribution');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,33 @@
import { Component, ContentChild, OnDestroy, OnInit } from '@angular/core';
import { Control } from 'ol/control';
import { ContentComponent } from '../content.component';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control',
template: ` <ng-content></ng-content> `,
})
export class ControlComponent implements OnInit, OnDestroy {
@ContentChild(ContentComponent, { static: true })
content: ContentComponent;
componentType = 'control';
instance: Control;
element: Element;
constructor(private map: MapComponent) {}
ngOnInit() {
if (this.content) {
this.element = this.content.elementRef.nativeElement;
this.instance = new Control(this);
this.map.instance.addControl(this.instance);
}
}
ngOnDestroy() {
if (this.instance) {
this.map.instance.removeControl(this.instance);
}
}
}

View File

@@ -0,0 +1,42 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Collection } from 'ol';
import { Control, defaults } from 'ol/control';
import { Options as AttributionOptions } from 'ol/control/Attribution';
import { Options as RotateOptions } from 'ol/control/Rotate';
import { Options as ZoomOptions } from 'ol/control/Zoom';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-defaults',
template: '',
})
export class DefaultControlComponent implements OnInit, OnDestroy {
@Input()
attribution: boolean;
@Input()
attributionOptions: AttributionOptions;
@Input()
rotate: boolean;
@Input()
rotateOptions: RotateOptions;
@Input()
zoom: boolean;
@Input()
zoomOptions: ZoomOptions;
instance: Collection<Control>;
constructor(private map: MapComponent) {}
ngOnInit() {
// console.log('ol.control.defaults init: ', this);
this.instance = defaults(this);
this.instance.forEach((c) => this.map.instance.addControl(c));
}
ngOnDestroy() {
// console.log('removing aol-control-defaults');
this.instance.forEach((c) => this.map.instance.removeControl(c));
}
}

View File

@@ -0,0 +1,36 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { FullScreen } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-fullscreen',
template: ` <ng-content></ng-content> `,
})
export class ControlFullScreenComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
label: string;
@Input()
labelActive: string;
@Input()
tipLabel: string;
@Input()
keys: boolean;
instance: FullScreen;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-fullscreen');
}
ngOnInit() {
this.instance = new FullScreen(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-fullscreen');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,33 @@
import { Component, ElementRef, Input, OnDestroy, OnInit } from '@angular/core';
import MousePosition from 'ol/control/MousePosition';
import { CoordinateFormat } from 'ol/coordinate';
import { ProjectionLike } from 'ol/proj';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-mouseposition',
template: ``,
})
export class ControlMousePositionComponent implements OnInit, OnDestroy {
@Input()
coordinateFormat: CoordinateFormat;
@Input()
projection: ProjectionLike;
target: Element;
instance: MousePosition;
constructor(private map: MapComponent, private element: ElementRef) {}
ngOnInit() {
this.target = this.element.nativeElement;
// console.log('ol.control.MousePosition init: ', this);
this.instance = new MousePosition(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-mouseposition');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,53 @@
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { View } from 'ol';
import { OverviewMap } from 'ol/control';
import { Layer } from 'ol/layer';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-overviewmap',
template: ` <ng-content></ng-content> `,
})
export class ControlOverviewMapComponent implements OnInit, OnChanges, OnDestroy {
@Input()
collapsed: boolean;
@Input()
collapseLabel: string;
@Input()
collapsible: boolean;
@Input()
label: string;
@Input()
layers: Layer[];
@Input()
target: Element;
@Input()
tipLabel: string;
@Input()
view: View;
instance: OverviewMap;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new OverviewMap(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
this.map.instance.removeControl(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance != null && changes.hasOwnProperty('view')) {
this.reloadInstance();
}
}
private reloadInstance() {
this.map.instance.removeControl(this.instance);
this.instance = new OverviewMap(this);
this.map.instance.addControl(this.instance);
}
}

View File

@@ -0,0 +1,36 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Rotate } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-rotate',
template: ` <ng-content></ng-content> `,
})
export class ControlRotateComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
label: string;
@Input()
tipLabel: string;
@Input()
duration: number;
@Input()
autoHide: boolean;
instance: Rotate;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-rotate');
}
ngOnInit() {
this.instance = new Rotate(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-rotate');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,28 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ScaleLine } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-scaleline',
template: ` <ng-content></ng-content> `,
})
export class ControlScaleLineComponent implements OnInit, OnDestroy {
@Input()
units: string;
instance: ScaleLine;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-scaleline');
}
ngOnInit() {
this.instance = new ScaleLine(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-scaleline');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,38 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Zoom } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-zoom',
template: ` <ng-content></ng-content> `,
})
export class ControlZoomComponent implements OnInit, OnDestroy {
@Input()
duration: number;
@Input()
zoomInLabel: string | Node;
@Input()
zoomOutLabel: string | Node;
@Input()
zoomInTipLabel: string;
@Input()
zoomOutTipLabel: string;
@Input()
delta: number;
instance: Zoom;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-zoom');
}
ngOnInit() {
this.instance = new Zoom(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-zoom');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,34 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ZoomSlider } from 'ol/control';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-zoomslider',
template: ` <ng-content></ng-content> `,
})
export class ControlZoomSliderComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
duration: number;
@Input()
maxResolution: number;
@Input()
minResolution: number;
instance: ZoomSlider;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-zoomslider');
}
ngOnInit() {
this.instance = new ZoomSlider(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-zoomslider');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,35 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ZoomToExtent } from 'ol/control';
import { Extent } from 'ol/extent';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-control-zoomtoextent',
template: ` <ng-content></ng-content> `,
})
export class ControlZoomToExtentComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
label: string | Node;
@Input()
tipLabel: string;
@Input()
extent: Extent;
instance: ZoomToExtent;
constructor(private map: MapComponent) {
// console.log('instancing aol-control-zoomtoextent');
}
ngOnInit() {
this.instance = new ZoomToExtent(this);
this.map.instance.addControl(this.instance);
}
ngOnDestroy() {
// console.log('removing aol-control-zoomtoextent');
this.map.instance.removeControl(this.instance);
}
}

View File

@@ -0,0 +1,80 @@
import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
import { transform } from 'ol/proj';
import { GeometryCircleComponent } from './geom/geometrycircle.component';
import { GeometryPointComponent } from './geom/geometrypoint.component';
import { MapComponent } from './map.component';
import { OverlayComponent } from './overlay.component';
import { ViewComponent } from './view.component';
@Component({
selector: 'aol-coordinate',
template: ` <div class="aol-coordinate"></div> `,
})
export class CoordinateComponent implements OnChanges, OnInit {
@Input()
x: number;
@Input()
y: number;
@Input()
srid = 'EPSG:3857';
private host: any;
private mapSrid = 'EPSG:3857';
constructor(
private map: MapComponent,
@Optional() viewHost: ViewComponent,
@Optional() geometryPointHost: GeometryPointComponent,
@Optional() geometryCircleHost: GeometryCircleComponent,
@Optional() overlayHost: OverlayComponent
) {
// console.log('instancing aol-coordinate');
if (geometryPointHost !== null) {
this.host = geometryPointHost;
} else if (geometryCircleHost !== null) {
this.host = geometryCircleHost;
} else if (viewHost !== null) {
this.host = viewHost;
} else if (overlayHost !== null) {
this.host = overlayHost;
}
}
ngOnInit() {
this.map.instance.on('change:view', (e) => this.onMapViewChanged(e));
this.mapSrid = this.map.instance.getView().getProjection().getCode();
this.transformCoordinates();
}
ngOnChanges(changes: SimpleChanges) {
this.transformCoordinates();
}
private onMapViewChanged(event) {
this.mapSrid = event.target.get(event.key).getProjection().getCode();
this.transformCoordinates();
}
private transformCoordinates() {
let transformedCoordinates: number[];
if (this.srid === this.mapSrid) {
transformedCoordinates = [this.x, this.y];
} else {
transformedCoordinates = transform([this.x, this.y], this.srid, this.mapSrid);
}
switch (this.host.componentType) {
case 'geometry-point':
this.host.instance.setCoordinates(transformedCoordinates);
break;
case 'geometry-circle':
case 'view':
this.host.instance.setCenter(transformedCoordinates);
break;
case 'overlay':
this.host.instance.setPosition(transformedCoordinates);
break;
}
}
}

View File

@@ -0,0 +1,35 @@
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { Feature } from 'ol';
import { SourceVectorComponent } from './sources/vector.component';
@Component({
selector: 'aol-feature',
template: ` <ng-content></ng-content> `,
})
export class FeatureComponent implements OnInit, OnDestroy, OnChanges {
@Input()
id: string | number | undefined;
componentType = 'feature';
instance: Feature;
constructor(private host: SourceVectorComponent) {}
ngOnInit() {
this.instance = new Feature();
if (this.id !== undefined) {
this.instance.setId(this.id);
}
this.host.instance.addFeature(this.instance);
}
ngOnDestroy() {
this.host.instance.removeFeature(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance) {
this.instance.setId(this.id);
}
}
}

View File

@@ -0,0 +1,6 @@
import Feature from 'ol/format/Feature';
export class FormatComponent {
public instance: Feature;
public componentType = 'format';
}

View File

@@ -0,0 +1,30 @@
import { Component, forwardRef, Input } from '@angular/core';
import { MVT } from 'ol/format';
import { Geometry } from 'ol/geom';
import GeometryType from 'ol/geom/GeometryType';
import { FormatComponent } from './format.component';
@Component({
selector: 'aol-format-mvt',
template: '',
providers: [{ provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) }],
})
export class FormatMVTComponent extends FormatComponent {
@Input()
featureClass:
| ((geom: Geometry | { [k: string]: any }) => any)
| ((geom: GeometryType, arg2: number[], arg3: number[] | number[][], arg4: { [k: string]: any }) => any);
@Input()
geometryName: string;
@Input()
layerName: string;
@Input()
layers: string[];
instance: MVT;
constructor() {
super();
this.instance = new MVT(this);
}
}

View File

@@ -0,0 +1,28 @@
import { Component, Input, OnInit } from '@angular/core';
import { Circle } from 'ol/geom';
import { FeatureComponent } from '../feature.component';
import { MapComponent } from '../map.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
@Component({
selector: 'aol-geometry-circle',
template: ` <ng-content></ng-content> `,
})
export class GeometryCircleComponent extends SimpleGeometryComponent implements OnInit {
componentType = 'geometry-circle';
instance: Circle;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
// defaulting coordinates to [0,0]. To be overridden in child component.
this.instance = new Circle([0, 0]);
}
@Input()
get radius(): number {
return this.instance.getRadius();
}
set radius(radius: number) {
this.instance.setRadius(radius);
}
}

View File

@@ -0,0 +1,26 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { LineString } from 'ol/geom';
@Component({
selector: 'aol-geometry-linestring',
template: ` <ng-content></ng-content> `,
})
export class GeometryLinestringComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-linestring';
public instance: LineString;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new LineString([
[0, 0],
[1, 1],
]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,28 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { MultiLineString } from 'ol/geom';
@Component({
selector: 'aol-geometry-multilinestring',
template: ` <ng-content></ng-content> `,
})
export class GeometryMultiLinestringComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-multilinestring';
public instance: MultiLineString;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new MultiLineString([
[
[0, 0],
[1, 1],
],
]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,26 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { MultiPoint } from 'ol/geom';
@Component({
selector: 'aol-geometry-multipoint',
template: ` <ng-content></ng-content> `,
})
export class GeometryMultiPointComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-multipoint';
public instance: MultiPoint;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new MultiPoint([
[0, 0],
[1, 1],
]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,31 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { MultiPolygon } from 'ol/geom';
@Component({
selector: 'aol-geometry-multipolygon',
template: ` <ng-content></ng-content> `,
})
export class GeometryMultiPolygonComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-multipolygon';
public instance: MultiPolygon;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new MultiPolygon([
[
[
[0, 0],
[1, 1],
[0, 1],
],
],
]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,23 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { Point } from 'ol/geom';
@Component({
selector: 'aol-geometry-point',
template: ` <ng-content></ng-content> `,
})
export class GeometryPointComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-point';
public instance: Point;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new Point([0, 0]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,29 @@
import { Component, OnInit } from '@angular/core';
import { FeatureComponent } from '../feature.component';
import { SimpleGeometryComponent } from './simplegeometry.component';
import { MapComponent } from '../map.component';
import { Polygon } from 'ol/geom';
@Component({
selector: 'aol-geometry-polygon',
template: ` <ng-content></ng-content> `,
})
export class GeometryPolygonComponent extends SimpleGeometryComponent implements OnInit {
public componentType = 'geometry-polygon';
public instance: Polygon;
constructor(map: MapComponent, host: FeatureComponent) {
super(map, host);
}
ngOnInit() {
this.instance = new Polygon([
[
[0, 0],
[1, 1],
[0, 1],
],
]);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,18 @@
import { Directive, Input, OnInit } from '@angular/core';
import SimpleGeometry from 'ol/geom/SimpleGeometry';
import { FeatureComponent } from '../feature.component';
import { MapComponent } from '../map.component';
@Directive()
export abstract class SimpleGeometryComponent implements OnInit {
@Input() srid: string;
instance: SimpleGeometry;
componentType = 'simple-geometry';
constructor(protected map: MapComponent, protected host: FeatureComponent) {}
ngOnInit() {
this.host.instance.setGeometry(this.instance);
}
}

View File

@@ -0,0 +1,57 @@
import { AfterContentInit, Component, Input, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { Graticule } from 'ol';
import { Stroke } from 'ol/style';
import { MapComponent } from './map.component';
@Component({
selector: 'aol-graticule',
template: '<ng-content></ng-content>',
})
export class GraticuleComponent implements AfterContentInit, OnChanges, OnDestroy {
@Input()
strokeStyle: Stroke;
@Input()
showLabels: boolean;
@Input()
lonLabelPosition: number;
@Input()
latLabelPosition: number;
instance: any;
componentType = 'graticule';
constructor(private map: MapComponent) {}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
properties[key] = changes[key].currentValue;
}
}
if (properties) {
this.instance = new Graticule(properties);
}
this.instance.setMap(this.map.instance);
}
ngAfterContentInit(): void {
this.instance = new Graticule({
strokeStyle: this.strokeStyle,
showLabels: this.showLabels,
lonLabelPosition: this.lonLabelPosition,
latLabelPosition: this.latLabelPosition,
});
this.instance.setMap(this.map.instance);
}
ngOnDestroy(): void {
this.instance.setMap(null);
}
}

View File

@@ -0,0 +1,23 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { defaults, Interaction } from 'ol/interaction';
import { Collection } from 'ol';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-default',
template: '',
})
export class DefaultInteractionComponent implements OnInit, OnDestroy {
instance: Collection<Interaction>;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = defaults();
this.instance.forEach((i) => this.map.instance.addInteraction(i));
}
ngOnDestroy() {
this.instance.forEach((i) => this.map.instance.removeInteraction(i));
}
}

View File

@@ -0,0 +1,27 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { DoubleClickZoom } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-doubleclickzoom',
template: '',
})
export class DoubleClickZoomInteractionComponent implements OnInit, OnDestroy {
@Input()
duration: number;
@Input()
delta: number;
instance: DoubleClickZoom;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DoubleClickZoom(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,31 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import Feature from 'ol/format/Feature';
import { DragAndDrop } from 'ol/interaction';
import { ProjectionLike } from 'ol/proj';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-draganddrop',
template: '',
})
export class DragAndDropInteractionComponent implements OnInit, OnDestroy {
@Input()
formatConstructors: ((n: Feature) => any)[];
@Input()
projection: ProjectionLike;
@Input()
target: Element;
instance: DragAndDrop;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragAndDrop(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,31 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Condition } from 'ol/events/condition';
import { DragBox } from 'ol/interaction';
import { EndCondition } from 'ol/interaction/DragBox';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-dragbox',
template: '',
})
export class DragBoxInteractionComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
condition: Condition;
@Input()
boxEndCondition: EndCondition;
instance: DragBox;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragBox(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,29 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import Kinetic from 'ol/Kinetic';
import { Condition } from 'ol/events/condition';
import { DragPan } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-dragpan',
template: '',
})
export class DragPanInteractionComponent implements OnInit, OnDestroy {
@Input()
condition: Condition;
@Input()
kinetic: Kinetic;
instance: DragPan;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragPan(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,28 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Condition } from 'ol/events/condition';
import { DragRotate } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-dragrotate',
template: '',
})
export class DragRotateInteractionComponent implements OnInit, OnDestroy {
@Input()
condition: Condition;
@Input()
duration: number;
instance: DragRotate;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragRotate(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,28 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Condition } from 'ol/events/condition';
import { DragRotateAndZoom } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-dragrotateandzoom',
template: '',
})
export class DragRotateAndZoomInteractionComponent implements OnInit, OnDestroy {
@Input()
condition: Condition;
@Input()
duration: number;
instance: DragRotateAndZoom;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragRotateAndZoom(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,32 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Condition } from 'ol/events/condition';
import { DragZoom } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-dragzoom',
template: '',
})
export class DragZoomInteractionComponent implements OnInit, OnDestroy {
@Input()
className: string;
@Input()
condition: Condition;
@Input()
duration: number;
@Input()
out: boolean;
instance: DragZoom;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new DragZoom(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,76 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Collection, Feature } from 'ol';
import { Condition } from 'ol/events/condition';
import GeometryType from 'ol/geom/GeometryType';
import { Draw } from 'ol/interaction';
import { DrawEvent, GeometryFunction } from 'ol/interaction/Draw';
import { Vector } from 'ol/source';
import { Style } from 'ol/style';
import { StyleFunction } from 'ol/style/Style';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-draw',
template: '',
})
export class DrawInteractionComponent implements OnInit, OnDestroy {
@Input()
clickTolerance?: number;
@Input()
features?: Collection<Feature>;
@Input()
source?: Vector;
@Input()
snapTolerance?: number;
@Input()
type: GeometryType;
@Input()
maxPoints?: number;
@Input()
minPoints?: number;
@Input()
finishCondition?: Condition;
@Input()
style?: Style | Style[] | StyleFunction;
@Input()
geometryFunction?: GeometryFunction;
@Input()
geometryName?: string;
@Input()
condition?: Condition;
@Input()
freehandCondition?: Condition;
@Input()
freehand?: boolean;
@Input()
wrapX?: boolean;
@Output()
olChange = new EventEmitter<DrawEvent>();
@Output()
olChangeActive = new EventEmitter<DrawEvent>();
@Output()
drawEnd = new EventEmitter<DrawEvent>();
@Output()
drawStart = new EventEmitter<DrawEvent>();
@Output()
propertyChange = new EventEmitter<DrawEvent>();
instance: Draw;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new Draw(this);
this.instance.on('change', (event: DrawEvent) => this.olChange.emit(event));
this.instance.on('change:active', (event: DrawEvent) => this.olChangeActive.emit(event));
this.instance.on('drawend', (event: DrawEvent) => this.drawEnd.emit(event));
this.instance.on('drawstart', (event: DrawEvent) => this.drawStart.emit(event));
this.instance.on('propertychange', (event: DrawEvent) => this.propertyChange.emit(event));
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,59 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Collection, Feature } from 'ol';
import { Condition } from 'ol/events/condition';
import { Modify } from 'ol/interaction';
import { ModifyEvent } from 'ol/interaction/Modify';
import { Vector } from 'ol/source';
import { Style } from 'ol/style';
import { StyleFunction } from 'ol/style/Style';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-modify',
template: '',
})
export class ModifyInteractionComponent implements OnInit, OnDestroy {
@Input()
condition?: Condition;
@Input()
deleteCondition?: Condition;
@Input()
pixelTolerance?: number;
@Input()
style?: Style | Style[] | StyleFunction;
@Input()
features: Collection<Feature>;
@Input()
wrapX?: boolean;
@Input()
source?: Vector;
@Output()
modifyEnd = new EventEmitter<ModifyEvent>();
@Output()
modifyStart = new EventEmitter<ModifyEvent>();
@Output()
olChange = new EventEmitter<ModifyEvent>();
@Output()
olChangeActive = new EventEmitter<ModifyEvent>();
@Output()
propertyChange = new EventEmitter<ModifyEvent>();
instance: Modify;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new Modify(this);
this.instance.on('change', (event: ModifyEvent) => this.olChange.emit(event));
this.instance.on('change:active', (event: ModifyEvent) => this.olChangeActive.emit(event));
this.instance.on('propertychange', (event: ModifyEvent) => this.propertyChange.emit(event));
this.instance.on('modifyend', (event: ModifyEvent) => this.modifyEnd.emit(event));
this.instance.on('modifystart', (event: ModifyEvent) => this.modifyStart.emit(event));
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,29 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { MouseWheelZoom } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-mousewheelzoom',
template: '',
})
export class MouseWheelZoomInteractionComponent implements OnInit, OnDestroy {
@Input()
duration: number;
@Input()
timeout: number;
@Input()
useAnchor: boolean;
instance: MouseWheelZoom;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new MouseWheelZoom(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,27 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { PinchZoom } from 'ol/interaction';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-pinchzoom',
template: '',
})
export class PinchZoomInteractionComponent implements OnInit, OnDestroy {
@Input()
duration: number;
@Input()
constrainResolution: boolean;
instance: PinchZoom;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new PinchZoom(this);
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,61 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Collection, Feature } from 'ol';
import { Condition } from 'ol/events/condition';
import { Select } from 'ol/interaction';
import { FilterFunction, SelectEvent } from 'ol/interaction/Select';
import { Layer } from 'ol/layer';
import { Style } from 'ol/style';
import { StyleFunction } from 'ol/style/Style';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-select',
template: '',
})
export class SelectInteractionComponent implements OnInit, OnDestroy {
@Input()
addCondition?: Condition;
@Input()
condition?: Condition;
@Input()
layers?: Layer[] | ((layer: Layer) => boolean);
@Input()
style?: Style | Style[] | StyleFunction;
@Input()
removeCondition?: Condition;
@Input()
toggleCondition?: Condition;
@Input()
multi?: boolean;
@Input()
features?: Collection<Feature>;
@Input()
filter?: FilterFunction;
@Input()
wrapX?: boolean;
@Output()
olChange = new EventEmitter<SelectEvent>();
@Output()
olSelect = new EventEmitter<SelectEvent>();
@Output()
propertyChange = new EventEmitter<SelectEvent>();
instance: Select;
constructor(private map: MapComponent) {}
ngOnInit() {
this.instance = new Select(this);
this.instance.on('change', (event: SelectEvent) => this.olChange.emit(event));
this.instance.on('select', (event: SelectEvent) => this.olSelect.emit(event));
this.instance.on('propertychange', (event: SelectEvent) => this.propertyChange.emit(event));
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,56 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Collection, Feature } from 'ol';
import { Translate } from 'ol/interaction';
import { TranslateEvent } from 'ol/interaction/Translate';
import { Layer } from 'ol/layer';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-interaction-translate',
template: '',
})
export class TranslateInteractionComponent implements OnInit, OnDestroy {
@Input()
features?: Collection<Feature>;
@Input()
layers?: Layer[] | ((layer: Layer) => boolean);
@Input()
hitTolerance?: number;
@Output()
olChange: EventEmitter<TranslateEvent>;
@Output()
propertyChange: EventEmitter<TranslateEvent>;
@Output()
translateEnd: EventEmitter<TranslateEvent>;
@Output()
translateStart: EventEmitter<TranslateEvent>;
@Output()
translating: EventEmitter<TranslateEvent>;
instance: Translate;
constructor(private map: MapComponent) {
this.olChange = new EventEmitter<TranslateEvent>();
this.propertyChange = new EventEmitter<TranslateEvent>();
this.translateEnd = new EventEmitter<TranslateEvent>();
this.translateStart = new EventEmitter<TranslateEvent>();
this.translating = new EventEmitter<TranslateEvent>();
}
ngOnInit() {
this.instance = new Translate(this);
this.instance.on('change', (event: TranslateEvent) => this.olChange.emit(event));
this.instance.on('propertychange', (event: TranslateEvent) => this.propertyChange.emit(event));
this.instance.on('translateend', (event: TranslateEvent) => this.translateEnd.emit(event));
this.instance.on('translatestart', (event: TranslateEvent) => this.translateStart.emit(event));
this.instance.on('translating', (event: TranslateEvent) => this.translating.emit(event));
this.map.instance.addInteraction(this.instance);
}
ngOnDestroy() {
this.map.instance.removeInteraction(this.instance);
}
}

View File

@@ -0,0 +1,67 @@
import { Directive, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { Event } from 'ol/events';
import { Extent } from 'ol/extent';
import { MapComponent } from '../map.component';
import { LayerGroupComponent } from './layergroup.component';
@Directive()
export abstract class LayerComponent implements OnInit, OnChanges, OnDestroy {
@Input()
opacity: number;
@Input()
visible: boolean;
@Input()
extent: Extent;
@Input()
zIndex: number;
@Input()
minResolution: number;
@Input()
maxResolution: number;
@Input()
prerender: (evt: Event) => void;
@Input()
postrender: (evt: Event) => void;
instance: any;
componentType = 'layer';
constructor(protected host: MapComponent | LayerGroupComponent) {}
ngOnInit() {
if (this.prerender !== null && this.prerender !== undefined) {
this.instance.on('prerender', this.prerender);
}
if (this.postrender !== null && this.postrender !== undefined) {
this.instance.on('postrender', this.postrender);
}
this.host.instance.getLayers().push(this.instance);
}
ngOnDestroy() {
this.host.instance.getLayers().remove(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
properties[key] = changes[key].currentValue;
if (key === 'prerender') {
this.instance.un('prerender', changes[key].previousValue);
this.instance.on('prerender', changes[key].currentValue);
}
if (key === 'postrender') {
this.instance.un('postrender', changes[key].previousValue);
this.instance.on('postrender', changes[key].currentValue);
}
}
}
// console.log('changes detected in aol-layer, setting new properties: ', properties);
this.instance.setProperties(properties, false);
}
}

View File

@@ -0,0 +1,27 @@
import { Component, OnDestroy, OnInit, SkipSelf, Optional } from '@angular/core';
import { Group } from 'ol/layer';
import { LayerComponent } from './layer.component';
import { MapComponent } from '../map.component';
@Component({
selector: 'aol-layer-group',
template: ` <ng-content></ng-content> `,
})
export class LayerGroupComponent extends LayerComponent implements OnInit, OnDestroy {
public instance: Group;
constructor(
map: MapComponent,
@SkipSelf()
@Optional()
group?: LayerGroupComponent
) {
super(group || map);
}
ngOnInit() {
// console.log(`creating ol.layer.Group instance with:`, this);
this.instance = new Group(this);
super.ngOnInit();
}
}

View File

@@ -0,0 +1,40 @@
import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Extent } from 'ol/extent';
import { Image } from 'ol/layer';
import { MapComponent } from '../map.component';
import { LayerComponent } from './layer.component';
import { LayerGroupComponent } from './layergroup.component';
@Component({
selector: 'aol-layer-image',
template: ` <ng-content></ng-content> `,
})
export class LayerImageComponent extends LayerComponent implements OnInit, OnChanges {
@Input()
opacity: number;
@Input()
visible: boolean;
@Input()
extent: Extent;
@Input()
minResolution: number;
@Input()
maxResolution: number;
@Input()
zIndex: number;
source: Image;
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
super(group || map);
}
ngOnInit() {
this.instance = new Image(this);
super.ngOnInit();
}
ngOnChanges(changes: SimpleChanges) {
super.ngOnChanges(changes);
}
}

View File

@@ -0,0 +1,32 @@
import { Component, Input, OnChanges, OnDestroy, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Tile } from 'ol/layer';
import { MapComponent } from '../map.component';
import { LayerComponent } from './layer.component';
import { LayerGroupComponent } from './layergroup.component';
@Component({
selector: 'aol-layer-tile',
template: ` <ng-content></ng-content> `,
})
export class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
@Input()
preload: number;
@Input()
useInterimTilesOnError: boolean;
source: Tile;
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
super(group || map);
}
ngOnInit() {
// console.log('creating ol.layer.Tile instance with:', this);
this.instance = new Tile(this);
super.ngOnInit();
}
ngOnChanges(changes: SimpleChanges) {
super.ngOnChanges(changes);
}
}

View File

@@ -0,0 +1,41 @@
import { Component, Input, OnChanges, OnDestroy, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Vector } from 'ol/layer';
import { Style } from 'ol/style';
import { StyleFunction } from 'ol/style/Style';
import { MapComponent } from '../map.component';
import { LayerComponent } from './layer.component';
import { LayerGroupComponent } from './layergroup.component';
@Component({
selector: 'aol-layer-vector',
template: ` <ng-content></ng-content> `,
})
export class LayerVectorComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
@Input()
renderBuffer: number;
@Input()
style: Style | Style[] | StyleFunction;
@Input()
updateWhileAnimating: boolean;
@Input()
updateWhileInteracting: boolean;
source: Vector;
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
super(group || map);
}
ngOnInit() {
// console.log('creating ol.layer.Vector instance with:', this);
this.instance = new Vector(this);
super.ngOnInit();
}
ngOnChanges(changes: SimpleChanges) {
super.ngOnChanges(changes);
}
}

View File

@@ -0,0 +1,45 @@
import { Component, OnInit, Input, Optional, SimpleChanges, OnChanges } from '@angular/core';
import { VectorTile } from 'ol/layer';
import { RenderType } from 'ol/layer/VectorTile';
import { Feature } from 'ol';
import { Style } from 'ol/style';
import { MapComponent } from '../map.component';
import { LayerComponent } from './layer.component';
import { LayerGroupComponent } from './layergroup.component';
import { StyleFunction } from 'ol/style/Style';
@Component({
selector: 'aol-layer-vectortile',
template: ` <ng-content></ng-content> `,
})
export class LayerVectorTileComponent extends LayerComponent implements OnInit, OnChanges {
@Input()
renderBuffer: number;
@Input()
renderMode: RenderType | string;
/* not marked as optional in the typings */
@Input()
renderOrder: (feature1: Feature, feature2: Feature) => number;
@Input()
style: Style | Style[] | StyleFunction;
@Input()
updateWhileAnimating: boolean;
@Input()
updateWhileInteracting: boolean;
@Input()
visible: boolean;
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
super(group || map);
}
ngOnInit() {
// console.log('creating ol.layer.VectorTile instance with:', this);
this.instance = new VectorTile(this);
super.ngOnInit();
}
ngOnChanges(changes: SimpleChanges) {
super.ngOnChanges(changes);
}
}

View File

@@ -0,0 +1,122 @@
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
} from '@angular/core';
import Map from 'ol/Map';
import MapBrowserEvent from 'ol/MapBrowserEvent';
import MapEvent from 'ol/MapEvent';
import ObjectEvent from 'ol/Object';
import { Control } from 'ol/control';
import { Interaction } from 'ol/interaction';
import RenderEvent from 'ol/render/Event';
@Component({
selector: 'aol-map',
template: `
<div [style.width]="width" [style.height]="height"></div>
<ng-content></ng-content>
`,
})
export class MapComponent implements OnInit, AfterViewInit, OnChanges {
@Input()
width = '100%';
@Input()
height = '100%';
@Input()
pixelRatio: number;
@Input()
keyboardEventTarget: Element | string;
@Input()
loadTilesWhileAnimating: boolean;
@Input()
loadTilesWhileInteracting: boolean;
@Input()
logo: string | boolean;
@Input()
renderer: 'canvas' | 'webgl';
@Output()
olClick: EventEmitter<MapBrowserEvent>;
@Output()
dblClick: EventEmitter<MapBrowserEvent>;
@Output()
moveStart: EventEmitter<MapEvent>;
@Output()
moveEnd: EventEmitter<MapEvent>;
@Output()
pointerDrag: EventEmitter<MapBrowserEvent>;
@Output()
pointerMove: EventEmitter<MapBrowserEvent>;
@Output()
onpostrender: EventEmitter<RenderEvent>;
@Output()
postRender: EventEmitter<MapEvent>;
@Output()
onprerender: EventEmitter<RenderEvent>;
@Output()
propertyChange: EventEmitter<ObjectEvent>;
@Output()
singleClick: EventEmitter<MapBrowserEvent>;
instance: Map;
componentType = 'map';
// we pass empty arrays to not get default controls/interactions because we have our own directives
controls: Control[] = [];
interactions: Interaction[] = [];
constructor(private host: ElementRef) {
this.olClick = new EventEmitter<MapBrowserEvent>();
this.dblClick = new EventEmitter<MapBrowserEvent>();
this.moveStart = new EventEmitter<MapEvent>();
this.moveEnd = new EventEmitter<MapEvent>();
this.pointerDrag = new EventEmitter<MapBrowserEvent>();
this.pointerMove = new EventEmitter<MapBrowserEvent>();
this.onpostrender = new EventEmitter<RenderEvent>();
this.postRender = new EventEmitter<MapEvent>();
this.onprerender = new EventEmitter<RenderEvent>();
this.propertyChange = new EventEmitter<ObjectEvent>();
this.singleClick = new EventEmitter<MapBrowserEvent>();
}
ngOnInit() {
// console.log('creating ol.Map instance with:', this);
this.instance = new Map(this);
this.instance.setTarget(this.host.nativeElement.firstElementChild);
this.instance.on('click', (event: MapBrowserEvent) => this.olClick.emit(event));
this.instance.on('dblclick', (event: MapBrowserEvent) => this.dblClick.emit(event));
this.instance.on('movestart', (event: MapEvent) => this.moveStart.emit(event));
this.instance.on('moveend', (event: MapEvent) => this.moveEnd.emit(event));
this.instance.on('pointerdrag', (event: MapBrowserEvent) => this.pointerDrag.emit(event));
this.instance.on('pointermove', (event: MapBrowserEvent) => this.pointerMove.emit(event));
this.instance.on('postrender', (event: RenderEvent) => this.onpostrender.emit(event));
this.instance.on('postrender', (event: MapEvent) => this.postRender.emit(event));
this.instance.on('prerender', (event: RenderEvent) => this.onprerender.emit(event));
this.instance.on('propertychange', (event: ObjectEvent) => this.propertyChange.emit(event));
this.instance.on('singleclick', (event: MapBrowserEvent) => this.singleClick.emit(event));
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
properties[key] = changes[key].currentValue;
}
}
// console.log('changes detected in aol-map, setting new properties: ', properties);
this.instance.setProperties(properties, false);
}
ngAfterViewInit() {
this.instance.updateSize();
}
}

View File

@@ -0,0 +1,51 @@
import { Component, ContentChild, Input, OnDestroy, OnInit } from '@angular/core';
import { Overlay, PanOptions } from 'ol';
import OverlayPositioning from 'ol/OverlayPositioning';
import { ContentComponent } from './content.component';
import { MapComponent } from './map.component';
@Component({
selector: 'aol-overlay',
template: '<ng-content></ng-content>',
})
export class OverlayComponent implements OnInit, OnDestroy {
@ContentChild(ContentComponent, { static: true })
content: ContentComponent;
@Input()
id: number | string;
@Input()
offset: number[];
@Input()
positioning: OverlayPositioning | string;
@Input()
stopEvent: boolean;
@Input()
insertFirst: boolean;
@Input()
autoPan: boolean;
@Input()
autoPanAnimation: PanOptions;
@Input()
autoPanMargin: number;
componentType = 'overlay';
instance: Overlay;
element: Element;
constructor(private map: MapComponent) {}
ngOnInit() {
if (this.content) {
this.element = this.content.elementRef.nativeElement;
this.instance = new Overlay(this);
this.map.instance.addOverlay(this.instance);
}
}
ngOnDestroy() {
if (this.instance) {
this.map.instance.removeOverlay(this.instance);
}
}
}

View File

@@ -0,0 +1,42 @@
import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
import { LoadFunction } from 'ol/Tile';
import { BingMaps } from 'ol/source';
import { LayerTileComponent } from '../layers/layertile.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-bingmaps',
template: ` <div class="aol-source-bingmaps"></div> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceBingmapsComponent) }],
})
export class SourceBingmapsComponent extends SourceComponent implements OnInit {
@Input()
cacheSize: number;
@Input()
hidpi: boolean;
@Input()
culture: string;
@Input()
key: string;
@Input()
imagerySet: 'Road' | 'Aerial' | 'AerialWithLabels' | 'collinsBart' | 'ordnanceSurvey' = 'Aerial';
@Input()
maxZoom: number;
@Input()
reprojectionErrorThreshold: number;
@Input()
tileLoadFunction: LoadFunction;
@Input()
wrapX: boolean;
instance: BingMaps;
constructor(@Host() layer: LayerTileComponent) {
super(layer);
}
ngOnInit() {
this.instance = new BingMaps(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,53 @@
import {
AfterContentInit,
Component,
ContentChild,
forwardRef,
Host,
Input,
OnChanges,
SimpleChanges,
} from '@angular/core';
import { Feature } from 'ol';
import { Point } from 'ol/geom';
import { Cluster, Vector } from 'ol/source';
import { LayerVectorComponent } from '../layers/layervector.component';
import { SourceComponent } from './source.component';
import { SourceVectorComponent } from './vector.component';
@Component({
selector: 'aol-source-cluster',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceClusterComponent) }],
})
export class SourceClusterComponent extends SourceComponent implements AfterContentInit, OnChanges {
@Input()
distance: number;
@Input()
geometryFunction?: (feature: Feature) => Point;
@Input()
wrapX?: boolean;
@ContentChild(SourceVectorComponent)
sourceVectorComponent: SourceVectorComponent;
source: Vector;
instance: Cluster;
constructor(@Host() layer: LayerVectorComponent) {
super(layer);
}
ngAfterContentInit() {
this.source = this.sourceVectorComponent.instance;
this.instance = new Cluster(this);
this.host.instance.setSource(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance && changes.hasOwnProperty('distance')) {
this.instance.setDistance(this.distance);
}
}
}

View File

@@ -0,0 +1,36 @@
import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
import { Feature } from 'ol';
import { GeoJSON } from 'ol/format';
import { ProjectionLike } from 'ol/proj';
import { Vector } from 'ol/source';
import { LayerVectorComponent } from '../layers/layervector.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-geojson',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceGeoJSONComponent) }],
})
export class SourceGeoJSONComponent extends SourceComponent implements OnInit {
@Input()
defaultDataProjection: ProjectionLike;
@Input()
featureProjection: ProjectionLike;
@Input()
geometryName: string;
@Input()
url: string;
instance: Vector;
format: Feature;
constructor(@Host() layer: LayerVectorComponent) {
super(layer);
}
ngOnInit() {
this.format = new GeoJSON(this);
this.instance = new Vector(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,62 @@
import {
Component,
EventEmitter,
forwardRef,
Host,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
} from '@angular/core';
import { LoadFunction } from 'ol/Image';
import { ProjectionLike } from 'ol/proj';
import { ImageArcGISRest } from 'ol/source';
import { ImageSourceEvent } from 'ol/source/Image';
import { AttributionLike } from 'ol/source/Source';
import { LayerImageComponent } from '../layers/layerimage.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-imagearcgisrest',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceImageArcGISRestComponent) }],
})
export class SourceImageArcGISRestComponent extends SourceComponent implements OnInit, OnChanges {
@Input() projection: ProjectionLike | string;
@Input() url: string;
@Input() attributions: AttributionLike[];
@Input() crossOrigin?: string;
@Input() imageLoadFunction?: LoadFunction;
@Input() params?: { [k: string]: any };
@Input() ratio = 1.5;
@Input() resolutions?: number[];
@Input() wrapX?: boolean;
@Output()
imageLoadStart = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadEnd = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadError = new EventEmitter<ImageSourceEvent>();
instance: ImageArcGISRest;
constructor(@Host() layer: LayerImageComponent) {
super(layer);
}
ngOnInit() {
this.instance = new ImageArcGISRest(this);
this.host.instance.setSource(this.instance);
this.instance.on('imageloadstart', (event: ImageSourceEvent) => this.imageLoadStart.emit(event));
this.instance.on('imageloadend', (event: ImageSourceEvent) => this.imageLoadEnd.emit(event));
this.instance.on('imageloaderror', (event: ImageSourceEvent) => this.imageLoadError.emit(event));
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance && changes.hasOwnProperty('params')) {
this.instance.updateParams(this.params);
}
}
}

View File

@@ -0,0 +1,88 @@
import {
Component,
EventEmitter,
Host,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
forwardRef,
} from '@angular/core';
import { LoadFunction } from 'ol/Image';
import { Extent } from 'ol/extent';
import { ProjectionLike } from 'ol/proj';
import { Size } from 'ol/size';
import { ImageStatic } from 'ol/source';
import { ImageSourceEvent } from 'ol/source/Image';
import { AttributionLike } from 'ol/source/Source';
import { LayerImageComponent } from '../layers/layerimage.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-imagestatic',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceImageStaticComponent) }],
})
export class SourceImageStaticComponent extends SourceComponent implements OnInit, OnChanges {
@Input()
projection: ProjectionLike | string;
@Input()
imageExtent: Extent;
@Input()
url: string;
@Input()
attributions: AttributionLike;
@Input()
crossOrigin?: string;
@Input()
imageLoadFunction?: LoadFunction;
@Input()
imageSize?: Size;
@Output()
imageLoadStart = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadEnd = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadError = new EventEmitter<ImageSourceEvent>();
instance: ImageStatic;
constructor(@Host() layer: LayerImageComponent) {
super(layer);
}
setLayerSource(): void {
this.instance = new ImageStatic(this);
this.host.instance.setSource(this.instance);
this.instance.on('imageloadstart', (event: ImageSourceEvent) => this.imageLoadStart.emit(event));
this.instance.on('imageloadend', (event: ImageSourceEvent) => this.imageLoadEnd.emit(event));
this.instance.on('imageloaderror', (event: ImageSourceEvent) => this.imageLoadError.emit(event));
}
ngOnInit() {
this.setLayerSource();
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
switch (key) {
case 'url':
this.url = changes[key].currentValue;
this.setLayerSource();
break;
default:
break;
}
properties[key] = changes[key].currentValue;
}
}
this.instance.setProperties(properties, false);
}
}

View File

@@ -0,0 +1,73 @@
import {
Component,
Host,
Input,
OnChanges,
OnInit,
forwardRef,
SimpleChanges,
Output,
EventEmitter,
} from '@angular/core';
import { ImageWMS } from 'ol/source';
import { LayerImageComponent } from '../layers/layerimage.component';
import { SourceComponent } from './source.component';
import { ProjectionLike } from 'ol/proj';
import { AttributionLike } from 'ol/source/Source';
import { LoadFunction } from 'ol/Image';
import { ImageSourceEvent } from 'ol/source/Image';
@Component({
selector: 'aol-source-imagewms',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceImageWMSComponent) }],
})
export class SourceImageWMSComponent extends SourceComponent implements OnChanges, OnInit {
@Input()
attributions: AttributionLike;
@Input()
crossOrigin: string;
@Input()
hidpi: boolean;
@Input()
serverType: string;
@Input()
imageLoadFunction?: LoadFunction;
@Input()
params: { [key: string]: any };
@Input()
projection: ProjectionLike | string;
@Input()
ratio: number;
@Input()
resolutions: Array<number>;
@Input()
url: string;
@Output()
imageLoadStart = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadEnd = new EventEmitter<ImageSourceEvent>();
@Output()
imageLoadError = new EventEmitter<ImageSourceEvent>();
instance: ImageWMS;
constructor(@Host() layer: LayerImageComponent) {
super(layer);
}
ngOnInit() {
this.instance = new ImageWMS(this);
this.host.instance.setSource(this.instance);
this.instance.on('imageloadstart', (event: ImageSourceEvent) => this.imageLoadStart.emit(event));
this.instance.on('imageloadend', (event: ImageSourceEvent) => this.imageLoadEnd.emit(event));
this.instance.on('imageloaderror', (event: ImageSourceEvent) => this.imageLoadError.emit(event));
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance && changes.hasOwnProperty('params')) {
this.instance.updateParams(this.params);
}
}
}

View File

@@ -0,0 +1,64 @@
import { AfterContentInit, Component, EventEmitter, forwardRef, Host, Input, Optional, Output } from '@angular/core';
import { OSM } from 'ol/source';
import { AttributionLike } from 'ol/source/Source';
import { TileSourceEvent } from 'ol/source/Tile';
import { LoadFunction } from 'ol/Tile';
import { LayerTileComponent } from '../layers/layertile.component';
import { SourceComponent } from './source.component';
import { SourceXYZComponent } from './xyz.component';
@Component({
selector: 'aol-source-osm',
template: ` <div class="aol-source-osm"></div> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceOsmComponent) }],
})
export class SourceOsmComponent extends SourceXYZComponent implements AfterContentInit {
@Input()
attributions: AttributionLike;
@Input()
cacheSize: number;
@Input()
crossOrigin: string;
@Input()
maxZoom: number;
@Input()
opaque: boolean;
@Input()
reprojectionErrorThreshold: number;
@Input()
tileLoadFunction: LoadFunction;
@Input()
url: string;
@Input()
wrapX: boolean;
@Output()
tileLoadStart: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadEnd: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadError: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
instance: OSM;
constructor(
@Optional()
@Host()
protected layer?: LayerTileComponent
) {
super(layer);
}
ngAfterContentInit() {
if (this.tileGridXYZ) {
this.tileGrid = this.tileGridXYZ.instance;
}
this.instance = new OSM(this);
this.instance.on('tileloadstart', (event: TileSourceEvent) => this.tileLoadStart.emit(event));
this.instance.on('tileloadend', (event: TileSourceEvent) => this.tileLoadEnd.emit(event));
this.instance.on('tileloaderror', (event: TileSourceEvent) => this.tileLoadError.emit(event));
this._register(this.instance);
}
}

View File

@@ -0,0 +1,68 @@
import {
AfterContentInit,
Component,
ContentChild,
EventEmitter,
forwardRef,
Host,
Input,
Output,
} from '@angular/core';
import { Raster, Source } from 'ol/source';
import { Operation, RasterOperationType, RasterSourceEvent } from 'ol/source/Raster';
import { LayerImageComponent } from '../layers/layerimage.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-raster',
template: ` <ng-content></ng-content> `,
providers: [
{
provide: SourceComponent,
useExisting: forwardRef(() => SourceRasterComponent),
},
],
})
export class SourceRasterComponent extends SourceComponent implements AfterContentInit {
@Input()
operation?: Operation;
@Input()
threads?: number;
@Input()
lib?: any;
@Input()
operationType?: RasterOperationType;
@Output()
beforeOperations: EventEmitter<RasterSourceEvent> = new EventEmitter<RasterSourceEvent>();
@Output()
afterOperations: EventEmitter<RasterSourceEvent> = new EventEmitter<RasterSourceEvent>();
instance: Raster;
sources: Source[] = [];
constructor(@Host() layer: LayerImageComponent) {
super(layer);
}
@ContentChild(SourceComponent)
set source(sourceComponent: SourceComponent) {
this.sources = [sourceComponent.instance];
if (this.instance) {
// Openlayer doesn't handle sources update. Just recreate Raster instance.
this.init();
}
}
ngAfterContentInit() {
this.init();
}
init() {
this.instance = new Raster(this);
this.instance.on('beforeoperations', (event: RasterSourceEvent) => this.beforeOperations.emit(event));
this.instance.on('afteroperations', (event: RasterSourceEvent) => this.afterOperations.emit(event));
this._register(this.instance);
}
}

View File

@@ -0,0 +1,27 @@
import { Directive, Input, OnDestroy } from '@angular/core';
import { Source } from 'ol';
import { LayerComponent } from '../layers/layer.component';
@Directive()
export abstract class SourceComponent implements OnDestroy {
@Input()
attributions: any;
public instance: Source;
public componentType = 'source';
constructor(protected host: LayerComponent) {}
ngOnDestroy() {
if (this.host && this.host.instance) {
this.host.instance.setSource(null);
}
}
protected _register(s: Source) {
if (this.host) {
this.host.instance.setSource(s);
}
}
}

View File

@@ -0,0 +1,25 @@
import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
import { TileJSON } from 'ol/source';
import { LayerTileComponent } from '../layers/layertile.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-tilejson',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileJSONComponent) }],
})
export class SourceTileJSONComponent extends SourceComponent implements OnInit {
@Input()
url: string;
instance: TileJSON;
constructor(@Host() layer: LayerTileComponent) {
super(layer);
}
ngOnInit() {
this.instance = new TileJSON(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,57 @@
import { Component, Host, Input, OnChanges, OnInit, forwardRef, SimpleChanges } from '@angular/core';
import { LayerTileComponent } from '../layers/layertile.component';
import { SourceComponent } from './source.component';
import { TileWMS } from 'ol/source';
import { TileGrid } from 'ol/tilegrid';
import { LoadFunction } from 'ol/Tile';
@Component({
selector: 'aol-source-tilewms',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMSComponent) }],
})
export class SourceTileWMSComponent extends SourceComponent implements OnChanges, OnInit {
@Input()
cacheSize: number;
@Input()
crossOrigin: string;
@Input()
gutter: number;
@Input()
hidpi: boolean;
@Input()
params: { [key: string]: any };
@Input()
projection: string;
@Input()
reprojectionErrorThreshold: number;
@Input()
serverType: string;
@Input()
tileGrid: TileGrid;
@Input()
tileLoadFunction: LoadFunction;
@Input()
url: string;
@Input()
urls: string[];
@Input()
wrapX: boolean;
instance: TileWMS;
constructor(@Host() layer: LayerTileComponent) {
super(layer);
}
ngOnInit() {
this.instance = new TileWMS(this);
this.host.instance.setSource(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (this.instance && changes.hasOwnProperty('params')) {
this.instance.updateParams(this.params);
}
}
}

View File

@@ -0,0 +1,117 @@
import {
Component,
Host,
Input,
forwardRef,
AfterContentInit,
ContentChild,
SimpleChanges,
OnChanges,
Output,
EventEmitter,
} from '@angular/core';
import { LayerTileComponent } from '../layers/layertile.component';
import { SourceComponent } from './source.component';
import { TileGridWMTSComponent } from '../tilegridwmts.component';
import { WMTS } from 'ol/source';
import { WMTS as TileGridWMTS } from 'ol/tilegrid';
import { WMTSRequestEncoding } from 'ol/source';
import { ProjectionLike } from 'ol/proj';
import { LoadFunction } from 'ol/Tile';
import { TileSourceEvent } from 'ol/source/Tile';
@Component({
selector: 'aol-source-tilewmts',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceTileWMTSComponent) }],
})
export class SourceTileWMTSComponent extends SourceComponent implements AfterContentInit, OnChanges {
@Input()
cacheSize?: number;
@Input()
crossOrigin?: string;
@Input()
tileGrid: TileGridWMTS;
@Input()
projection: ProjectionLike;
@Input()
reprojectionErrorThreshold?: number;
@Input()
requestEncoding?: WMTSRequestEncoding | string;
@Input()
layer: string;
@Input()
style: string;
@Input()
tileClass?: any;
@Input()
tilePixelRatio?: number;
@Input()
version?: string;
@Input()
format?: string;
@Input()
matrixSet: string;
@Input()
dimensions?: any;
@Input()
url?: string;
@Input()
tileLoadFunction?: LoadFunction;
@Input()
urls?: string[];
@Input()
wrapX?: boolean;
@Output()
tileLoadStart: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadEnd: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadError: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@ContentChild(TileGridWMTSComponent)
tileGridWMTS: TileGridWMTSComponent;
instance: WMTS;
constructor(@Host() layer: LayerTileComponent) {
super(layer);
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
switch (key) {
case 'url':
this.url = changes[key].currentValue;
this.setLayerSource();
break;
default:
break;
}
properties[key] = changes[key].currentValue;
}
}
this.instance.setProperties(properties, false);
}
setLayerSource(): void {
this.instance = new WMTS(this);
this.instance.on('tileloadstart', (event: TileSourceEvent) => this.tileLoadStart.emit(event));
this.instance.on('tileloadend', (event: TileSourceEvent) => this.tileLoadEnd.emit(event));
this.instance.on('tileloaderror', (event: TileSourceEvent) => this.tileLoadError.emit(event));
this.host.instance.setSource(this.instance);
}
ngAfterContentInit(): void {
if (this.tileGridWMTS) {
this.tileGrid = this.tileGridWMTS.instance;
this.setLayerSource();
}
}
}

View File

@@ -0,0 +1,25 @@
import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
import { SourceComponent } from './source.component';
import { LayerTileComponent } from '../layers/layertile.component';
import { UTFGrid } from 'ol/source';
@Component({
selector: 'aol-source-utfgrid',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceUTFGridComponent) }],
})
export class SourceUTFGridComponent extends SourceComponent implements OnInit {
@Input() tileJSON: JSON;
@Input() url: string;
instance: UTFGrid;
constructor(@Host() layer: LayerTileComponent) {
super(layer);
}
ngOnInit() {
this.instance = new UTFGrid(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,37 @@
import { Component, Host, Input, OnInit, forwardRef } from '@angular/core';
import { Vector } from 'ol/source';
import Feature from 'ol/format/Feature';
import { LayerVectorComponent } from '../layers/layervector.component';
import { SourceComponent } from './source.component';
import { LoadingStrategy } from 'ol/source/Vector';
@Component({
selector: 'aol-source-vector',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceVectorComponent) }],
})
export class SourceVectorComponent extends SourceComponent implements OnInit {
@Input()
overlaps: boolean;
@Input()
useSpatialIndex: boolean;
@Input()
wrapX: boolean;
@Input()
url: string;
@Input()
format: Feature;
@Input()
strategy: LoadingStrategy;
instance: Vector;
constructor(@Host() layer: LayerVectorComponent) {
super(layer);
}
ngOnInit() {
this.instance = new Vector(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,57 @@
import { Component, Host, Input, forwardRef, ContentChild, AfterContentInit } from '@angular/core';
import { VectorTile } from 'ol';
import Feature from 'ol/format/Feature';
import TileGrid from 'ol/tilegrid/TileGrid';
import { LayerVectorTileComponent } from '../layers/layervectortile.component';
import { FormatComponent } from '../formats/format.component';
import { TileGridComponent } from '../tilegrid.component';
import { SourceComponent } from './source.component';
import { ProjectionLike } from 'ol/proj';
import { UrlFunction } from 'ol/Tile';
@Component({
selector: 'aol-source-vectortile',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceVectorTileComponent) }],
})
export class SourceVectorTileComponent extends SourceComponent implements AfterContentInit {
@Input()
cacheSize: number;
@Input()
overlaps: boolean;
@Input()
projection: ProjectionLike;
@Input()
tilePixelRatio: number;
@Input()
tileUrlFunction: UrlFunction;
@Input()
url: string;
@Input()
urls: string[];
@Input()
wrapX: boolean;
@ContentChild(FormatComponent)
formatComponent: FormatComponent;
@ContentChild(TileGridComponent)
tileGridComponent: TileGridComponent;
format: Feature;
tileGrid: TileGrid;
instance: VectorTile;
constructor(@Host() layer: LayerVectorTileComponent) {
super(layer);
}
/* need the children to construct the OL3 object */
ngAfterContentInit() {
this.format = this.formatComponent.instance;
this.tileGrid = this.tileGridComponent.instance;
// console.log('creating ol.source.VectorTile instance with:', this);
this.instance = new VectorTile(this);
this.host.instance.setSource(this.instance);
}
}

View File

@@ -0,0 +1,115 @@
import {
AfterContentInit,
Component,
ContentChild,
EventEmitter,
forwardRef,
Host,
Input,
OnChanges,
Optional,
Output,
SimpleChanges,
} from '@angular/core';
import { Size } from 'ol/size';
import { XYZ } from 'ol/source';
import { TileSourceEvent } from 'ol/source/Tile';
import { LoadFunction, UrlFunction } from 'ol/Tile';
import TileGrid from 'ol/tilegrid/TileGrid';
import { LayerTileComponent } from '../layers/layertile.component';
import { TileGridComponent } from '../tilegrid.component';
import { SourceComponent } from './source.component';
@Component({
selector: 'aol-source-xyz',
template: ` <ng-content></ng-content> `,
providers: [{ provide: SourceComponent, useExisting: forwardRef(() => SourceXYZComponent) }],
})
export class SourceXYZComponent extends SourceComponent implements AfterContentInit, OnChanges {
@Input()
cacheSize: number;
@Input()
crossOrigin: string;
@Input()
opaque: boolean;
@Input()
projection: string;
@Input()
reprojectionErrorThreshold: number;
@Input()
minZoom: number;
@Input()
maxZoom: number;
@Input()
tileGrid: TileGrid;
@Input()
tileLoadFunction?: LoadFunction;
@Input()
tilePixelRatio: number;
@Input()
tileSize: number | Size;
@Input()
tileUrlFunction?: UrlFunction;
@Input()
url: string;
@Input()
urls: string[];
@Input()
wrapX: boolean;
@ContentChild(TileGridComponent)
tileGridXYZ: TileGridComponent;
@Output()
tileLoadStart: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadEnd: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
@Output()
tileLoadError: EventEmitter<TileSourceEvent> = new EventEmitter<TileSourceEvent>();
instance: XYZ;
constructor(
@Optional()
@Host()
protected layer?: LayerTileComponent
) {
super(layer);
}
ngAfterContentInit() {
if (this.tileGridXYZ) {
this.tileGrid = this.tileGridXYZ.instance;
}
this.init();
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
properties[key] = changes[key].currentValue;
}
}
this.instance.setProperties(properties, false);
if (changes.hasOwnProperty('url')) {
this.init();
}
}
init() {
this.instance = new XYZ(this);
this.instance.on('tileloadstart', (event: TileSourceEvent) => this.tileLoadStart.emit(event));
this.instance.on('tileloadend', (event: TileSourceEvent) => this.tileLoadEnd.emit(event));
this.instance.on('tileloaderror', (event: TileSourceEvent) => this.tileLoadError.emit(event));
this._register(this.instance);
}
}

View File

@@ -0,0 +1,60 @@
import { Component, Input, Host, AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { AtlasManager, Circle, Fill, Stroke } from 'ol/style';
import { StyleComponent } from './style.component';
@Component({
selector: 'aol-style-circle',
template: ` <ng-content></ng-content> `,
})
export class StyleCircleComponent implements AfterContentInit, OnChanges, OnDestroy {
@Input()
fill: Fill;
@Input()
radius: number;
@Input()
snapToPixel: boolean;
@Input()
stroke: Stroke;
@Input()
atlasManager: AtlasManager;
componentType = 'style-circle';
instance: Circle;
constructor(@Host() private host: StyleComponent) {}
/**
* WORK-AROUND: since the re-rendering is not triggered on style change
* we trigger a radius change.
* see openlayers #6233 and #5775
*/
update() {
if (!!this.instance) {
// console.log('setting ol.style.Circle instance\'s radius');
this.instance.setRadius(this.radius);
}
this.host.update();
}
ngAfterContentInit() {
// console.log('creating ol.style.Circle instance with: ', this);
this.instance = new Circle(this);
this.host.instance.setImage(this.instance);
this.host.update();
}
ngOnChanges(changes: SimpleChanges) {
if (!this.instance) {
return;
}
if (changes.radius) {
this.instance.setRadius(changes.radius.currentValue);
}
// console.log('changes detected in aol-style-circle, setting new radius: ', changes['radius'].currentValue);
}
ngOnDestroy() {
// console.log('removing aol-style-circle');
this.host.instance.setImage(null);
}
}

View File

@@ -0,0 +1,70 @@
import { Component, Input, Optional, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { Fill } from 'ol/style';
import { StyleComponent } from './style.component';
import { StyleCircleComponent } from './circle.component';
import { StyleTextComponent } from './text.component';
import { Color } from 'ol/color';
import { ColorLike } from 'ol/colorlike';
@Component({
selector: 'aol-style-fill',
template: ` <div class="aol-style-fill"></div> `,
})
export class StyleFillComponent implements OnInit, OnChanges {
@Input()
color: Color | ColorLike;
instance: Fill;
/* the typings do not have the setters */
private host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/ any;
constructor(
@Optional() styleHost: StyleComponent,
@Optional() styleCircleHost: StyleCircleComponent,
@Optional() styleTextHost: StyleTextComponent
) {
if (!styleHost) {
throw new Error('aol-style-stroke must be a descendant of aol-style');
}
if (!!styleTextHost) {
this.host = styleTextHost;
} else if (!!styleCircleHost) {
this.host = styleCircleHost;
} else {
this.host = styleHost;
}
// console.log('creating aol-style-fill with: ', this);
}
ngOnInit() {
// console.log('creating ol.style.Fill instance with: ', this);
this.instance = new Fill(this);
switch (this.host.componentType) {
case 'style':
this.host.instance.setFill(this.instance);
// console.log('setting ol.style instance\'s fill:', this.host);
break;
case 'style-text':
this.host.instance.setFill(this.instance);
break;
case 'style-circle':
this.host.fill = this.instance;
// console.log('setting ol.style.circle instance\'s fill:', this.host);
break;
default:
throw new Error('unknown host type: ' + this.host);
// break;
}
}
ngOnChanges(changes: SimpleChanges) {
if (!this.instance) {
return;
}
if (changes.color) {
this.instance.setColor(changes.color.currentValue);
}
this.host.update();
// console.log('changes detected in aol-style-fill, setting new color: ', changes);
}
}

View File

@@ -0,0 +1,77 @@
import { Component, Input, Host, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { Icon } from 'ol/style';
import IconAnchorUnits from 'ol/style/IconAnchorUnits';
import IconOrigin from 'ol/style/IconOrigin';
import { StyleComponent } from './style.component';
@Component({
selector: 'aol-style-icon',
template: ` <div class="aol-style-icon"></div> `,
})
export class StyleIconComponent implements OnInit, OnChanges {
@Input()
anchor: [number, number];
@Input()
anchorXUnits: IconAnchorUnits;
@Input()
anchorYUnits: IconAnchorUnits;
@Input()
anchorOrigin: IconOrigin;
@Input()
color: [number, number, number, number];
@Input()
crossOrigin: IconOrigin;
@Input()
img: string;
@Input()
offset: [number, number];
@Input()
offsetOrigin: IconOrigin;
@Input()
opacity: number;
@Input()
scale: number;
@Input()
snapToPixel: boolean;
@Input()
rotateWithView: boolean;
@Input()
rotation: number;
@Input()
size: [number, number];
@Input()
imgSize: [number, number];
@Input()
src: string;
instance: Icon;
constructor(@Host() private host: StyleComponent) {}
ngOnInit() {
// console.log('creating ol.style.Icon instance with: ', this);
this.instance = new Icon(this);
this.host.instance.setImage(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (!this.instance) {
return;
}
if (changes.opacity) {
this.instance.setOpacity(changes.opacity.currentValue);
}
if (changes.rotation) {
this.instance.setRotation(changes.rotation.currentValue);
}
if (changes.scale) {
this.instance.setScale(changes.scale.currentValue);
}
if (changes.src) {
this.instance = new Icon(this);
this.host.instance.setImage(this.instance);
}
this.host.update();
// console.log('changes detected in aol-style-icon: ', changes);
}
}

View File

@@ -0,0 +1,95 @@
import { Component, Input, Optional, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { Stroke } from 'ol/style';
import { StyleComponent } from './style.component';
import { StyleCircleComponent } from './circle.component';
import { StyleTextComponent } from './text.component';
import { Color } from 'ol/color';
import { ColorLike } from 'ol/colorlike';
@Component({
selector: 'aol-style-stroke',
template: ` <div class="aol-style-stroke"></div> `,
})
export class StyleStrokeComponent implements OnInit, OnChanges {
@Input()
color: Color | ColorLike;
@Input()
lineCap: string;
@Input()
lineDash: number[];
@Input()
lineJoin: string;
@Input()
miterLimit: number;
@Input()
width: number;
instance: Stroke;
/* the typings do not have the setters */
host: /*StyleComponent|StyleCircleComponent|StyleTextComponent*/ any;
constructor(
@Optional() styleHost: StyleComponent,
@Optional() styleCircleHost: StyleCircleComponent,
@Optional() styleTextHost: StyleTextComponent
) {
if (!styleHost) {
throw new Error('aol-style-stroke must be a descendant of aol-style');
}
if (!!styleTextHost) {
this.host = styleTextHost;
} else if (!!styleCircleHost) {
this.host = styleCircleHost;
} else {
this.host = styleHost;
}
// console.log('creating aol-style-stroke with: ', this);
}
ngOnInit() {
// console.log('creating ol.style.Stroke instance with: ', this);
this.instance = new Stroke(this);
switch (this.host.componentType) {
case 'style':
this.host.instance.setStroke(this.instance);
// console.log('setting ol.style instance\'s stroke:', this.host);
break;
case 'style-text':
this.host.instance.setStroke(this.instance);
break;
case 'style-circle':
this.host.stroke = this.instance;
// console.log('setting ol.style.circle instance\'s stroke:', this.host);
break;
default:
throw new Error('unknown host type: ' + this.host);
// break;
}
}
ngOnChanges(changes: SimpleChanges) {
if (!this.instance) {
return;
}
if (changes.color) {
this.instance.setColor(changes.color.currentValue);
}
if (changes.lineCap) {
this.instance.setLineCap(changes.lineCap.currentValue);
}
if (changes.lineDash) {
this.instance.setLineDash(changes.lineDash.currentValue);
}
if (changes.lineJoin) {
this.instance.setLineJoin(changes.lineJoin.currentValue);
}
if (changes.miterLimit) {
this.instance.setMiterLimit(changes.miterLimit.currentValue);
}
if (changes.width) {
this.instance.setWidth(changes.width.currentValue);
}
this.host.update();
// console.log('changes detected in aol-style-stroke, setting new properties: ', changes);
}
}

View File

@@ -0,0 +1,48 @@
import { Component, Input, Optional, OnInit } from '@angular/core';
import { Fill, Image, Stroke, Style, Text } from 'ol/style';
import { Geometry } from 'ol/geom';
import { FeatureComponent } from '../feature.component';
import { LayerVectorComponent } from '../layers/layervector.component';
import { GeometryFunction } from 'ol/style/Style';
@Component({
selector: 'aol-style',
template: ` <ng-content></ng-content> `,
})
export class StyleComponent implements OnInit {
@Input()
geometry: string | Geometry | GeometryFunction;
@Input()
fill: Fill;
@Input()
image: Image;
@Input()
stroke: Stroke;
@Input()
text: Text;
@Input()
zIndex: number;
instance: Style;
componentType = 'style';
private host: FeatureComponent | LayerVectorComponent;
constructor(@Optional() featureHost: FeatureComponent, @Optional() layerHost: LayerVectorComponent) {
// console.log('creating aol-style');
this.host = !!featureHost ? featureHost : layerHost;
if (!this.host) {
throw new Error('aol-style must be applied to a feature or a layer');
}
}
update() {
// console.log('updating style\'s host: ', this.host);
this.host.instance.changed();
}
ngOnInit() {
// console.log('creating aol-style instance with: ', this);
this.instance = new Style(this);
this.host.instance.setStyle(this.instance);
}
}

View File

@@ -0,0 +1,76 @@
import { Component, Input, Optional, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { Text } from 'ol/style';
import { StyleComponent } from './style.component';
@Component({
selector: 'aol-style-text',
template: ` <div class="aol-style-text"></div> `,
})
export class StyleTextComponent implements OnInit, OnChanges {
@Input()
font: string | undefined;
@Input()
offsetX: number | undefined;
@Input()
offsetY: number | undefined;
@Input()
scale: number | undefined;
@Input()
rotateWithView: boolean | undefined;
@Input()
rotation: number | undefined;
@Input()
text: string | undefined;
@Input()
textAlign: string | undefined;
@Input()
textBaseLine: string | undefined;
instance: Text;
componentType = 'style-text';
constructor(@Optional() private host: StyleComponent) {
if (!host) {
throw new Error('aol-style-text must be a descendant of aol-style');
}
// console.log('creating aol-style-text with: ', this);
}
ngOnInit() {
// console.log('creating ol.style.Text instance with: ', this);
this.instance = new Text(this);
this.host.instance.setText(this.instance);
}
ngOnChanges(changes: SimpleChanges) {
if (!this.instance) {
return;
}
if (changes.font) {
this.instance.setFont(changes.font.currentValue);
}
if (changes.offsetX) {
this.instance.setOffsetX(changes.offsetX.currentValue);
}
if (changes.offsetY) {
this.instance.setOffsetY(changes.offsetY.currentValue);
}
if (changes.scale) {
this.instance.setScale(changes.scale.currentValue);
}
if (changes.rotation) {
this.instance.setRotation(changes.rotation.currentValue);
}
if (changes.text) {
this.instance.setText(changes.text.currentValue);
}
if (changes.textAlign) {
this.instance.setTextAlign(changes.textAlign.currentValue);
}
if (changes.textBaseLine) {
this.instance.setTextBaseline(changes.textBaseLine.currentValue);
}
this.host.update();
// console.log('changes detected in aol-style-text, setting new properties: ', changes);
}
}

View File

@@ -0,0 +1,43 @@
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { createXYZ } from 'ol/tilegrid';
import TileGrid from 'ol/tilegrid/TileGrid';
import { Extent } from 'ol/extent';
import { Coordinate } from 'ol/coordinate';
import { Size } from 'ol/size';
@Component({
selector: 'aol-tilegrid',
template: '',
})
export class TileGridComponent implements OnInit, OnChanges {
@Input()
extent: Extent;
@Input()
maxZoom: number;
@Input()
minZoom: number;
@Input()
tileSize: number | Size;
@Input()
origin?: Coordinate;
@Input()
resolutions: number[];
instance: TileGrid;
ngOnInit() {
if (!this.resolutions) {
this.instance = createXYZ(this);
} else {
this.instance = new TileGrid(this);
}
}
ngOnChanges(changes: SimpleChanges) {
if (!this.resolutions) {
this.instance = createXYZ(this);
} else {
this.instance = new TileGrid(this);
}
}
}

View File

@@ -0,0 +1,32 @@
import { Component, Input, OnInit } from '@angular/core';
import WMTS from 'ol/tilegrid/WMTS';
import { TileGridComponent } from './tilegrid.component';
import { Coordinate } from 'ol/coordinate';
import { Size } from 'ol/size';
@Component({
selector: 'aol-tilegrid-wmts',
template: '',
})
export class TileGridWMTSComponent extends TileGridComponent implements OnInit {
@Input()
origin?: Coordinate;
@Input()
origins?: Coordinate[];
@Input()
resolutions: number[];
@Input()
matrixIds: string[];
@Input()
sizes?: Size[];
@Input()
tileSizes?: (number | Size)[];
@Input()
widths?: number[];
instance: WMTS;
ngOnInit() {
this.instance = new WMTS(this);
}
}

View File

@@ -0,0 +1,116 @@
import { Component, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter, Output } from '@angular/core';
import View from 'ol/View';
import { MapComponent } from './map.component';
import { ObjectEvent } from 'ol';
import { Extent } from 'ol/extent';
import { Coordinate } from 'ol/coordinate';
@Component({
selector: 'aol-view',
template: ` <ng-content></ng-content> `,
})
export class ViewComponent implements OnInit, OnChanges, OnDestroy {
@Input()
constrainRotation: boolean | number;
@Input()
enableRotation: boolean;
@Input()
extent: Extent;
@Input()
maxResolution: number;
@Input()
minResolution: number;
@Input()
maxZoom: number;
@Input()
minZoom: number;
@Input()
resolution: number;
@Input()
resolutions: number[];
@Input()
rotation: number;
@Input()
zoom: number;
@Input()
zoomFactor: number;
@Input()
center: Coordinate;
@Input()
projection: string;
@Input()
constrainOnlyCenter: boolean;
@Input()
smoothExtentConstraint: boolean;
@Input()
constrainResolution: boolean;
@Input()
smoothResolutionConstraint: boolean;
@Input()
showFullExtent: boolean;
@Input()
multiWorld: boolean;
@Input()
zoomAnimation = false;
@Output()
changeZoom: EventEmitter<ObjectEvent> = new EventEmitter<ObjectEvent>();
@Output()
changeResolution: EventEmitter<ObjectEvent> = new EventEmitter<ObjectEvent>();
@Output()
changeCenter: EventEmitter<ObjectEvent> = new EventEmitter<ObjectEvent>();
instance: View;
componentType = 'view';
constructor(private host: MapComponent) {}
ngOnInit() {
// console.log('creating ol.View instance with: ', this);
this.instance = new View(this);
this.host.instance.setView(this.instance);
this.instance.on('change:zoom', (event: ObjectEvent) => this.changeZoom.emit(event));
this.instance.on('change:resolution', (event: ObjectEvent) => this.changeResolution.emit(event));
this.instance.on('change:center', (event: ObjectEvent) => this.changeCenter.emit(event));
}
ngOnChanges(changes: SimpleChanges) {
const properties: { [index: string]: any } = {};
if (!this.instance) {
return;
}
for (const key in changes) {
if (changes.hasOwnProperty(key)) {
switch (key) {
case 'zoom':
/** Work-around: setting the zoom via setProperties does not work. */
if (this.zoomAnimation) {
this.instance.animate({ zoom: changes[key].currentValue });
} else {
this.instance.setZoom(changes[key].currentValue);
}
break;
case 'projection':
this.instance = new View(this);
this.host.instance.setView(this.instance);
break;
case 'center':
/** Work-around: setting the center via setProperties does not work. */
this.instance.setCenter(changes[key].currentValue);
break;
default:
break;
}
properties[key] = changes[key].currentValue;
}
}
// console.log('changes detected in aol-view, setting new properties: ', properties);
this.instance.setProperties(properties, false);
}
ngOnDestroy() {
// console.log('removing aol-view');
}
}

View File

@@ -0,0 +1,246 @@
/*
* Public API Surface of ngx-openlayers
*/
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SimpleGeometryComponent } from './lib/geom/simplegeometry.component';
import { SourceComponent } from './lib/sources/source.component';
import { ViewComponent } from './lib/view.component';
import { GraticuleComponent } from './lib/graticule.component';
import { LayerGroupComponent } from './lib/layers/layergroup.component';
import { LayerImageComponent } from './lib/layers/layerimage.component';
import { LayerTileComponent } from './lib/layers/layertile.component';
import { MapComponent } from './lib/map.component';
import { LayerVectorComponent } from './lib/layers/layervector.component';
import { LayerVectorTileComponent } from './lib/layers/layervectortile.component';
import { SourceOsmComponent } from './lib/sources/osm.component';
import { SourceBingmapsComponent } from './lib/sources/bingmaps.component';
import { SourceClusterComponent } from './lib/sources/cluster.component';
import { SourceVectorComponent } from './lib/sources/vector.component';
import { SourceXYZComponent } from './lib/sources/xyz.component';
import { SourceTileWMTSComponent } from './lib/sources/tilewmts.component';
import { SourceVectorTileComponent } from './lib/sources/vectortile.component';
import { SourceTileWMSComponent } from './lib/sources/tilewms.component';
import { SourceTileJSONComponent } from './lib/sources/tilejson.component';
import { SourceGeoJSONComponent } from './lib/sources/geojson.component';
import { SourceImageStaticComponent } from './lib/sources/imagestatic.component';
import { SourceImageWMSComponent } from './lib/sources/imagewms.component';
import { SourceImageArcGISRestComponent } from './lib/sources/imagearcgisrest.component';
import { SourceRasterComponent } from './lib/sources/raster.component';
import { FeatureComponent } from './lib/feature.component';
import { GeometryCircleComponent } from './lib/geom/geometrycircle.component';
import { GeometryLinestringComponent } from './lib/geom/geometrylinestring.component';
import { GeometryMultiLinestringComponent } from './lib/geom/geometrymultilinestring.component';
import { GeometryMultiPointComponent } from './lib/geom/geometrymultipoint.component';
import { GeometryMultiPolygonComponent } from './lib/geom/geometrymultipolygon.component';
import { GeometryPointComponent } from './lib/geom/geometrypoint.component';
import { GeometryPolygonComponent } from './lib/geom/geometrypolygon.component';
import { CoordinateComponent } from './lib/coordinate.component';
import { CollectionCoordinatesComponent } from './lib/collectioncoordinates.component';
import { StyleComponent } from './lib/styles/style.component';
import { StyleCircleComponent } from './lib/styles/circle.component';
import { StyleStrokeComponent } from './lib/styles/stroke.component';
import { StyleIconComponent } from './lib/styles/icon.component';
import { StyleFillComponent } from './lib/styles/fill.component';
import { StyleTextComponent } from './lib/styles/text.component';
import { DefaultControlComponent } from './lib/controls/default.component';
import { ControlComponent } from './lib/controls/control.component';
import { ControlAttributionComponent } from './lib/controls/attribution.component';
import { ControlFullScreenComponent } from './lib/controls/fullscreen.component';
import { ControlMousePositionComponent } from './lib/controls/mouseposition.component';
import { ControlOverviewMapComponent } from './lib/controls/overviewmap.component';
import { ControlRotateComponent } from './lib/controls/rotate.component';
import { ControlScaleLineComponent } from './lib/controls/scaleline.component';
import { ControlZoomComponent } from './lib/controls/zoom.component';
import { ControlZoomSliderComponent } from './lib/controls/zoomslider.component';
import { ControlZoomToExtentComponent } from './lib/controls/zoomtoextent.component';
import { FormatMVTComponent } from './lib/formats/mvt.component';
import { TileGridComponent } from './lib/tilegrid.component';
import { TileGridWMTSComponent } from './lib/tilegridwmts.component';
import { DefaultInteractionComponent } from './lib/interactions/default.component';
import { DoubleClickZoomInteractionComponent } from './lib/interactions/doubleclickzoom.component';
import { DragAndDropInteractionComponent } from './lib/interactions/draganddrop.component';
import { DragBoxInteractionComponent } from './lib/interactions/dragbox.component';
import { DragPanInteractionComponent } from './lib/interactions/dragpan.component';
import { DragRotateInteractionComponent } from './lib/interactions/dragrotate.component';
import { DragRotateAndZoomInteractionComponent } from './lib/interactions/dragrotateandzoom.component';
import { DragZoomInteractionComponent } from './lib/interactions/dragzoom.component';
import { MouseWheelZoomInteractionComponent } from './lib/interactions/mousewheelzoom.component';
import { PinchZoomInteractionComponent } from './lib/interactions/pinchzoom.component';
import { DrawInteractionComponent } from './lib/interactions/draw.component';
import { SelectInteractionComponent } from './lib/interactions/select.component';
import { ModifyInteractionComponent } from './lib/interactions/modify.component';
import { TranslateInteractionComponent } from './lib/interactions/translate.component';
import { OverlayComponent } from './lib/overlay.component';
import { ContentComponent } from './lib/content.component';
import { AttributionsComponent } from './lib/attributions.component';
import { AttributionComponent } from './lib/attribution.component';
import { SourceUTFGridComponent } from './lib/sources/utfgrid.component';
import { LayerComponent } from './lib/layers/layer.component';
export {
MapComponent,
ViewComponent,
GraticuleComponent,
LayerComponent,
LayerGroupComponent,
LayerImageComponent,
LayerTileComponent,
LayerVectorComponent,
LayerVectorTileComponent,
SourceComponent,
SourceOsmComponent,
SourceBingmapsComponent,
SourceClusterComponent,
SourceUTFGridComponent,
SourceVectorComponent,
SourceXYZComponent,
SourceVectorTileComponent,
SourceTileWMSComponent,
SourceTileWMTSComponent,
SourceTileJSONComponent,
SourceGeoJSONComponent,
SourceImageStaticComponent,
SourceImageWMSComponent,
SourceRasterComponent,
SourceImageArcGISRestComponent,
SimpleGeometryComponent,
FeatureComponent,
GeometryLinestringComponent,
GeometryMultiLinestringComponent,
GeometryMultiPointComponent,
GeometryMultiPolygonComponent,
GeometryPointComponent,
GeometryPolygonComponent,
GeometryCircleComponent,
CoordinateComponent,
CollectionCoordinatesComponent,
StyleComponent,
StyleCircleComponent,
StyleFillComponent,
StyleIconComponent,
StyleStrokeComponent,
StyleTextComponent,
DefaultControlComponent,
ControlComponent,
ControlAttributionComponent,
ControlFullScreenComponent,
ControlMousePositionComponent,
ControlOverviewMapComponent,
ControlRotateComponent,
ControlScaleLineComponent,
ControlZoomComponent,
ControlZoomSliderComponent,
ControlZoomToExtentComponent,
FormatMVTComponent,
TileGridComponent,
TileGridWMTSComponent,
DefaultInteractionComponent,
DoubleClickZoomInteractionComponent,
DragAndDropInteractionComponent,
DragBoxInteractionComponent,
DragPanInteractionComponent,
DragRotateInteractionComponent,
DragRotateAndZoomInteractionComponent,
DragZoomInteractionComponent,
MouseWheelZoomInteractionComponent,
PinchZoomInteractionComponent,
DrawInteractionComponent,
SelectInteractionComponent,
ModifyInteractionComponent,
TranslateInteractionComponent,
OverlayComponent,
ContentComponent,
AttributionsComponent,
AttributionComponent,
};
const COMPONENTS = [
MapComponent,
ViewComponent,
GraticuleComponent,
LayerGroupComponent,
LayerImageComponent,
LayerTileComponent,
LayerVectorComponent,
LayerVectorTileComponent,
SourceOsmComponent,
SourceBingmapsComponent,
SourceClusterComponent,
SourceUTFGridComponent,
SourceVectorComponent,
SourceXYZComponent,
SourceVectorTileComponent,
SourceTileWMSComponent,
SourceTileWMTSComponent,
SourceTileJSONComponent,
SourceGeoJSONComponent,
SourceImageStaticComponent,
SourceImageWMSComponent,
SourceImageArcGISRestComponent,
SourceRasterComponent,
FeatureComponent,
GeometryLinestringComponent,
GeometryMultiLinestringComponent,
GeometryMultiPointComponent,
GeometryMultiPolygonComponent,
GeometryPointComponent,
GeometryPolygonComponent,
GeometryCircleComponent,
CoordinateComponent,
CollectionCoordinatesComponent,
StyleComponent,
StyleCircleComponent,
StyleFillComponent,
StyleIconComponent,
StyleStrokeComponent,
StyleTextComponent,
DefaultControlComponent,
ControlComponent,
ControlAttributionComponent,
ControlFullScreenComponent,
ControlMousePositionComponent,
ControlOverviewMapComponent,
ControlRotateComponent,
ControlScaleLineComponent,
ControlZoomComponent,
ControlZoomSliderComponent,
ControlZoomToExtentComponent,
FormatMVTComponent,
TileGridComponent,
TileGridWMTSComponent,
DefaultInteractionComponent,
DoubleClickZoomInteractionComponent,
DragAndDropInteractionComponent,
DragBoxInteractionComponent,
DragPanInteractionComponent,
DragRotateInteractionComponent,
DragRotateAndZoomInteractionComponent,
DragZoomInteractionComponent,
MouseWheelZoomInteractionComponent,
PinchZoomInteractionComponent,
DrawInteractionComponent,
SelectInteractionComponent,
ModifyInteractionComponent,
TranslateInteractionComponent,
OverlayComponent,
ContentComponent,
AttributionsComponent,
AttributionComponent,
];
@NgModule({
declarations: COMPONENTS,
imports: [CommonModule],
exports: COMPONENTS,
})
export class AngularOpenlayersModule {}

View File

@@ -0,0 +1,17 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: true },
});
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@@ -0,0 +1,24 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2020"
]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}

View File

@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
}
}

Some files were not shown because too many files have changed in this diff Show More