Compare commits
1215 Commits
v6.0.0-bet
...
v6.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55adb4ee33 | ||
|
|
7a28457518 | ||
|
|
42d8ea3a9a | ||
|
|
76955d74a7 | ||
|
|
3f21bc5265 | ||
|
|
4f44280ec7 | ||
|
|
a33bd0dea1 | ||
|
|
13147e0b82 | ||
|
|
9efb6b07eb | ||
|
|
443213e175 | ||
|
|
6a5f6e4363 | ||
|
|
ac8f8f4e88 | ||
|
|
346130065e | ||
|
|
8c3bf06dfa | ||
|
|
8b7d68676b | ||
|
|
391bae35f2 | ||
|
|
3c7b129106 | ||
|
|
596c9617ed | ||
|
|
70af56e200 | ||
|
|
e19d5d8412 | ||
|
|
fd594c2001 | ||
|
|
180e1c86fc | ||
|
|
e0d24d3af0 | ||
|
|
3a10476c1c | ||
|
|
8253c646b3 | ||
|
|
b56c8b6630 | ||
|
|
3eaeef9b93 | ||
|
|
53e2f432e7 | ||
|
|
8c19399d0b | ||
|
|
899af3e5c7 | ||
|
|
86d99fa35c | ||
|
|
8c7fc7d964 | ||
|
|
dc5a25b96b | ||
|
|
697d717613 | ||
|
|
5d4e77151c | ||
|
|
1e27846d6d | ||
|
|
d8f55ea3f1 | ||
|
|
56b03f06f7 | ||
|
|
09cad9b5f9 | ||
|
|
b629c25f5d | ||
|
|
838edfa369 | ||
|
|
09134a6091 | ||
|
|
858f0fc0cc | ||
|
|
28d157af56 | ||
|
|
9b3a9b5eca | ||
|
|
d5caabbbfc | ||
|
|
6ec69abdf6 | ||
|
|
1e93ede0b2 | ||
|
|
02e5e1776c | ||
|
|
687808cf2a | ||
|
|
b89c1255f7 | ||
|
|
7e4383f554 | ||
|
|
28fb7c5590 | ||
|
|
e28fa56edd | ||
|
|
d2e33a0df0 | ||
|
|
25d9fa1efe | ||
|
|
607f2f0746 | ||
|
|
7da3b60061 | ||
|
|
0732f17fd3 | ||
|
|
14a9002ee2 | ||
|
|
edc95abc3b | ||
|
|
54cbe14f88 | ||
|
|
965d0541f2 | ||
|
|
e1d9f8dd59 | ||
|
|
347f5df32e | ||
|
|
680372ac3f | ||
|
|
9e9aa66f5f | ||
|
|
34572da17b | ||
|
|
b8564d503a | ||
|
|
9e55a8b2f0 | ||
|
|
610a846149 | ||
|
|
a493ff7e93 | ||
|
|
2ccaed0ace | ||
|
|
38124d770b | ||
|
|
14b931371d | ||
|
|
24b4779bb6 | ||
|
|
68c052c9d5 | ||
|
|
4ad582ff01 | ||
|
|
6b5c2f47bb | ||
|
|
8611475477 | ||
|
|
7c5f144cf4 | ||
|
|
4fe157e7fb | ||
|
|
426cd754cd | ||
|
|
bb0b94fedf | ||
|
|
ff4006f8d6 | ||
|
|
8f7f76188a | ||
|
|
23c2999cab | ||
|
|
109f9718f9 | ||
|
|
b7ae47c4b7 | ||
|
|
bd7a31544d | ||
|
|
f4ba9dd9dc | ||
|
|
2b36445ecc | ||
|
|
4a37483294 | ||
|
|
b5519a317e | ||
|
|
0c8775b3c8 | ||
|
|
e88c964db3 | ||
|
|
0e4645e713 | ||
|
|
9cb96b23db | ||
|
|
678f9136c6 | ||
|
|
6927cb4328 | ||
|
|
b21961102f | ||
|
|
b1f0b6997b | ||
|
|
076b674d6f | ||
|
|
57c30b8d6d | ||
|
|
6204b9d3bf | ||
|
|
924255fafd | ||
|
|
7be4835144 | ||
|
|
8c4937170b | ||
|
|
c071c749eb | ||
|
|
fed6aef057 | ||
|
|
45b257d6ac | ||
|
|
30f19f8317 | ||
|
|
cb2c596a6d | ||
|
|
182ed012e2 | ||
|
|
a0df485736 | ||
|
|
b1196e7601 | ||
|
|
5711cd30d0 | ||
|
|
686c185de3 | ||
|
|
d4c1589a01 | ||
|
|
04738f494f | ||
|
|
30cbbfea9d | ||
|
|
3ed1a433fb | ||
|
|
66746a61bb | ||
|
|
4d7562fca2 | ||
|
|
82486899df | ||
|
|
75a553b37c | ||
|
|
6866f06375 | ||
|
|
f21d698915 | ||
|
|
ebecdc4a4c | ||
|
|
60c2c4e088 | ||
|
|
a139b01f8e | ||
|
|
a6b8d920b7 | ||
|
|
4de0c0b082 | ||
|
|
818bdc411c | ||
|
|
3992aede9d | ||
|
|
87e63ee4df | ||
|
|
b97647d39b | ||
|
|
167fa6b8a0 | ||
|
|
3c38a38570 | ||
|
|
acac7a9403 | ||
|
|
3838b68427 | ||
|
|
c65e802c71 | ||
|
|
449686527b | ||
|
|
16cc22371b | ||
|
|
0b89a88f22 | ||
|
|
ae82d4f2b1 | ||
|
|
db529a0d49 | ||
|
|
cf5b568cf8 | ||
|
|
5290486e23 | ||
|
|
f1f8568068 | ||
|
|
60378f2089 | ||
|
|
9daba2bb7d | ||
|
|
cae8c333f2 | ||
|
|
54d3af40dd | ||
|
|
57822aa6ff | ||
|
|
6525906a70 | ||
|
|
773ae437e4 | ||
|
|
4abb9c2fd0 | ||
|
|
5cb99d0f84 | ||
|
|
560dae7c45 | ||
|
|
5b5a3657f0 | ||
|
|
295c720645 | ||
|
|
e3d83598ad | ||
|
|
d749e244ed | ||
|
|
0bb5a07dee | ||
|
|
5630e278b9 | ||
|
|
2f498c9f58 | ||
|
|
90d38b428c | ||
|
|
9d125ee340 | ||
|
|
e780f2e3a3 | ||
|
|
4b35b920a1 | ||
|
|
800dbe72ad | ||
|
|
6a53ed3a68 | ||
|
|
b58c78c546 | ||
|
|
c03c359a20 | ||
|
|
f73d0b16ec | ||
|
|
38978eb23f | ||
|
|
9f9fdd018f | ||
|
|
c548593197 | ||
|
|
dd9e2e1f0c | ||
|
|
52125e7d9c | ||
|
|
e782f906ae | ||
|
|
c6d8db8cba | ||
|
|
a41f2fb82a | ||
|
|
745fa43aa7 | ||
|
|
89e8d6d693 | ||
|
|
c09ab8de69 | ||
|
|
b2885e86fb | ||
|
|
10326d0e81 | ||
|
|
33d2cc8cf1 | ||
|
|
55d556f743 | ||
|
|
a1df3ceb31 | ||
|
|
2ec513e883 | ||
|
|
85fd6f65bc | ||
|
|
4b9a89104d | ||
|
|
ae132643c7 | ||
|
|
763cc15c52 | ||
|
|
5c2e92191a | ||
|
|
9a0decf592 | ||
|
|
50be36fc43 | ||
|
|
1307068be3 | ||
|
|
abc6bfa521 | ||
|
|
accb55a165 | ||
|
|
cacf8ce695 | ||
|
|
43483ada19 | ||
|
|
c5b7b20967 | ||
|
|
5dfa96d552 | ||
|
|
f0cbc44860 | ||
|
|
6f09197a7b | ||
|
|
d1cf45f767 | ||
|
|
61f49c2764 | ||
|
|
ee06688bb6 | ||
|
|
6e05fa123b | ||
|
|
2951022614 | ||
|
|
f43098a94a | ||
|
|
120108c8da | ||
|
|
7c9ebf8b1b | ||
|
|
5bff4c051e | ||
|
|
a4a0414eeb | ||
|
|
dc420c53a4 | ||
|
|
4161831e29 | ||
|
|
c897089119 | ||
|
|
9366dee233 | ||
|
|
ebfb20440a | ||
|
|
ac646f8434 | ||
|
|
d416866108 | ||
|
|
1f5dfef200 | ||
|
|
1aeebf09aa | ||
|
|
d34b6772f2 | ||
|
|
05a0600fe5 | ||
|
|
732b383b53 | ||
|
|
76da5c469c | ||
|
|
29d07ada54 | ||
|
|
5c1191dd5c | ||
|
|
c48350b666 | ||
|
|
e57e660819 | ||
|
|
20df00a4e8 | ||
|
|
fe83d1b32c | ||
|
|
685d1e67cf | ||
|
|
74e8e013cf | ||
|
|
d933e7cb41 | ||
|
|
64d1b0e151 | ||
|
|
5d5dd5f4dd | ||
|
|
c498f73546 | ||
|
|
654f78388b | ||
|
|
aca4a39863 | ||
|
|
bf3abf5157 | ||
|
|
053bbbf520 | ||
|
|
bc8ef1f7c5 | ||
|
|
538f6b5c61 | ||
|
|
92931c336c | ||
|
|
a8b5dfa981 | ||
|
|
42f1a7ed30 | ||
|
|
f3d6456876 | ||
|
|
2ca13de4de | ||
|
|
87ae93ca2d | ||
|
|
5da32dbc5b | ||
|
|
6be2818f14 | ||
|
|
b602a6b33a | ||
|
|
20a81ceb2f | ||
|
|
3d6cf24c26 | ||
|
|
6a741d0504 | ||
|
|
aa55cce3ba | ||
|
|
a5fbbef970 | ||
|
|
25c8d93eba | ||
|
|
eb294c78d1 | ||
|
|
bd3f35eef0 | ||
|
|
f839b34594 | ||
|
|
99462d3b53 | ||
|
|
200392785d | ||
|
|
c0e5c4b7fe | ||
|
|
189ad24528 | ||
|
|
4aa11ecc94 | ||
|
|
e61c5c07bc | ||
|
|
0212ce6554 | ||
|
|
b76a0379dd | ||
|
|
e94c7b6c39 | ||
|
|
2c69ad2bb4 | ||
|
|
e8e7c46463 | ||
|
|
abda7f4f1d | ||
|
|
e8500c395c | ||
|
|
6f5a066bab | ||
|
|
08816ec9f9 | ||
|
|
fac659fa0a | ||
|
|
b0069c3c5d | ||
|
|
e7be28d2b5 | ||
|
|
15aa5ebc1f | ||
|
|
a9ad24cce2 | ||
|
|
486eb205cb | ||
|
|
28e64f646f | ||
|
|
78cf32ae70 | ||
|
|
a340da8f6e | ||
|
|
336056f4f0 | ||
|
|
e31e4b7867 | ||
|
|
683c0ef5dc | ||
|
|
23179e9ac5 | ||
|
|
7cdfc33d15 | ||
|
|
776dab81b8 | ||
|
|
6252e92555 | ||
|
|
bebd7b6b26 | ||
|
|
182f1448a9 | ||
|
|
9b6fcf8d7b | ||
|
|
bd1c8db7a3 | ||
|
|
0fb638fcb6 | ||
|
|
effb95b322 | ||
|
|
e5ac326f1c | ||
|
|
2d0d06842d | ||
|
|
7355906c3a | ||
|
|
ec10cda088 | ||
|
|
d59eed5d3b | ||
|
|
dec44a7202 | ||
|
|
082e160212 | ||
|
|
65ad4932f4 | ||
|
|
d4980754ad | ||
|
|
c767091faf | ||
|
|
d8aec039a9 | ||
|
|
e07ff9c04e | ||
|
|
230205c3fd | ||
|
|
c66347c365 | ||
|
|
bf2a13138d | ||
|
|
8f85b1ba23 | ||
|
|
576fc6a82e | ||
|
|
1e1a6d0939 | ||
|
|
8034b72231 | ||
|
|
2d2f4eb1a2 | ||
|
|
ac9b435a74 | ||
|
|
9946554575 | ||
|
|
e6458222c1 | ||
|
|
62d8760420 | ||
|
|
1cc92b4751 | ||
|
|
8bf0284443 | ||
|
|
17551d2f08 | ||
|
|
3f47a7e7be | ||
|
|
0cc1166a2d | ||
|
|
6d09acc0d3 | ||
|
|
ba9cdd3aa2 | ||
|
|
387f797f23 | ||
|
|
f6fba61b47 | ||
|
|
15cbd69457 | ||
|
|
3dca01490f | ||
|
|
b9c2ef389c | ||
|
|
6000b296e2 | ||
|
|
2869ed245c | ||
|
|
993bf0d2cb | ||
|
|
2dda7127ed | ||
|
|
3cef9f2e00 | ||
|
|
6948bb7ebb | ||
|
|
7a0619447c | ||
|
|
30925b4250 | ||
|
|
f232622ad4 | ||
|
|
3a20993d1f | ||
|
|
612dd6fe28 | ||
|
|
dc3ab508d4 | ||
|
|
ff063caa4e | ||
|
|
a629b7e5f2 | ||
|
|
99c920d393 | ||
|
|
26950a2fca | ||
|
|
5aabff5821 | ||
|
|
a8e31dddee | ||
|
|
b6bd35c15c | ||
|
|
5222a0ffd6 | ||
|
|
f43898bac1 | ||
|
|
dd683855f2 | ||
|
|
6812e13490 | ||
|
|
e8794e78a1 | ||
|
|
2f3e8d04f1 | ||
|
|
a0ff08b734 | ||
|
|
32325bc4ab | ||
|
|
0ddc7da2f8 | ||
|
|
c0000e745e | ||
|
|
f493f01bd0 | ||
|
|
22e1bb0e2f | ||
|
|
7e3ed92ba6 | ||
|
|
ad51c7c08f | ||
|
|
7a8a0c18ae | ||
|
|
5cff84522a | ||
|
|
562f14fc83 | ||
|
|
79fc4bafe6 | ||
|
|
4b48997a0b | ||
|
|
ab2d97d49b | ||
|
|
5616c535b0 | ||
|
|
b4306da7bb | ||
|
|
32d1d9214c | ||
|
|
12d21689c6 | ||
|
|
87d80be915 | ||
|
|
89295b0359 | ||
|
|
621a573dd8 | ||
|
|
73032db345 | ||
|
|
1f86818250 | ||
|
|
534afae345 | ||
|
|
ac3072d888 | ||
|
|
018a7e2753 | ||
|
|
3cc18b6ea1 | ||
|
|
0507132a21 | ||
|
|
7147dce4d0 | ||
|
|
cc976dd4ad | ||
|
|
dfd7b1f24f | ||
|
|
bb35a03704 | ||
|
|
ed340d7e2c | ||
|
|
24e4f41452 | ||
|
|
f44a199bae | ||
|
|
37af683630 | ||
|
|
bb756bdc2c | ||
|
|
f3ea4e0301 | ||
|
|
4a3e4c7c23 | ||
|
|
cb77f9e3dd | ||
|
|
8ff29f8431 | ||
|
|
c4937bc716 | ||
|
|
abb696d0fa | ||
|
|
75a0a0ed49 | ||
|
|
d9a4f37f75 | ||
|
|
933a6297bb | ||
|
|
3bca9b5297 | ||
|
|
28b99767f8 | ||
|
|
e852294938 | ||
|
|
917950a32b | ||
|
|
5ffca0633c | ||
|
|
38920867fb | ||
|
|
6224d749c4 | ||
|
|
1257ade199 | ||
|
|
f25a16d90c | ||
|
|
b6425187de | ||
|
|
2b5e5459ab | ||
|
|
8145b358c0 | ||
|
|
034e0be76f | ||
|
|
6b60b25e8b | ||
|
|
9bceccb5d1 | ||
|
|
0497225d5d | ||
|
|
49a65568d8 | ||
|
|
a4b76b2a00 | ||
|
|
61fdf965ba | ||
|
|
9e928b996c | ||
|
|
3d60dfdeeb | ||
|
|
54c670de77 | ||
|
|
9aa11d2e11 | ||
|
|
0d6368d4ec | ||
|
|
caac90e8d7 | ||
|
|
7464cedff7 | ||
|
|
51c49e36bc | ||
|
|
b29099a278 | ||
|
|
08c494dd11 | ||
|
|
c428421586 | ||
|
|
c0a2549285 | ||
|
|
2df5f85018 | ||
|
|
4a0d6ce43c | ||
|
|
187969cbb3 | ||
|
|
8cdfc6e17c | ||
|
|
9cd35d67a9 | ||
|
|
4d2fa476a3 | ||
|
|
f864c05070 | ||
|
|
3557271e5a | ||
|
|
8a49e06ebd | ||
|
|
6783f6adb9 | ||
|
|
5eb27f7704 | ||
|
|
df240fe905 | ||
|
|
300522e3cc | ||
|
|
3ede6e32be | ||
|
|
ce45a10063 | ||
|
|
2438ef167b | ||
|
|
d6dc7a926d | ||
|
|
6e6a2cae06 | ||
|
|
a6ebad008f | ||
|
|
ed5d4aaf6d | ||
|
|
f507efe77d | ||
|
|
83173cd385 | ||
|
|
b6b91abc27 | ||
|
|
05c791efcd | ||
|
|
2342626a57 | ||
|
|
7c0a0a4786 | ||
|
|
a35ca03e07 | ||
|
|
c522454af1 | ||
|
|
ef10834eb3 | ||
|
|
8efad7bcff | ||
|
|
51c8886d60 | ||
|
|
34a8702202 | ||
|
|
1f00da8d83 | ||
|
|
8d793ad6ec | ||
|
|
bd8a7bff16 | ||
|
|
d059689856 | ||
|
|
4ea28333f8 | ||
|
|
edebf35135 | ||
|
|
90b645daa5 | ||
|
|
9eac927b45 | ||
|
|
ec5e8bfa50 | ||
|
|
124e984a6d | ||
|
|
76f44efbb6 | ||
|
|
ddaaf6a860 | ||
|
|
92c16ecdf5 | ||
|
|
635d7a9189 | ||
|
|
fc6ca5eaf3 | ||
|
|
803f960ded | ||
|
|
ef1b672323 | ||
|
|
002dc34455 | ||
|
|
cc8389d588 | ||
|
|
a8e0e4e960 | ||
|
|
9ae7256048 | ||
|
|
e036767746 | ||
|
|
9a49c91fdd | ||
|
|
37ff7f547b | ||
|
|
c97a728531 | ||
|
|
811bff0430 | ||
|
|
2412fe0211 | ||
|
|
32084a7fce | ||
|
|
7817cf31c6 | ||
|
|
2e5aac8dba | ||
|
|
8b08996703 | ||
|
|
1fbbc56f93 | ||
|
|
8f77a300de | ||
|
|
91d49b26b5 | ||
|
|
02ce2f4bec | ||
|
|
d4f98c8e59 | ||
|
|
ab0860a22a | ||
|
|
dd478167a0 | ||
|
|
2df911e0a8 | ||
|
|
e9939ecc38 | ||
|
|
d058439756 | ||
|
|
8c21c9196d | ||
|
|
68b7831daf | ||
|
|
153e06e4d5 | ||
|
|
9bedfb7cb0 | ||
|
|
1bd23a0c32 | ||
|
|
50343afa61 | ||
|
|
a9e1ebccd3 | ||
|
|
9672142c1e | ||
|
|
6123be726a | ||
|
|
05d8517686 | ||
|
|
87d5f4c8bc | ||
|
|
06be00bbd5 | ||
|
|
7fb113c3dc | ||
|
|
98b0c65450 | ||
|
|
698816030e | ||
|
|
03e70bd10e | ||
|
|
e0983cb1c6 | ||
|
|
a366803cdd | ||
|
|
33d007ce01 | ||
|
|
8566cfc227 | ||
|
|
65be907095 | ||
|
|
532b8194b1 | ||
|
|
eb912d95ca | ||
|
|
245ded43d4 | ||
|
|
7c215b2532 | ||
|
|
579d05a0cb | ||
|
|
b42ee8ca0f | ||
|
|
ede864c823 | ||
|
|
a50ef05565 | ||
|
|
93a607d846 | ||
|
|
deb00f20fe | ||
|
|
c4e465dcf9 | ||
|
|
bfea858306 | ||
|
|
c92bf29677 | ||
|
|
6675f9be57 | ||
|
|
1a6d67776b | ||
|
|
889b6a9f43 | ||
|
|
970c1bcb66 | ||
|
|
2db953ceb1 | ||
|
|
051cc68f24 | ||
|
|
40c49a9ce5 | ||
|
|
442fa907ce | ||
|
|
7044e30529 | ||
|
|
7cfe047feb | ||
|
|
796f20385d | ||
|
|
c76aa76743 | ||
|
|
2969c9e8fb | ||
|
|
119c24faa2 | ||
|
|
93711ea806 | ||
|
|
96331c5d95 | ||
|
|
d8f41a9d73 | ||
|
|
311900e441 | ||
|
|
bdb87f06f9 | ||
|
|
ddb7da3733 | ||
|
|
a358521b2b | ||
|
|
4f833501d7 | ||
|
|
ace5c65ee5 | ||
|
|
ae47d3df58 | ||
|
|
4c8effe6fa | ||
|
|
c56ad4363d | ||
|
|
7895b16043 | ||
|
|
a45e704be2 | ||
|
|
d1f1b468b1 | ||
|
|
a55505b36a | ||
|
|
930318ab7a | ||
|
|
5fe9e06535 | ||
|
|
606443bc6d | ||
|
|
ec811bfa1f | ||
|
|
5e8d7f666e | ||
|
|
4f9057f066 | ||
|
|
4ed6413635 | ||
|
|
bb5ebaa1ab | ||
|
|
c9491ed023 | ||
|
|
3db13fa3bb | ||
|
|
7e4e113ac9 | ||
|
|
dc4ce62fab | ||
|
|
6288744d70 | ||
|
|
c0339f167b | ||
|
|
60007d8e3c | ||
|
|
2322131b01 | ||
|
|
39bb6a8ffe | ||
|
|
0631a121c3 | ||
|
|
c860f15f91 | ||
|
|
c10fd7aaab | ||
|
|
7ced251d19 | ||
|
|
637c823fa6 | ||
|
|
2d655143c3 | ||
|
|
fba95ea3f0 | ||
|
|
40393cd9a4 | ||
|
|
10527bd221 | ||
|
|
4c2b11f6d7 | ||
|
|
512a39bafd | ||
|
|
78c09a0ff6 | ||
|
|
6dc00b75e0 | ||
|
|
6b50f1555b | ||
|
|
a6f098f78b | ||
|
|
f77b0941b8 | ||
|
|
6d06f81ca7 | ||
|
|
908ecb39e3 | ||
|
|
6cad19e9d5 | ||
|
|
b0fae46aa6 | ||
|
|
17d26acb2f | ||
|
|
579fadd797 | ||
|
|
9693336d99 | ||
|
|
335648d613 | ||
|
|
dc906f79e1 | ||
|
|
34a8a484c4 | ||
|
|
0d489f2ea9 | ||
|
|
d49e166506 | ||
|
|
a0e6af425e | ||
|
|
e69b15d33e | ||
|
|
ee9a0bcd05 | ||
|
|
442fbb13d2 | ||
|
|
fddc5bcc5b | ||
|
|
c2058af13a | ||
|
|
bb022050ed | ||
|
|
a8e5cb1e12 | ||
|
|
1628ce8729 | ||
|
|
37f96ddcfa | ||
|
|
1fc75fdc68 | ||
|
|
10c4ec0b37 | ||
|
|
2e34dd0faf | ||
|
|
b7b37f9548 | ||
|
|
05f13bb363 | ||
|
|
e307410301 | ||
|
|
5a4541dadb | ||
|
|
56ec6b093e | ||
|
|
61d753c803 | ||
|
|
f312706269 | ||
|
|
f33ad5e025 | ||
|
|
2e31f716ed | ||
|
|
eafb657264 | ||
|
|
0cee259d0b | ||
|
|
be8797f355 | ||
|
|
d652bfc4a7 | ||
|
|
11607caa81 | ||
|
|
41e958ea1f | ||
|
|
39de2451bc | ||
|
|
e11e3c5f6e | ||
|
|
c705775d75 | ||
|
|
9ca75e9d43 | ||
|
|
5d2b7fe4bb | ||
|
|
fb455891ce | ||
|
|
3e2e45ce6d | ||
|
|
75eb62363a | ||
|
|
523097903a | ||
|
|
c6d214b585 | ||
|
|
c9604dbd69 | ||
|
|
df37519858 | ||
|
|
10c6009ffa | ||
|
|
27e520add4 | ||
|
|
3a429d3f6c | ||
|
|
5e36468245 | ||
|
|
a2d83f5358 | ||
|
|
53b9718381 | ||
|
|
2de282ae49 | ||
|
|
217c6ba764 | ||
|
|
039f21274b | ||
|
|
09fdd30876 | ||
|
|
72551ab506 | ||
|
|
811e5f60eb | ||
|
|
b1ea0fec50 | ||
|
|
98ee52c61c | ||
|
|
f76b9bdd07 | ||
|
|
3a1d927c41 | ||
|
|
9224bfab7d | ||
|
|
b5535f3ba5 | ||
|
|
bfe6d29601 | ||
|
|
807525b1db | ||
|
|
8504a49e17 | ||
|
|
83d317d16d | ||
|
|
55b27c70b5 | ||
|
|
1c13893dd1 | ||
|
|
4a1cda715d | ||
|
|
c9d1725f5c | ||
|
|
4bf314f9e6 | ||
|
|
14f580fe30 | ||
|
|
a2e6d4b324 | ||
|
|
dadc240038 | ||
|
|
dd265623e4 | ||
|
|
23137cdab3 | ||
|
|
1d08eb5752 | ||
|
|
78cee60d91 | ||
|
|
1deabaa1c0 | ||
|
|
88b6b18cc0 | ||
|
|
355fb41748 | ||
|
|
7d2249f652 | ||
|
|
5e288ebedf | ||
|
|
80eb8b62ce | ||
|
|
cdb36a3bf2 | ||
|
|
04a28854c9 | ||
|
|
51cf9ee3a1 | ||
|
|
fbc8580539 | ||
|
|
eeec56fa94 | ||
|
|
17d83b9c20 | ||
|
|
2c9f6b496f | ||
|
|
5006bbe13f | ||
|
|
a1026a50bd | ||
|
|
c117ec79f7 | ||
|
|
b37eb29444 | ||
|
|
4df545dfb0 | ||
|
|
70f5822217 | ||
|
|
d49a41def0 | ||
|
|
e4941f60db | ||
|
|
d1fe22a872 | ||
|
|
5756003c88 | ||
|
|
e5e2129a88 | ||
|
|
c5e6728d6d | ||
|
|
d9b3986c95 | ||
|
|
a67f8e3f38 | ||
|
|
7989991da9 | ||
|
|
afa70e5a1e | ||
|
|
ce9ea5cc93 | ||
|
|
5f5cdc9645 | ||
|
|
6370426d52 | ||
|
|
fb7bd2158d | ||
|
|
387b4188f2 | ||
|
|
c922d4eb8f | ||
|
|
9d4eda2318 | ||
|
|
bd235b7b49 | ||
|
|
7daba05548 | ||
|
|
64e67ae351 | ||
|
|
40ea2a8b7e | ||
|
|
4629fe5028 | ||
|
|
ba2c558b72 | ||
|
|
84f1e0c66e | ||
|
|
72e41d3703 | ||
|
|
6775723840 | ||
|
|
d332b6a0f4 | ||
|
|
f68b8d8df9 | ||
|
|
c2cbae95c6 | ||
|
|
b36ad87cb5 | ||
|
|
b7c004f95c | ||
|
|
7bfaa3b6ad | ||
|
|
0cffee6f83 | ||
|
|
3895a59c5e | ||
|
|
a2b39c9c53 | ||
|
|
12154d98b4 | ||
|
|
c25dba415f | ||
|
|
27d943dcc3 | ||
|
|
66b5b5d7e1 | ||
|
|
3cf9b5aa28 | ||
|
|
b77177ed74 | ||
|
|
f61562a51a | ||
|
|
e4a531de8c | ||
|
|
063bc51c59 | ||
|
|
3f3fbe7e4b | ||
|
|
01a6381756 | ||
|
|
0ab7ad741f | ||
|
|
58efe1f850 | ||
|
|
66b41a53b8 | ||
|
|
c00400c500 | ||
|
|
944af1fe80 | ||
|
|
ea55f39298 | ||
|
|
84db84bc23 | ||
|
|
f366eaea52 | ||
|
|
f5ae41f03e | ||
|
|
6b1bce2b9d | ||
|
|
bd57128ca4 | ||
|
|
5012e4987c | ||
|
|
6e3d3d4877 | ||
|
|
d30f6175ce | ||
|
|
0e08d9e0fd | ||
|
|
81f99f1579 | ||
|
|
4973281f3c | ||
|
|
8f3820be22 | ||
|
|
033a18bc1c | ||
|
|
99fb0bf57e | ||
|
|
49a9f21388 | ||
|
|
e4d25400ee | ||
|
|
1e350677fb | ||
|
|
86f304ae02 | ||
|
|
00c09eb281 | ||
|
|
6c8c8a6477 | ||
|
|
1142caf5e8 | ||
|
|
ba6ac43a28 | ||
|
|
12289b8ef9 | ||
|
|
f69c37566e | ||
|
|
6cfd0b70ed | ||
|
|
d95bcc8594 | ||
|
|
d3e6f4c3b2 | ||
|
|
eb21369d86 | ||
|
|
68a29f1ac6 | ||
|
|
6413badada | ||
|
|
d6485b1e94 | ||
|
|
98a5f552b2 | ||
|
|
067260170b | ||
|
|
9850c0134e | ||
|
|
284c1dff83 | ||
|
|
d166c79242 | ||
|
|
e4f377fb46 | ||
|
|
e22af6dbd6 | ||
|
|
0f998b4522 | ||
|
|
2cdfcf8b21 | ||
|
|
b3e770226f | ||
|
|
981328576f | ||
|
|
3b1a415d6b | ||
|
|
fde36b237e | ||
|
|
dde9c59021 | ||
|
|
a12b323907 | ||
|
|
1687f9bb84 | ||
|
|
9a12a668a2 | ||
|
|
b98268ffee | ||
|
|
4d1ae3d483 | ||
|
|
2f6f110fa3 | ||
|
|
93c25d4f82 | ||
|
|
2ac1095c52 | ||
|
|
d5b868f4a6 | ||
|
|
17081fac46 | ||
|
|
4a18b57021 | ||
|
|
58c4c9ebb8 | ||
|
|
a16234faaa | ||
|
|
154265a2d9 | ||
|
|
440ae897a5 | ||
|
|
86fac0937b | ||
|
|
682102d4d6 | ||
|
|
22774b4821 | ||
|
|
046e73e785 | ||
|
|
a71a823676 | ||
|
|
3ba7ecc602 | ||
|
|
887d8e8a90 | ||
|
|
251fc79484 | ||
|
|
fc0ed7b96f | ||
|
|
752b69680e | ||
|
|
756f63e212 | ||
|
|
84a82ea5b2 | ||
|
|
08dd5f58a2 | ||
|
|
04963c83d6 | ||
|
|
711dacf4b7 | ||
|
|
6fbd196132 | ||
|
|
5969ac31ea | ||
|
|
21c51ff784 | ||
|
|
3d10e92218 | ||
|
|
84371fe4be | ||
|
|
1995164219 | ||
|
|
4f128a1ec0 | ||
|
|
f11744da56 | ||
|
|
08434ed3d5 | ||
|
|
2c76d7531b | ||
|
|
bbec7d76d4 | ||
|
|
255c4b34ba | ||
|
|
fd220f9cce | ||
|
|
34d68aadbd | ||
|
|
3bc822e8ef | ||
|
|
7340e865a3 | ||
|
|
5b231fe990 | ||
|
|
9c55256de2 | ||
|
|
491020f027 | ||
|
|
2989c84248 | ||
|
|
db1515a9f3 | ||
|
|
a774b1a278 | ||
|
|
81865f70e4 | ||
|
|
c6db2d07bb | ||
|
|
91215b303e | ||
|
|
319a905ec0 | ||
|
|
9883b7d3d9 | ||
|
|
07e31840eb | ||
|
|
03483b5439 | ||
|
|
9a42ab73d8 | ||
|
|
746f92d597 | ||
|
|
238fbca650 | ||
|
|
3875147812 | ||
|
|
be065cdacc | ||
|
|
187f58c1c3 | ||
|
|
c20bdedcac | ||
|
|
617dd9f031 | ||
|
|
077afac90a | ||
|
|
f091d96b6c | ||
|
|
a30aa78726 | ||
|
|
66f49559ee | ||
|
|
8899c3e3c5 | ||
|
|
10a2b718f5 | ||
|
|
c72f699c90 | ||
|
|
16e132caea | ||
|
|
070c1ec029 | ||
|
|
21c26cabed | ||
|
|
0f73f16cfa | ||
|
|
dfa8506549 | ||
|
|
9860699d5f | ||
|
|
c9939d2bff | ||
|
|
8fb6ed5c6f | ||
|
|
c6a859d1ed | ||
|
|
b955579a9c | ||
|
|
94edf32540 | ||
|
|
91d2f98774 | ||
|
|
7c1df60d06 | ||
|
|
0583bc0cc8 | ||
|
|
c9de49e56e | ||
|
|
275a22b685 | ||
|
|
7091ed3de6 | ||
|
|
7ebae2ba80 | ||
|
|
9eb9fffc94 | ||
|
|
061965ecb7 | ||
|
|
3a7f9d93f4 | ||
|
|
3940b5ec88 | ||
|
|
a95481a8fe | ||
|
|
77a1628610 | ||
|
|
c08da3c694 | ||
|
|
98994cad61 | ||
|
|
91dda5e5ca | ||
|
|
b63c4188e4 | ||
|
|
10423ddbe4 | ||
|
|
f32e097051 | ||
|
|
1be6050da8 | ||
|
|
62ebe29ead | ||
|
|
ef061dd4c3 | ||
|
|
bff3e88343 | ||
|
|
3d2711d35e | ||
|
|
927a98ac5b | ||
|
|
8983ebdc69 | ||
|
|
681a8f1d9c | ||
|
|
447117be4f | ||
|
|
681c3169c1 | ||
|
|
5665da6518 | ||
|
|
085c60af49 | ||
|
|
2bf217207e | ||
|
|
f5abb45de0 | ||
|
|
fefcc9f0ca | ||
|
|
d2f60a70d1 | ||
|
|
a25ca03040 | ||
|
|
461256767e | ||
|
|
c4279ff665 | ||
|
|
ad5c9ac589 | ||
|
|
458f1d0f64 | ||
|
|
b06c84cef9 | ||
|
|
b33ceaa400 | ||
|
|
7510a19c73 | ||
|
|
ac3a2d960a | ||
|
|
d5f92843a9 | ||
|
|
fc878fd539 | ||
|
|
84bf801b52 | ||
|
|
f555048319 | ||
|
|
72788187c8 | ||
|
|
6759641715 | ||
|
|
e12a0ea0ff | ||
|
|
508d980514 | ||
|
|
c52566a244 | ||
|
|
5803727409 | ||
|
|
1d88528686 | ||
|
|
3a4be21a25 | ||
|
|
16419b3281 | ||
|
|
6d50f43448 | ||
|
|
f1bfccbfe6 | ||
|
|
a56e8719d3 | ||
|
|
85e2ffa63f | ||
|
|
1b91400ebc | ||
|
|
48156af617 | ||
|
|
c510fe268b | ||
|
|
912fb03564 | ||
|
|
3f7c52c29f | ||
|
|
9284ba47a4 | ||
|
|
4a405cc975 | ||
|
|
5857117625 | ||
|
|
75d9ade613 | ||
|
|
58cebcc97f | ||
|
|
3f8da79893 | ||
|
|
5f8450d67d | ||
|
|
d89b909187 | ||
|
|
f79b358c92 | ||
|
|
e4ef5c789c | ||
|
|
d871196e16 | ||
|
|
595b74d04e | ||
|
|
de0f5d44a3 | ||
|
|
1637cffbe9 | ||
|
|
2f28f89c59 | ||
|
|
de7afee96d | ||
|
|
92cb9f1c51 | ||
|
|
7896fa894d | ||
|
|
d6f7533c76 | ||
|
|
4a9d2e689e | ||
|
|
df3d771c53 | ||
|
|
0aa14db88b | ||
|
|
d75caaa3df | ||
|
|
cfc79254d0 | ||
|
|
ac0d67b273 | ||
|
|
17b37a90da | ||
|
|
72d38fa929 | ||
|
|
a051892b92 | ||
|
|
c573d53297 | ||
|
|
b4fc249991 | ||
|
|
c321c90497 | ||
|
|
cb2b57232c | ||
|
|
90c3c1db81 | ||
|
|
11f5a4c5b8 | ||
|
|
0f217392d7 | ||
|
|
b54b7c5989 | ||
|
|
1348d76a33 | ||
|
|
4a13bf2fa9 | ||
|
|
d71fa78ee2 | ||
|
|
c0d4cdbabf | ||
|
|
76aa26e3e9 | ||
|
|
fcf6e81430 | ||
|
|
dfabcc0c66 | ||
|
|
3282c74de6 | ||
|
|
dee36639bd | ||
|
|
5a578c00a7 | ||
|
|
e8243b73b5 | ||
|
|
404b04ae59 | ||
|
|
8a02a6f9f1 | ||
|
|
4a67bd86a8 | ||
|
|
feb1a9f31b | ||
|
|
8a5720e8cb | ||
|
|
9ad2924f00 | ||
|
|
0401aed6e3 | ||
|
|
b2722542fe | ||
|
|
7002053678 | ||
|
|
425cd19922 | ||
|
|
4a7b3cde56 | ||
|
|
9c1c71b8e5 | ||
|
|
6de566d95b | ||
|
|
b31715e86e | ||
|
|
9e89047e6a | ||
|
|
a372ca0569 | ||
|
|
1e06dd979e | ||
|
|
c44e6ebe1d | ||
|
|
c8fab42d75 | ||
|
|
0995f95ef1 | ||
|
|
447266cbe8 | ||
|
|
d25a534dea | ||
|
|
56f37ab347 | ||
|
|
90749cd80f | ||
|
|
f1aca67882 | ||
|
|
d7905896f7 | ||
|
|
a7af9a0697 | ||
|
|
eea67868f7 | ||
|
|
d99405feeb | ||
|
|
14831a0d61 | ||
|
|
43bc53b20b | ||
|
|
c01dee0884 | ||
|
|
6fd83b9a8e | ||
|
|
05712acfef | ||
|
|
cd17f4b0d6 | ||
|
|
7c7b43ee91 | ||
|
|
02f9411c6b | ||
|
|
1338a868e9 | ||
|
|
6b1f9e681c | ||
|
|
65d8b5f26b | ||
|
|
530e47d26c | ||
|
|
85f2312370 | ||
|
|
301b45cb7c | ||
|
|
3aa93014c0 | ||
|
|
734900f1d7 | ||
|
|
fb2ea83838 | ||
|
|
8534aaa304 | ||
|
|
36cf654f09 | ||
|
|
4e8522e696 | ||
|
|
88760de64b | ||
|
|
b5f7705e1d | ||
|
|
9efe10f747 | ||
|
|
73744de14e | ||
|
|
d6c18667f4 | ||
|
|
cd28c8a301 | ||
|
|
79c6cc5159 | ||
|
|
345607be28 | ||
|
|
f67baa0dc0 | ||
|
|
75c379beeb | ||
|
|
405e206717 | ||
|
|
c2af03f152 | ||
|
|
7835869582 | ||
|
|
78e8f23df5 | ||
|
|
433bccd207 | ||
|
|
ef6d17d817 | ||
|
|
e023c144bb | ||
|
|
b5273babb5 | ||
|
|
49662b019c | ||
|
|
48ad1ffcbf | ||
|
|
cd186ada7f | ||
|
|
a6f65df8c4 | ||
|
|
1c5fd62e43 | ||
|
|
1f379a06a4 | ||
|
|
e52fab636c | ||
|
|
d991dfa54a | ||
|
|
c2c1aa01d3 | ||
|
|
e6c4b2ffd1 | ||
|
|
3c1e3779e2 | ||
|
|
4e1ece16ed | ||
|
|
1cb934dbe3 | ||
|
|
767c765524 | ||
|
|
67ee5a41b0 | ||
|
|
5c280e8114 | ||
|
|
bc25097899 | ||
|
|
6ce499532c | ||
|
|
386f2dc67c | ||
|
|
90034e4d48 | ||
|
|
4166c80c6e | ||
|
|
d06d00ccbb | ||
|
|
959dba169d | ||
|
|
900adaaffb | ||
|
|
94cd126189 | ||
|
|
1416a3d162 | ||
|
|
e4873a9952 | ||
|
|
8d1022046e | ||
|
|
f40cbf2cac | ||
|
|
a0ba8dd8c6 | ||
|
|
8557bd96b5 | ||
|
|
3d4f77be51 | ||
|
|
62d82411c8 | ||
|
|
c3709ef51a | ||
|
|
071e9a4735 | ||
|
|
0c889da99c | ||
|
|
a41f51c437 | ||
|
|
4cb3e24048 | ||
|
|
4cb9b1eeb3 | ||
|
|
f0a97ee460 | ||
|
|
7c1e16abc3 | ||
|
|
84995c688c | ||
|
|
cefb5d4d32 | ||
|
|
8eadb3d04c | ||
|
|
a6023a710a | ||
|
|
33ac3e34ee | ||
|
|
3c64018b37 | ||
|
|
b01970cb86 | ||
|
|
ffa24bfd22 | ||
|
|
be17bfe85a | ||
|
|
974684ed2b | ||
|
|
f90a41a7ca | ||
|
|
df847ae35c | ||
|
|
746455a9b9 | ||
|
|
3557247b27 | ||
|
|
658a4a9194 | ||
|
|
ec6371d7a0 | ||
|
|
6bab8793a2 | ||
|
|
45b2e8885a | ||
|
|
40b5891ea7 | ||
|
|
667cadc403 | ||
|
|
08be6cf9bc | ||
|
|
fd07de39ad | ||
|
|
44942dffb5 | ||
|
|
f7b1fe07d0 | ||
|
|
9a7e5747eb | ||
|
|
e4264b94ed | ||
|
|
e9ecea3bb7 | ||
|
|
391dfc5025 | ||
|
|
3da449d77e | ||
|
|
7a66dc5774 | ||
|
|
74f7b1974d | ||
|
|
6b94aaa424 | ||
|
|
c4ed80dd92 | ||
|
|
7a73638fb2 | ||
|
|
0ece4a7dae | ||
|
|
6fe8b5c49d | ||
|
|
2ba4be2661 | ||
|
|
a2a3bda5c9 | ||
|
|
f28b7c7bcf | ||
|
|
27d025327f | ||
|
|
020f513ed5 | ||
|
|
30fb0b1ed1 | ||
|
|
40605d7c53 | ||
|
|
666c14d190 | ||
|
|
0a005527e7 | ||
|
|
c0a860a31f | ||
|
|
3e82da4beb | ||
|
|
b71d7773d3 | ||
|
|
7d5b2d8c3b | ||
|
|
dc298b8895 | ||
|
|
693c763710 | ||
|
|
680f3cde3c | ||
|
|
3ef6635c09 | ||
|
|
8028ce3ac5 | ||
|
|
3557a13147 | ||
|
|
f6e625f21a | ||
|
|
d1c71c3c61 | ||
|
|
6f8ffddace | ||
|
|
438736068e | ||
|
|
bfe8ee5309 | ||
|
|
703dadfcde | ||
|
|
fecb8de769 | ||
|
|
b3bc78daec | ||
|
|
d24ae3c2ac | ||
|
|
2879c0b6ad | ||
|
|
5ef1b51c02 | ||
|
|
41d231a4c7 | ||
|
|
f4fe1babd2 | ||
|
|
efc85ed0ed | ||
|
|
be16c2357d | ||
|
|
88c213078e | ||
|
|
ee57b197e5 | ||
|
|
2c859b1196 | ||
|
|
c4be22b1b6 | ||
|
|
b00b877ca1 | ||
|
|
168edac4a6 | ||
|
|
caa9153dd0 | ||
|
|
ba02320fcc | ||
|
|
427c73ddf9 | ||
|
|
2c3ffdfdf8 | ||
|
|
97b21145c4 | ||
|
|
2428c0984e | ||
|
|
e0aad192af | ||
|
|
e34806ad70 | ||
|
|
a0fde2b24d | ||
|
|
abfe6b4359 | ||
|
|
acd8c34535 | ||
|
|
1a1c7dec87 | ||
|
|
5e4ee77968 | ||
|
|
9f54e9cb4d | ||
|
|
0b53a3229b | ||
|
|
5318d52036 | ||
|
|
4d54ad0daf | ||
|
|
37b1cca027 |
@@ -27,6 +27,10 @@ jobs:
|
|||||||
name: Run Tests
|
name: Run Tests
|
||||||
command: npm test
|
command: npm test
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: coverage/
|
||||||
|
destination: coverage
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: rendering/cases/
|
path: rendering/cases/
|
||||||
destination: rendering
|
destination: rendering
|
||||||
@@ -38,3 +42,11 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build/examples
|
path: build/examples
|
||||||
destination: examples
|
destination: examples
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Build API Docs
|
||||||
|
command: npm run apidoc
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: build/apidoc
|
||||||
|
destination: apidoc
|
||||||
|
|||||||
8
.github/FUNDING.yml
vendored
Normal file
8
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
|
patreon: # Replace with a single Patreon username
|
||||||
|
open_collective: openlayers
|
||||||
|
ko_fi: # Replace with a single Ko-fi username
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
custom: # Replace with a single custom sponsorship URL
|
||||||
17
.github/stale.yml
vendored
Normal file
17
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 60
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 7
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- blocker
|
||||||
|
- regression
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: stale
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
||||||
27
.github/workflows/publish.yml
vendored
Normal file
27
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-npm:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
registry-url: https://registry.npmjs.org/
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
VERSION=$(node tasks/next-dev-version.js)
|
||||||
|
npm --no-git-tag-version version ${VERSION}
|
||||||
|
npm run build-package
|
||||||
|
cd build/ol
|
||||||
|
npm publish --tag dev
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||||
39
LICENSE.md
39
LICENSE.md
@@ -1,26 +1,25 @@
|
|||||||
Copyright 2005-present OpenLayers Contributors. All rights reserved.
|
BSD 2-Clause License
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Copyright 2005-present, OpenLayers Contributors
|
||||||
are permitted provided that the following conditions are met:
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
list of conditions and the following disclaimer.
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
this list of conditions and the following disclaimer in the documentation and/or
|
this list of conditions and the following disclaimer in the documentation
|
||||||
other materials provided with the distribution.
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY OPENLAYERS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
The views and conclusions contained in the software and documentation are those
|
|
||||||
of the authors and should not be interpreted as representing official policies,
|
|
||||||
either expressed or implied, of OpenLayers Contributors.
|
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -1,6 +1,6 @@
|
|||||||
# OpenLayers
|
# OpenLayers
|
||||||
|
|
||||||
[OpenLayers](https://openlayers.org/) is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD).
|
[OpenLayers](https://openlayers.org/) is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the [BSD 2-Clause License](https://opensource.org/licenses/BSD-2-Clause).
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
@@ -41,14 +41,13 @@ See the following examples for more detail on bundling OpenLayers with your appl
|
|||||||
* Using [Parcel](https://github.com/openlayers/ol-parcel)
|
* Using [Parcel](https://github.com/openlayers/ol-parcel)
|
||||||
* Using [Browserify](https://github.com/openlayers/ol-browserify)
|
* Using [Browserify](https://github.com/openlayers/ol-browserify)
|
||||||
|
|
||||||
## TypeScript and VS Code IntelliSense support
|
## IntelliSense support and type checking for VS Code
|
||||||
|
|
||||||
The `ol` package contains a `src/` folder with JSDoc annotated sources. TypeScript can get type definitions from these sources with a `tsconfig.json` like this:
|
The `ol` package contains a `src/` folder with JSDoc annotated sources. TypeScript can get type definitions from these sources with a `jsconfig.json` config file in the project root:
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// Enable JavaScript support
|
"checkJs": true,
|
||||||
"allowJs": true,
|
|
||||||
// Point to the JSDoc typed sources when using modules from the ol package
|
// Point to the JSDoc typed sources when using modules from the ol package
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"paths": {
|
"paths": {
|
||||||
@@ -57,11 +56,14 @@ The `ol` package contains a `src/` folder with JSDoc annotated sources. TypeScri
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
// Include JavaScript files from the ol package
|
"**/*.js",
|
||||||
"node_modules/ol/**/*.js"
|
"node_modules/ol/**/*.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Project template with this configuration: https://gist.github.com/9a7253cb4712e8bf38d75d8ac898e36c.
|
||||||
|
|
||||||
|
Note that the above only works when authoring in plain JavaScript. For similar configurations with a `tsconfig.json` in TypeScript projects, your mileage may vary.
|
||||||
|
|
||||||
## Supported Browsers
|
## Supported Browsers
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,97 @@
|
|||||||
## Upgrade notes
|
## Upgrade notes
|
||||||
|
|
||||||
### Next version
|
### v6.0.0
|
||||||
|
|
||||||
#### Backwards incompatible changes
|
#### Backwards incompatible changes
|
||||||
|
|
||||||
##### Removal of the deprecated "inherits" function
|
##### Usage of `map.forEachLayerAtPixel`
|
||||||
|
|
||||||
|
Due to performance considerations, the layers in a map will sometimes be rendered into one
|
||||||
|
single canvas instead of separate elements.
|
||||||
|
This means `map.forEachLayerAtPixel` will bring up false positives.
|
||||||
|
|
||||||
|
The easiest solution to avoid that is to assign different `className` properties to each layer like so:
|
||||||
|
```js
|
||||||
|
new Layer({
|
||||||
|
// ...
|
||||||
|
className: 'my-layer'
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
Please note that this may incur a significant performance loss when dealing with many layers and/or
|
||||||
|
targetting mobile devices.
|
||||||
|
|
||||||
|
##### Removal of `TOUCH` constant from `ol/has`
|
||||||
|
|
||||||
|
If you were previously using this constant, you can check if `'ontouchstart'` is defined in `window` instead.
|
||||||
|
|
||||||
|
```js
|
||||||
|
if ('ontouchstart' in window) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of `GEOLOCATION` constant from `ol/has`
|
||||||
|
|
||||||
|
If you were previously using this constant, you can check if `'geolocation'` is defined in `navigator` instead.
|
||||||
|
|
||||||
|
```js
|
||||||
|
if ('geolocation' in navigator) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of CSS print rules
|
||||||
|
|
||||||
|
The CSS media print rules were removed from the `ol.css` file. To get the previous behavior, use the following CSS:
|
||||||
|
|
||||||
|
```css
|
||||||
|
@media print {
|
||||||
|
.ol-control {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of optional this arguments
|
||||||
|
|
||||||
|
The optional this (i.e. opt_this) arguments were removed from the following methods.
|
||||||
|
Please use closures, the es6 arrow function or the bind method to achieve this effect (Bind is explained here:
|
||||||
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
||||||
|
|
||||||
|
* `forEachCorner` in `ol/extent`
|
||||||
|
* `LRUCache#forEach`
|
||||||
|
* `RBush#forEach` and `RBush#forEachInExtent`
|
||||||
|
|
||||||
|
##### The `setCenter`, `setZoom`, `setResolution` and `setRotation` methods on `ol/View` do not bypass constraints anymore
|
||||||
|
|
||||||
|
Previously, these methods allowed setting values that were inconsistent with the given view constraints.
|
||||||
|
This is no longer the case and all changes to the view state now follow the same logic:
|
||||||
|
target values are provided and constraints are applied on these to determine the actual values to be used.
|
||||||
|
|
||||||
|
##### Removal of the `constrainResolution` option on `View.fit`, `PinchZoom`, `MouseWheelZoom` and `ol/interaction.js`
|
||||||
|
|
||||||
|
The `constrainResolution` option is now only supported by the `View` class. A `View.setConstrainResolution` method was added as well.
|
||||||
|
|
||||||
|
Generally, the responsibility of applying center/rotation/resolutions constraints was moved from interactions and controls to the `View` class.
|
||||||
|
|
||||||
|
##### The view `extent` option now applies to the whole viewport
|
||||||
|
|
||||||
|
Previously, this options only constrained the view *center*. This behaviour can still be obtained by specifying `constrainCenterOnly` in the view options.
|
||||||
|
|
||||||
|
As a side effect, the view `rotate` method is gone and has been replaced with `adjustRotation` which takes a delta as input.
|
||||||
|
|
||||||
|
##### The view is constrained so only one world is visible
|
||||||
|
|
||||||
|
Previously, maps showed multiple worlds at low zoom levels. In addition, it used to be possible to pan off the north or south edge of the world. Now, the view is restricted to show only one world, and you cannot pan off the edge. To get the previous behavior, configure the `ol/View` with `multiWorld: true`.
|
||||||
|
|
||||||
|
##### Removal of deprecated methods
|
||||||
|
|
||||||
The `inherits` function that was used to inherit the prototype methods from one constructor into another has been removed.
|
The `inherits` function that was used to inherit the prototype methods from one constructor into another has been removed.
|
||||||
The standard ECMAScript classes should be used instead.
|
The standard ECMAScript classes should be used instead.
|
||||||
|
|
||||||
|
The deprecated `getSnapToPixel` and `setSnapToPixel` functions from the `ImageStyle` class have been removed.
|
||||||
|
|
||||||
##### New internal tile coordinates
|
##### New internal tile coordinates
|
||||||
|
|
||||||
Previously, the internal tile coordinates used in the library had an unusual row order – the origin of the tile coordinate system was at the top left as expected, but the rows increased upwards. This meant that all tile coordinates within a tile grid's extent had negative `y` values.
|
Previously, the internal tile coordinates used in the library had an unusual row order – the origin of the tile coordinate system was at the top left as expected, but the rows increased upwards. This meant that all tile coordinates within a tile grid's extent had negative `y` values.
|
||||||
@@ -60,6 +143,18 @@ In addition (this should be exceedingly rare), if you previously created a `ol/t
|
|||||||
|
|
||||||
If you were previously using `VectorTile` layers with `renderMode: 'vector'`, you have to remove this configuration option. That mode was removed. `'hybrid'` (default) and `'image'` are still available.
|
If you were previously using `VectorTile` layers with `renderMode: 'vector'`, you have to remove this configuration option. That mode was removed. `'hybrid'` (default) and `'image'` are still available.
|
||||||
|
|
||||||
|
##### Removal of the "renderMode" option for vector layers
|
||||||
|
|
||||||
|
If you were previously using `Vector` layers with `renderMode: 'image'`, you have to remove this configuration option. Instead, use the new `ol/layer/VectorImage` layer with your `ol/source/Vector`.
|
||||||
|
|
||||||
|
##### New declutter behavior
|
||||||
|
|
||||||
|
If a map has more than one layer with `declutter` set to true, decluttering now considers all `Vector` and `VectorTile` layers, instead of decluttering each layer separately. Only `VectorImage` layers continue to be decluttered separately. The higher the z-index of a layer, the higher the priority of its decluttered items.
|
||||||
|
|
||||||
|
Within a layer, the declutter order has changed. Previously, styles with a lower `zIndex` were prioritized over those with a higher `zIndex`. Now the opposite order is used.
|
||||||
|
|
||||||
|
On vector layers, even if decluttered images or texts have a lower z-Index than polygons or lines, they will now be rendered on top of the polygons or lines. For vector tile layers, this was the case already in previous releases.
|
||||||
|
|
||||||
##### New `prerender` and `postrender` layer events replace old `precompose`, `render` and `postcompose` events
|
##### New `prerender` and `postrender` layer events replace old `precompose`, `render` and `postcompose` events
|
||||||
|
|
||||||
If you were previously registering for `precompose` and `postcompose` events, you should now register for `prerender` and `postrender` events on layers. Instead of the previous `render` event, you should now listen for `postrender`. Layers are no longer composed to a single Canvas element. Instead, they are added to the map viewport as individual elements.
|
If you were previously registering for `precompose` and `postcompose` events, you should now register for `prerender` and `postrender` events on layers. Instead of the previous `render` event, you should now listen for `postrender`. Layers are no longer composed to a single Canvas element. Instead, they are added to the map viewport as individual elements.
|
||||||
@@ -93,6 +188,58 @@ Due to the constraint above (layers can only be added to a single map), the over
|
|||||||
|
|
||||||
Previously, a graticule was not a layer. Now it is. See the graticule example for details on how to add a graticule layer to your map.
|
Previously, a graticule was not a layer. Now it is. See the graticule example for details on how to add a graticule layer to your map.
|
||||||
|
|
||||||
|
##### `ol/format/Feature` API change
|
||||||
|
|
||||||
|
The `getLastExtent()` method, which was required for custom `tileLoadFunction`s in `ol/source/Vector`, has been removed because it is no longer needed (see below).
|
||||||
|
|
||||||
|
##### `ol/VectorTile` API changes
|
||||||
|
|
||||||
|
* Removal of the `getProjection()` and `setProjection()` methods. These were used in custom `tileLoadFunction`s on `ol/source/VectorTile`, which work differently now (see below).
|
||||||
|
* Removal of the `getExtent()` and `setExtent()` methods. These were used in custom `tileLoadFunction`s on `ol/source/VectorTile`, which work differently now (see below).
|
||||||
|
|
||||||
|
##### Custom tileLoadFunction on a VectorTile source needs changes
|
||||||
|
|
||||||
|
Previously, applications needed to call `setProjection()` and `setExtent()` on the tile in a custom `tileLoadFunction` on `ol/source/VectorTile`. The format's `getLastExtent()` method was used to get the extent. All this is no longer needed. Instead, the `extent` (first argument to the loader function) and `projection` (third argument to the loader function) are simply passed as `extent` and `featureProjection` options to the format's `readFeatures()` method.
|
||||||
|
|
||||||
|
Example for an old `tileLoadFunction`:
|
||||||
|
|
||||||
|
```js
|
||||||
|
function(tile, url) {
|
||||||
|
tile.setLoader(function() {
|
||||||
|
fetch(url).then(function(response) {
|
||||||
|
response.arrayBuffer().then(function(data) {
|
||||||
|
var format = tile.getFormat();
|
||||||
|
tile.setProjection(format.readProjection(data));
|
||||||
|
tile.setFeatures(format.readFeatures(data, {
|
||||||
|
// featureProjection is not required for ol/format/MVT
|
||||||
|
featureProjection: map.getView().getProjection()
|
||||||
|
}));
|
||||||
|
tile.setExtent(format.getLastExtent());
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
This function needs to be changed to:
|
||||||
|
|
||||||
|
```js
|
||||||
|
function(tile, url) {
|
||||||
|
tile.setLoader(function(extent, resolution, projection) {
|
||||||
|
fetch(url).then(function(response) {
|
||||||
|
response.arrayBuffer().then(function(data) {
|
||||||
|
var format = tile.getFormat();
|
||||||
|
tile.setFeatures(format.readFeatures(data, {
|
||||||
|
// extent is only required for ol/format/MVT
|
||||||
|
extent: extent,
|
||||||
|
featureProjection: projection
|
||||||
|
}));
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
##### Drop of support for the experimental WebGL renderer
|
##### Drop of support for the experimental WebGL renderer
|
||||||
|
|
||||||
The WebGL map and layers renderers are gone, replaced by a `WebGLHelper` function that provides a lightweight,
|
The WebGL map and layers renderers are gone, replaced by a `WebGLHelper` function that provides a lightweight,
|
||||||
@@ -118,8 +265,31 @@ The removed classes and components are:
|
|||||||
Following the removal of the experimental WebGL renderer, the AtlasManager has been removed as well. The atlas was only used by this renderer.
|
Following the removal of the experimental WebGL renderer, the AtlasManager has been removed as well. The atlas was only used by this renderer.
|
||||||
The non API `getChecksum` functions of the style is also removed.
|
The non API `getChecksum` functions of the style is also removed.
|
||||||
|
|
||||||
|
##### Change of the behavior of the vector source's clear() and refresh() methods
|
||||||
|
|
||||||
|
The `ol/source/Vector#clear()` method no longer triggers a reload of the data from the server. If you were previously using `clear()` to refetch from the server, you now have to use `refresh()`.
|
||||||
|
|
||||||
|
The `ol/source/Vector#refresh()` method now removes all features from the source and triggers a reload of the data from the server. If you were previously using the `refresh()` method to re-render a vector layer, you should instead call `ol/layer/Vector#changed()`.
|
||||||
|
|
||||||
|
##### Renaming of `getGetFeatureInfoUrl` to `getFeatureInfoUrl`
|
||||||
|
|
||||||
|
The `getGetFeatureInfoUrl` of `ol/source/ImageWMS` and `ol/source/TileWMS` is now called `getFeatureInfoUrl`.
|
||||||
|
|
||||||
|
##### `getFeaturesAtPixel` always returns an array
|
||||||
|
|
||||||
|
`getFeaturesAtPixel` now returns an empty array instead of null if no features were found.
|
||||||
|
|
||||||
|
##### Hit detection with unfilled styles
|
||||||
|
|
||||||
|
Hit detection over styled Circle geometry and Circle and RegularShape styles is now consistent with that for styled Polygon geometry. There is no hit detection over the interior of unfilled shapes. To get the previous behavior, specify a Fill style with transparent color.
|
||||||
|
|
||||||
#### Other changes
|
#### Other changes
|
||||||
|
|
||||||
|
##### Allow declutter in image render mode
|
||||||
|
|
||||||
|
It is now possible to configure vector tile layers with `declutter: true` and `renderMode: 'image'`. However, note that decluttering will be done per tile, resulting in labels and point symbols getting cut off at tile boundaries.
|
||||||
|
Until now, using both options forced the render mode to be `hybrid`.
|
||||||
|
|
||||||
##### Always load tiles while animating or interacting
|
##### Always load tiles while animating or interacting
|
||||||
|
|
||||||
`ol/PluggableMap` and subclasses no longer support the `loadTilesWhileAnimating` and `loadTilesWhileInteracting` options. These options were used to enable tile loading during animations and interactions. With the new DOM composition render strategy, it is no longer necessary to postpone tile loading until after animations or interactions.
|
`ol/PluggableMap` and subclasses no longer support the `loadTilesWhileAnimating` and `loadTilesWhileInteracting` options. These options were used to enable tile loading during animations and interactions. With the new DOM composition render strategy, it is no longer necessary to postpone tile loading until after animations or interactions.
|
||||||
|
|||||||
857
changelog/v6.0.0.md
Normal file
857
changelog/v6.0.0.md
Normal file
@@ -0,0 +1,857 @@
|
|||||||
|
# 6.0.0
|
||||||
|
|
||||||
|
Wow. The 6.0 release includes changes from 1780 commits in 544 pull requests since the 5.3 release. Thanks to all who contributed to this effort.
|
||||||
|
|
||||||
|
A major feature in this release is the ability to compose layers with different renderer types. Previously, the map used a single rendering strategy, and all layers in your map had to implement that strategy. Now it is possible to have a map with layers that use different rendering technologies. This makes it possible, for example, to have Canvas (2D) layer composed together with a WebGL based layer in the same map. It is also possible to create layers with custom renderers. So you could have a map that uses another library (like d3) to render one layer and use OpenLayers to render the other layers. We will continue to take advantage of this new flexibility in future releases.
|
||||||
|
|
||||||
|
In addition, the 6.0 release includes a number of vector tile rendering improvements, and should have a lower memory footprint overall. The release also includes a number of experimental features that are not yet part of the stable API. Take a look through the examples for a new WebGL based renderer and the experimental `useGeographic()` function. Watch upcoming releases for more detail on these.
|
||||||
|
|
||||||
|
This release includes a number of backwards incompatible changes. Take a careful look at the notes below when upgrading your application from the 5.3 release.
|
||||||
|
|
||||||
|
#### Backwards incompatible changes
|
||||||
|
|
||||||
|
##### Usage of `map.forEachLayerAtPixel`
|
||||||
|
|
||||||
|
Due to performance considerations, the layers in a map will sometimes be rendered into one
|
||||||
|
single canvas instead of separate elements.
|
||||||
|
This means `map.forEachLayerAtPixel` will bring up false positives.
|
||||||
|
|
||||||
|
The easiest solution to avoid that is to assign different `className` properties to each layer like so:
|
||||||
|
```js
|
||||||
|
new Layer({
|
||||||
|
// ...
|
||||||
|
className: 'my-layer'
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
Please note that this may incur a significant performance loss when dealing with many layers and/or
|
||||||
|
targetting mobile devices.
|
||||||
|
|
||||||
|
##### Removal of `TOUCH` constant from `ol/has`
|
||||||
|
|
||||||
|
If you were previously using this constant, you can check if `'ontouchstart'` is defined in `window` instead.
|
||||||
|
|
||||||
|
```js
|
||||||
|
if ('ontouchstart' in window) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of `GEOLOCATION` constant from `ol/has`
|
||||||
|
|
||||||
|
If you were previously using this constant, you can check if `'geolocation'` is defined in `navigator` instead.
|
||||||
|
|
||||||
|
```js
|
||||||
|
if ('geolocation' in navigator) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of CSS print rules
|
||||||
|
|
||||||
|
The CSS media print rules were removed from the `ol.css` file. To get the previous behavior, use the following CSS:
|
||||||
|
|
||||||
|
```css
|
||||||
|
@media print {
|
||||||
|
.ol-control {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Removal of optional this arguments
|
||||||
|
|
||||||
|
The optional this (i.e. opt_this) arguments were removed from the following methods.
|
||||||
|
Please use closures, the es6 arrow function or the bind method to achieve this effect (Bind is explained here:
|
||||||
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
||||||
|
|
||||||
|
* `forEachCorner` in `ol/extent`
|
||||||
|
* `LRUCache#forEach`
|
||||||
|
* `RBush#forEach` and `RBush#forEachInExtent`
|
||||||
|
|
||||||
|
##### The `setCenter`, `setZoom`, `setResolution` and `setRotation` methods on `ol/View` do not bypass constraints anymore
|
||||||
|
|
||||||
|
Previously, these methods allowed setting values that were inconsistent with the given view constraints.
|
||||||
|
This is no longer the case and all changes to the view state now follow the same logic:
|
||||||
|
target values are provided and constraints are applied on these to determine the actual values to be used.
|
||||||
|
|
||||||
|
##### Removal of the `constrainResolution` option on `View.fit`, `PinchZoom`, `MouseWheelZoom` and `ol/interaction.js`
|
||||||
|
|
||||||
|
The `constrainResolution` option is now only supported by the `View` class. A `View.setConstrainResolution` method was added as well.
|
||||||
|
|
||||||
|
Generally, the responsibility of applying center/rotation/resolutions constraints was moved from interactions and controls to the `View` class.
|
||||||
|
|
||||||
|
##### The view `extent` option now applies to the whole viewport
|
||||||
|
|
||||||
|
Previously, this options only constrained the view *center*. This behaviour can still be obtained by specifying `constrainCenterOnly` in the view options.
|
||||||
|
|
||||||
|
As a side effect, the view `rotate` method is gone and has been replaced with `adjustRotation` which takes a delta as input.
|
||||||
|
|
||||||
|
##### The view is constrained so only one world is visible
|
||||||
|
|
||||||
|
Previously, maps showed multiple worlds at low zoom levels. In addition, it used to be possible to pan off the north or south edge of the world. Now, the view is restricted to show only one world, and you cannot pan off the edge. To get the previous behavior, configure the `ol/View` with `multiWorld: true`.
|
||||||
|
|
||||||
|
##### Removal of deprecated methods
|
||||||
|
|
||||||
|
The `inherits` function that was used to inherit the prototype methods from one constructor into another has been removed.
|
||||||
|
The standard ECMAScript classes should be used instead.
|
||||||
|
|
||||||
|
The deprecated `getSnapToPixel` and `setSnapToPixel` functions from the `ImageStyle` class have been removed.
|
||||||
|
|
||||||
|
##### New internal tile coordinates
|
||||||
|
|
||||||
|
Previously, the internal tile coordinates used in the library had an unusual row order – the origin of the tile coordinate system was at the top left as expected, but the rows increased upwards. This meant that all tile coordinates within a tile grid's extent had negative `y` values.
|
||||||
|
|
||||||
|
Now, the internal tile coordinates used in the library have the same row order as standard (e.g. XYZ) tile coordinates. The origin is at the top left (as before), and rows or `y` values increase downward. So the top left tile of a tile grid is now `0, 0`, whereas it was `0, -1` before.
|
||||||
|
|
||||||
|
```
|
||||||
|
x, y values for tile coordinates
|
||||||
|
|
||||||
|
origin
|
||||||
|
*__________________________
|
||||||
|
| | | |
|
||||||
|
| 0, 0 | 1, 0 | 2, 0 |
|
||||||
|
|________|________|________|
|
||||||
|
| | | |
|
||||||
|
| 0, 1 | 1, 1 | 2, 1 |
|
||||||
|
|________|________|________|
|
||||||
|
| | | |
|
||||||
|
| 0, 2 | 1, 2 | 2, 2 |
|
||||||
|
|________|________|________|
|
||||||
|
```
|
||||||
|
|
||||||
|
This change should only affect you if you were using a custom `tileLoadFunction` or `tileUrlFunction`. For example, if you used to have a `tileUrlFunction` that looked like this:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// before
|
||||||
|
function tileUrlFunction(tileCoord) {
|
||||||
|
const z = tileCoord[0];
|
||||||
|
const x = tileCoord[1];
|
||||||
|
const y = -tileCoord[2] - 1;
|
||||||
|
// do something with z, x, y
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
You would now do something like this:
|
||||||
|
```js
|
||||||
|
// after
|
||||||
|
function tileUrlFunction(tileCoord) {
|
||||||
|
const z = tileCoord[0];
|
||||||
|
const x = tileCoord[1];
|
||||||
|
const y = tileCoord[2];
|
||||||
|
// do something with z, x, y
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
In addition (this should be exceedingly rare), if you previously created a `ol/tilegrid/WMTS` by hand and you were providing an array of `sizes`, you no longer have to provide a negative height if your tile origin is the top-left corner (the common case). On the other hand, if you are providing a custom array of `sizes` and your origin is the bottom of the grid (this is uncommon), your height values must now be negative.
|
||||||
|
|
||||||
|
##### Removal of the "vector" render mode for vector tile layers
|
||||||
|
|
||||||
|
If you were previously using `VectorTile` layers with `renderMode: 'vector'`, you have to remove this configuration option. That mode was removed. `'hybrid'` (default) and `'image'` are still available.
|
||||||
|
|
||||||
|
##### Removal of the "renderMode" option for vector layers
|
||||||
|
|
||||||
|
If you were previously using `Vector` layers with `renderMode: 'image'`, you have to remove this configuration option. Instead, use the new `ol/layer/VectorImage` layer with your `ol/source/Vector`.
|
||||||
|
|
||||||
|
##### New declutter behavior
|
||||||
|
|
||||||
|
If a map has more than one layer with `declutter` set to true, decluttering now considers all `Vector` and `VectorTile` layers, instead of decluttering each layer separately. Only `VectorImage` layers continue to be decluttered separately. The higher the z-index of a layer, the higher the priority of its decluttered items.
|
||||||
|
|
||||||
|
Within a layer, the declutter order has changed. Previously, styles with a lower `zIndex` were prioritized over those with a higher `zIndex`. Now the opposite order is used.
|
||||||
|
|
||||||
|
On vector layers, even if decluttered images or texts have a lower z-Index than polygons or lines, they will now be rendered on top of the polygons or lines. For vector tile layers, this was the case already in previous releases.
|
||||||
|
|
||||||
|
##### New `prerender` and `postrender` layer events replace old `precompose`, `render` and `postcompose` events
|
||||||
|
|
||||||
|
If you were previously registering for `precompose` and `postcompose` events, you should now register for `prerender` and `postrender` events on layers. Instead of the previous `render` event, you should now listen for `postrender`. Layers are no longer composed to a single Canvas element. Instead, they are added to the map viewport as individual elements.
|
||||||
|
|
||||||
|
##### New `getVectorContext` function provides access to the immediate vector rendering API
|
||||||
|
|
||||||
|
Previously, render events included a `vectorContext` property that allowed you to render features or geometries directly to the map. This is still possible, but you now have to explicitly create a vector context with the `getVectorContext` function. This change makes the immediate rendering API an explicit dependency if your application uses it. If you don't use this API, your application bundle will not include the vector rendering modules (as it did before).
|
||||||
|
|
||||||
|
Here is an abbreviated example of how to use the `getVectorContext` function:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import {getVectorContext} from 'ol/render';
|
||||||
|
|
||||||
|
// construct your map and layers as usual
|
||||||
|
|
||||||
|
layer.on('postrender', function(event) {
|
||||||
|
const vectorContext = getVectorContext(event);
|
||||||
|
// use any of the drawing methods on the vector context
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Layers can only be added to a single map
|
||||||
|
|
||||||
|
Previously, it was possible to render a single layer in two maps. Now, each layer can only belong to a single map (in the same way that a single DOM element can only have one parent).
|
||||||
|
|
||||||
|
##### The `OverviewMap` requires a list of layers.
|
||||||
|
|
||||||
|
Due to the constraint above (layers can only be added to a single map), the overview map needs to be constructed with a list of layers.
|
||||||
|
|
||||||
|
##### The `ol/Graticule` has been replaced by `ol/layer/Graticule`
|
||||||
|
|
||||||
|
Previously, a graticule was not a layer. Now it is. See the graticule example for details on how to add a graticule layer to your map.
|
||||||
|
|
||||||
|
##### `ol/format/Feature` API change
|
||||||
|
|
||||||
|
The `getLastExtent()` method, which was required for custom `tileLoadFunction`s in `ol/source/Vector`, has been removed because it is no longer needed (see below).
|
||||||
|
|
||||||
|
##### `ol/VectorTile` API changes
|
||||||
|
|
||||||
|
* Removal of the `getProjection()` and `setProjection()` methods. These were used in custom `tileLoadFunction`s on `ol/source/VectorTile`, which work differently now (see below).
|
||||||
|
* Removal of the `getExtent()` and `setExtent()` methods. These were used in custom `tileLoadFunction`s on `ol/source/VectorTile`, which work differently now (see below).
|
||||||
|
|
||||||
|
##### Custom tileLoadFunction on a VectorTile source needs changes
|
||||||
|
|
||||||
|
Previously, applications needed to call `setProjection()` and `setExtent()` on the tile in a custom `tileLoadFunction` on `ol/source/VectorTile`. The format's `getLastExtent()` method was used to get the extent. All this is no longer needed. Instead, the `extent` (first argument to the loader function) and `projection` (third argument to the loader function) are simply passed as `extent` and `featureProjection` options to the format's `readFeatures()` method.
|
||||||
|
|
||||||
|
Example for an old `tileLoadFunction`:
|
||||||
|
|
||||||
|
```js
|
||||||
|
function(tile, url) {
|
||||||
|
tile.setLoader(function() {
|
||||||
|
fetch(url).then(function(response) {
|
||||||
|
response.arrayBuffer().then(function(data) {
|
||||||
|
var format = tile.getFormat();
|
||||||
|
tile.setProjection(format.readProjection(data));
|
||||||
|
tile.setFeatures(format.readFeatures(data, {
|
||||||
|
// featureProjection is not required for ol/format/MVT
|
||||||
|
featureProjection: map.getView().getProjection()
|
||||||
|
}));
|
||||||
|
tile.setExtent(format.getLastExtent());
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
This function needs to be changed to:
|
||||||
|
|
||||||
|
```js
|
||||||
|
function(tile, url) {
|
||||||
|
tile.setLoader(function(extent, resolution, projection) {
|
||||||
|
fetch(url).then(function(response) {
|
||||||
|
response.arrayBuffer().then(function(data) {
|
||||||
|
var format = tile.getFormat();
|
||||||
|
tile.setFeatures(format.readFeatures(data, {
|
||||||
|
// extent is only required for ol/format/MVT
|
||||||
|
extent: extent,
|
||||||
|
featureProjection: projection
|
||||||
|
}));
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Drop of support for the experimental WebGL renderer
|
||||||
|
|
||||||
|
The WebGL map and layers renderers are gone, replaced by a `WebGLHelper` function that provides a lightweight,
|
||||||
|
low-level access to the WebGL API. This is implemented in a new `WebGLPointsLayer` which does simple rendering of large number
|
||||||
|
of points with custom shaders.
|
||||||
|
|
||||||
|
This is now used in the `Heatmap` layer.
|
||||||
|
|
||||||
|
The removed classes and components are:
|
||||||
|
* `WebGLMap` and `WebGLMapRenderer`
|
||||||
|
* `WebGLLayerRenderer`
|
||||||
|
* `WebGLImageLayer` and `WebGLImageLayerRenderer`
|
||||||
|
* `WebGLTileLayer` and `WebGLTileLayerRenderer`
|
||||||
|
* `WebGLVectorLayer` and `WebGLVectorLayerRenderer`
|
||||||
|
* `WebGLReplay` and derived classes, along with associated shaders
|
||||||
|
* `WebGLReplayGroup`
|
||||||
|
* `WebGLImmediateRenderer`
|
||||||
|
* `WebGLMap`
|
||||||
|
* The shader build process using `mustache` and the `Makefile` at the root
|
||||||
|
|
||||||
|
##### Removal of the AtlasManager
|
||||||
|
|
||||||
|
Following the removal of the experimental WebGL renderer, the AtlasManager has been removed as well. The atlas was only used by this renderer.
|
||||||
|
The non API `getChecksum` functions of the style is also removed.
|
||||||
|
|
||||||
|
##### Change of the behavior of the vector source's clear() and refresh() methods
|
||||||
|
|
||||||
|
The `ol/source/Vector#clear()` method no longer triggers a reload of the data from the server. If you were previously using `clear()` to refetch from the server, you now have to use `refresh()`.
|
||||||
|
|
||||||
|
The `ol/source/Vector#refresh()` method now removes all features from the source and triggers a reload of the data from the server. If you were previously using the `refresh()` method to re-render a vector layer, you should instead call `ol/layer/Vector#changed()`.
|
||||||
|
|
||||||
|
##### Renaming of `getGetFeatureInfoUrl` to `getFeatureInfoUrl`
|
||||||
|
|
||||||
|
The `getGetFeatureInfoUrl` of `ol/source/ImageWMS` and `ol/source/TileWMS` is now called `getFeatureInfoUrl`.
|
||||||
|
|
||||||
|
##### `getFeaturesAtPixel` always returns an array
|
||||||
|
|
||||||
|
`getFeaturesAtPixel` now returns an empty array instead of null if no features were found.
|
||||||
|
|
||||||
|
##### Hit detection with unfilled styles
|
||||||
|
|
||||||
|
Hit detection over styled Circle geometry and Circle and RegularShape styles is now consistent with that for styled Polygon geometry. There is no hit detection over the interior of unfilled shapes. To get the previous behavior, specify a Fill style with transparent color.
|
||||||
|
|
||||||
|
#### Other changes
|
||||||
|
|
||||||
|
##### Allow declutter in image render mode
|
||||||
|
|
||||||
|
It is now possible to configure vector tile layers with `declutter: true` and `renderMode: 'image'`. However, note that decluttering will be done per tile, resulting in labels and point symbols getting cut off at tile boundaries.
|
||||||
|
Until now, using both options forced the render mode to be `hybrid`.
|
||||||
|
|
||||||
|
##### Always load tiles while animating or interacting
|
||||||
|
|
||||||
|
`ol/PluggableMap` and subclasses no longer support the `loadTilesWhileAnimating` and `loadTilesWhileInteracting` options. These options were used to enable tile loading during animations and interactions. With the new DOM composition render strategy, it is no longer necessary to postpone tile loading until after animations or interactions.
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* [#10036](https://github.com/openlayers/openlayers/pull/10036) - uploading local resources to codesandbox ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#10035](https://github.com/openlayers/openlayers/pull/10035) - Support building the legacy build on windows ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10034](https://github.com/openlayers/openlayers/pull/10034) - Mark experimental examples as experimental ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#10009](https://github.com/openlayers/openlayers/pull/10009) - Geometry editing with a user projection ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10024](https://github.com/openlayers/openlayers/pull/10024) - Allow EventTarget to use a different default target ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#10031](https://github.com/openlayers/openlayers/pull/10031) - Cache starting coordinates and add mapBrowserEvent to translateEvent ([@flexjoly](https://github.com/flexjoly))
|
||||||
|
* [#10029](https://github.com/openlayers/openlayers/pull/10029) - Fix link to map default controls ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#10032](https://github.com/openlayers/openlayers/pull/10032) - Do not remove listeners that do not exist ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#10030](https://github.com/openlayers/openlayers/pull/10030) - Add a rule to disallow describe.only() and it.only() in tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10023](https://github.com/openlayers/openlayers/pull/10023) - Enhance regular shape example docs ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#10025](https://github.com/openlayers/openlayers/pull/10025) - Bugfix for vector-tile-selection example ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#10007](https://github.com/openlayers/openlayers/pull/10007) - Changes for #9395 CircleStyle inconsistency ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#10027](https://github.com/openlayers/openlayers/pull/10027) - Confirm zoomByDelta calls view.animate() ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10016](https://github.com/openlayers/openlayers/pull/10016) - WebGL Points Layer: allow expressions in literal style ([@jahow](https://github.com/jahow))
|
||||||
|
* [#10017](https://github.com/openlayers/openlayers/pull/10017) - updated jsdoc-plugin-typescript ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#10012](https://github.com/openlayers/openlayers/pull/10012) - Use the user projection for the map event coordinate ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10018](https://github.com/openlayers/openlayers/pull/10018) - Recover from skip feature removal regressions ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#10013](https://github.com/openlayers/openlayers/pull/10013) - Minor reworking of the modify interaction ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10015](https://github.com/openlayers/openlayers/pull/10015) - Fix hit detection test for wrapped geometries ([@jahow](https://github.com/jahow))
|
||||||
|
* [#10011](https://github.com/openlayers/openlayers/pull/10011) - Fix a type checking error on the WebGL points renderer ([@jahow](https://github.com/jahow))
|
||||||
|
* [#10010](https://github.com/openlayers/openlayers/pull/10010) - Require type and listener for addEventListener/removeEventListener ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9994](https://github.com/openlayers/openlayers/pull/9994) - Add a new layer type: WebGLPointsLayer ([@jahow](https://github.com/jahow))
|
||||||
|
* [#10006](https://github.com/openlayers/openlayers/pull/10006) - Check hits for wrapped around geometries ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#10004](https://github.com/openlayers/openlayers/pull/10004) - Return a new simplified geometry after modification ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#10005](https://github.com/openlayers/openlayers/pull/10005) - Fix some cosmetics on Select interaction ([@tkohr](https://github.com/tkohr))
|
||||||
|
* [#10003](https://github.com/openlayers/openlayers/pull/10003) - Add back Select interaction without overlay ([@tkohr](https://github.com/tkohr))
|
||||||
|
* [#10000](https://github.com/openlayers/openlayers/pull/10000) - Adopt JSDoc annotations to allow '.d.ts' generation ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#10001](https://github.com/openlayers/openlayers/pull/10001) - reduced typecasts in layerrenderer ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9986](https://github.com/openlayers/openlayers/pull/9986) - Make Circle geometry hit detection consistent with Polygon ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9999](https://github.com/openlayers/openlayers/pull/9999) - fixed typescript issues ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9997](https://github.com/openlayers/openlayers/pull/9997) - Avoid error from tsc ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9993](https://github.com/openlayers/openlayers/pull/9993) - Add geographic tests for hasFeatureAtPixel and getFeaturesAtPixel ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9992](https://github.com/openlayers/openlayers/pull/9992) - Rendering test instructions ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9982](https://github.com/openlayers/openlayers/pull/9982) - Don't use vendor prefixes for the transform property ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9989](https://github.com/openlayers/openlayers/pull/9989) - Correct getFeaturesAtPixel spelling and grammar ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9988](https://github.com/openlayers/openlayers/pull/9988) - Additional changes to work with user projection ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9973](https://github.com/openlayers/openlayers/pull/9973) - Make map work with user projected coordinates ([@tkohr](https://github.com/tkohr))
|
||||||
|
* [#9981](https://github.com/openlayers/openlayers/pull/9981) - Remove simplified geometry cache ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9980](https://github.com/openlayers/openlayers/pull/9980) - Get simplified transformed geometry ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9984](https://github.com/openlayers/openlayers/pull/9984) - Don't attempt to render when there is no source ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9983](https://github.com/openlayers/openlayers/pull/9983) - getFeaturesAtPixel always returns array ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9960](https://github.com/openlayers/openlayers/pull/9960) - Always dispatch pointermove events, but calculate event pixel and coordinate lazily ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9978](https://github.com/openlayers/openlayers/pull/9978) - Handle empty source tiles and queue them properly ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9974](https://github.com/openlayers/openlayers/pull/9974) - Introduces the _withCredentials flag ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9966](https://github.com/openlayers/openlayers/pull/9966) - Document how to circumvent the canvas reuse optimization ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9961](https://github.com/openlayers/openlayers/pull/9961) - SelectInteraction removal ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9957](https://github.com/openlayers/openlayers/pull/9957) - Get hasOverlay from child element count ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9969](https://github.com/openlayers/openlayers/pull/9969) - Dev version based on time ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9965](https://github.com/openlayers/openlayers/pull/9965) - Transform the layer extent when a user projection is set ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9967](https://github.com/openlayers/openlayers/pull/9967) - Enable HTTPS on Mapbox tile layer in webgl sprite example ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9964](https://github.com/openlayers/openlayers/pull/9964) - Update various examples to use the Mapbox v4-API ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#9963](https://github.com/openlayers/openlayers/pull/9963) - Update to work with globby@10 ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9962](https://github.com/openlayers/openlayers/pull/9962) - Improve the API description for "multiWorld" ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9710](https://github.com/openlayers/openlayers/pull/9710) - Additional Typescript compliance fixes ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9400](https://github.com/openlayers/openlayers/pull/9400) - Changes to parsing of KML displayName ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9959](https://github.com/openlayers/openlayers/pull/9959) - Set frame state extent when creating frame state ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9899](https://github.com/openlayers/openlayers/pull/9899) - Add hidpi option for ol.source.TileArcGISRest ([@LevN0](https://github.com/LevN0))
|
||||||
|
* [#9723](https://github.com/openlayers/openlayers/pull/9723) - Pass the opt_direction value to the getConstrainedResolution function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9903](https://github.com/openlayers/openlayers/pull/9903) - Respect multiWorld: false when an explicit extent constraint would be respected ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9846](https://github.com/openlayers/openlayers/pull/9846) - Make API work with user projected coordinates ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9935](https://github.com/openlayers/openlayers/pull/9935) - Add missing import for LinearRing ([@Abdullah0991](https://github.com/Abdullah0991))
|
||||||
|
* [#9931](https://github.com/openlayers/openlayers/pull/9931) - Custom Overview Map CSS fix and rotateWithView option ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9951](https://github.com/openlayers/openlayers/pull/9951) - New test for Image layer with extent and rotation ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9831](https://github.com/openlayers/openlayers/pull/9831) - Support a LAYER param in getLegendUrl ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9942](https://github.com/openlayers/openlayers/pull/9942) - Renaming getGetFeatureInfoUrl ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9930](https://github.com/openlayers/openlayers/pull/9930) - Correct extent clipping in ImageLayer ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9923](https://github.com/openlayers/openlayers/pull/9923) - Cancel postrender before disposing renderer ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9925](https://github.com/openlayers/openlayers/pull/9925) - Workflow to publish a dev release ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9919](https://github.com/openlayers/openlayers/pull/9919) - Revise and correct OverviewMap rotation ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9908](https://github.com/openlayers/openlayers/pull/9908) - LineString.forEachSegment callback API description ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9909](https://github.com/openlayers/openlayers/pull/9909) - Clone the text's padding ([@oterral](https://github.com/oterral))
|
||||||
|
* [#9907](https://github.com/openlayers/openlayers/pull/9907) - Prevent endless cycles observed in OverviewMap ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9897](https://github.com/openlayers/openlayers/pull/9897) - Use pointer events everywhere ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9888](https://github.com/openlayers/openlayers/pull/9888) - Use PointerEvent polyfill instead of our own abstraction ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9896](https://github.com/openlayers/openlayers/pull/9896) - Misc. WebGL fixes ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9889](https://github.com/openlayers/openlayers/pull/9889) - Event performance improvements ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9882](https://github.com/openlayers/openlayers/pull/9882) - Handle rotation in the Box Selection example ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9877](https://github.com/openlayers/openlayers/pull/9877) - Fix -1 pixel buffer for vector tile extent ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9873](https://github.com/openlayers/openlayers/pull/9873) - Only check extent when a url tile coordinate is available ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9871](https://github.com/openlayers/openlayers/pull/9871) - Properly handle tile source key change ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9870](https://github.com/openlayers/openlayers/pull/9870) - Declutter multi geometries per geometry instead of per feature ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9872](https://github.com/openlayers/openlayers/pull/9872) - Check extent for wrapped tile coordinate ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9869](https://github.com/openlayers/openlayers/pull/9869) - Only get squared tolerance once per render ([@MoonE](https://github.com/MoonE))
|
||||||
|
* [#9389](https://github.com/openlayers/openlayers/pull/9389) - Replaces listener test in tile.tests.js and removes artifacts ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9855](https://github.com/openlayers/openlayers/pull/9855) - Make sure vector tile load handler is called ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9864](https://github.com/openlayers/openlayers/pull/9864) - Properly update frameState.animate and deal with non-numeric layer opacity ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9858](https://github.com/openlayers/openlayers/pull/9858) - Run npm audit fix ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9844](https://github.com/openlayers/openlayers/pull/9844) - Set initial tile state to EMPTY when outside source extent ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9839](https://github.com/openlayers/openlayers/pull/9839) - Enable correct display of side-by-side example when not using the examples template ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9838](https://github.com/openlayers/openlayers/pull/9838) - Make WMSServerType appear in API docs ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9754](https://github.com/openlayers/openlayers/pull/9754) - Export PDF example extent corrections ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9834](https://github.com/openlayers/openlayers/pull/9834) - Use nextzen for osm-vector-tiles example ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9833](https://github.com/openlayers/openlayers/pull/9833) - Remove accidentally added package-lock.json ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9826](https://github.com/openlayers/openlayers/pull/9826) - Accept additional args when publishing ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9812](https://github.com/openlayers/openlayers/pull/9812) - Make zDirection configurable on tile source ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9824](https://github.com/openlayers/openlayers/pull/9824) - Support zoom limits for layers ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9804](https://github.com/openlayers/openlayers/pull/9804) - Replacement for the Shared Views example ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9803](https://github.com/openlayers/openlayers/pull/9803) - Remove unused variable in MousePosition control ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9802](https://github.com/openlayers/openlayers/pull/9802) - Introduce EMPTY image state to deal with images outside the view extent ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9797](https://github.com/openlayers/openlayers/pull/9797) - Avoid false positives for line and polygon hit detection ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9794](https://github.com/openlayers/openlayers/pull/9794) - Fix linting error (import extension missing) ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#9792](https://github.com/openlayers/openlayers/pull/9792) - Improve documentation of getGetLegendGraphicUrl ([@marcjansen](https://github.com/marcjansen))
|
||||||
|
* [#9375](https://github.com/openlayers/openlayers/pull/9375) - Replaces reproj image.tests.js and tile.tests.js ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9762](https://github.com/openlayers/openlayers/pull/9762) - Get legend request ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9789](https://github.com/openlayers/openlayers/pull/9789) - Use Image.prototype.decode only when src is already set ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9778](https://github.com/openlayers/openlayers/pull/9778) - Return existing source tiles if at target resolution ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9622](https://github.com/openlayers/openlayers/pull/9622) - Avoid mutating input in EsriJSON format ([@kekel87](https://github.com/kekel87))
|
||||||
|
* [#9755](https://github.com/openlayers/openlayers/pull/9755) - Font loading improvements ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9767](https://github.com/openlayers/openlayers/pull/9767) - Fix hit detection for webgl layers on retina devices ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9774](https://github.com/openlayers/openlayers/pull/9774) - Fix observable properties documentation ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9757](https://github.com/openlayers/openlayers/pull/9757) - Use CanvasLineJoin and CanvasLienCap types instead of string ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9745](https://github.com/openlayers/openlayers/pull/9745) - Simplify heatmap's shaders ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9748](https://github.com/openlayers/openlayers/pull/9748) - Remove hit detection transforms from ol/renderer/webgl/PointsLayer ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9752](https://github.com/openlayers/openlayers/pull/9752) - Custom Animation example and the multiWorld view constraint ([@mike-000](https://github.com/mike-000))
|
||||||
|
* [#9751](https://github.com/openlayers/openlayers/pull/9751) - Add minArea typedef and ctor prop in DragZoom ([@logan-bounet](https://github.com/logan-bounet))
|
||||||
|
* [#9747](https://github.com/openlayers/openlayers/pull/9747) - Set world projection only for tile-pixels units ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9743](https://github.com/openlayers/openlayers/pull/9743) - Finalize IIIF Image API version 3 ([@lutzhelm](https://github.com/lutzhelm))
|
||||||
|
* [#9733](https://github.com/openlayers/openlayers/pull/9733) - Get rid of JSDoc warnings and fix fires arguments ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9732](https://github.com/openlayers/openlayers/pull/9732) - Fix EMPTY state and source key handling ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9724](https://github.com/openlayers/openlayers/pull/9724) - Fix wrong import in tutorial ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9722](https://github.com/openlayers/openlayers/pull/9722) - Remove unused param in getState function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9655](https://github.com/openlayers/openlayers/pull/9655) - Add hit detection on the WebGL points renderer ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9728](https://github.com/openlayers/openlayers/pull/9728) - Remove accidently added package-lock.json ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9719](https://github.com/openlayers/openlayers/pull/9719) - Use special MapTiler API key dedicated for OpenLayers examples ([@petrsloup](https://github.com/petrsloup))
|
||||||
|
* [#9714](https://github.com/openlayers/openlayers/pull/9714) - Update the circle style after setRadius calls ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9718](https://github.com/openlayers/openlayers/pull/9718) - Remove unused variable in ol/renderer/webgl/PointsLayer ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9711](https://github.com/openlayers/openlayers/pull/9711) - Remove extra space for the 'viewParams' attribute ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9712](https://github.com/openlayers/openlayers/pull/9712) - Allow an arbitrary tag to be used as feature id ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9709](https://github.com/openlayers/openlayers/pull/9709) - Try to make rendering tests run again in puppeteer ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9705](https://github.com/openlayers/openlayers/pull/9705) - Vector tile renderer optimizations and fixes ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9706](https://github.com/openlayers/openlayers/pull/9706) - Do not use self to check browser features ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9704](https://github.com/openlayers/openlayers/pull/9704) - Handle container reuse properly when layers are added/removed ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9701](https://github.com/openlayers/openlayers/pull/9701) - Remove will-change CSS rule for Overlay container ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9702](https://github.com/openlayers/openlayers/pull/9702) - Fix several TypeScript type check problems ([@lutzhelm](https://github.com/lutzhelm))
|
||||||
|
* [#9700](https://github.com/openlayers/openlayers/pull/9700) - Solves typescript related issues ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9699](https://github.com/openlayers/openlayers/pull/9699) - Fix MapTiler API usage ([@petrsloup](https://github.com/petrsloup))
|
||||||
|
* [#9636](https://github.com/openlayers/openlayers/pull/9636) - Remove and move code from ol/webgl ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9684](https://github.com/openlayers/openlayers/pull/9684) - List complete classes in doc navigation ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9685](https://github.com/openlayers/openlayers/pull/9685) - Remove glContext from RenderEvent ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9681](https://github.com/openlayers/openlayers/pull/9681) - Remove duplicates from api docs and make navigation more usable ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9677](https://github.com/openlayers/openlayers/pull/9677) - Add support for tile pixel projection in feature formats ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9679](https://github.com/openlayers/openlayers/pull/9679) - Set pixelTransform and inversePixelTransform as protected ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9678](https://github.com/openlayers/openlayers/pull/9678) - Update geography class urls ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9658](https://github.com/openlayers/openlayers/pull/9658) - Don't use HTMLImageElement.decode method on Safari ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9657](https://github.com/openlayers/openlayers/pull/9657) - Better documentation for getFeaturesInExtent function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9562](https://github.com/openlayers/openlayers/pull/9562) - Optimize the WebGL points renderer using a worker ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9394](https://github.com/openlayers/openlayers/pull/9394) - Introduces import snippets for static functions ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9638](https://github.com/openlayers/openlayers/pull/9638) - #9625: Add filter function to translate interaction ([@agpixdev](https://github.com/agpixdev))
|
||||||
|
* [#9644](https://github.com/openlayers/openlayers/pull/9644) - Use compose function from ol/transform ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9645](https://github.com/openlayers/openlayers/pull/9645) - Handle case of no used tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9640](https://github.com/openlayers/openlayers/pull/9640) - Import options directly instead of importing a typedef ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9641](https://github.com/openlayers/openlayers/pull/9641) - Only import what's needed from projections ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9637](https://github.com/openlayers/openlayers/pull/9637) - Detach label cache on Map#setTarget() ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9633](https://github.com/openlayers/openlayers/pull/9633) - Mark the `layers` property as optional in OverviewMap constructor ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9634](https://github.com/openlayers/openlayers/pull/9634) - Remove old Android workaround ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9629](https://github.com/openlayers/openlayers/pull/9629) - Clear overlay canvas when reusing containers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9626](https://github.com/openlayers/openlayers/pull/9626) - Remove TOUCH, POINTER and MSPOINTER from ol/has ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9624](https://github.com/openlayers/openlayers/pull/9624) - Remove typecasts in ol/control/OverviewMap ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9615](https://github.com/openlayers/openlayers/pull/9615) - Include full filename in import specifier ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9592](https://github.com/openlayers/openlayers/pull/9592) - Remove `layerState` param from `prepareFrame` and `renderFrame` function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9289](https://github.com/openlayers/openlayers/pull/9289) - Vector source geom ([@sbrunner](https://github.com/sbrunner))
|
||||||
|
* [#9608](https://github.com/openlayers/openlayers/pull/9608) - Use markdown link syntax in jsdoc ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9596](https://github.com/openlayers/openlayers/pull/9596) - Vector source / prevent adding features with duplicate id in the collection ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9604](https://github.com/openlayers/openlayers/pull/9604) - Use window instead of global in addEventListener ([@bartvde](https://github.com/bartvde))
|
||||||
|
* [#9599](https://github.com/openlayers/openlayers/pull/9599) - Create FUNDING.yml ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9601](https://github.com/openlayers/openlayers/pull/9601) - Use global addEventListener in PluggableMap ([@bartvde](https://github.com/bartvde))
|
||||||
|
* [#9584](https://github.com/openlayers/openlayers/pull/9584) - Reuse render target ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#6217](https://github.com/openlayers/openlayers/pull/6217) - Add primaryAction condition to DragPan ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9569](https://github.com/openlayers/openlayers/pull/9569) - Fix for change in Zoomify.js/CustomTile signature ([@engsterhold](https://github.com/engsterhold))
|
||||||
|
* [#9582](https://github.com/openlayers/openlayers/pull/9582) - Add app to mark inactive issues as stale ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9581](https://github.com/openlayers/openlayers/pull/9581) - Update webpack and use mode in the loader ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9576](https://github.com/openlayers/openlayers/pull/9576) - Remove geolocation detection from ol/has ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9575](https://github.com/openlayers/openlayers/pull/9575) - Rework exports for getUid and control defaults ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9574](https://github.com/openlayers/openlayers/pull/9574) - Update OL MapGuide example to point to my demo MapGuide Server. ([@jumpinjackie](https://github.com/jumpinjackie))
|
||||||
|
* [#9571](https://github.com/openlayers/openlayers/pull/9571) - Small examples improvements ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9572](https://github.com/openlayers/openlayers/pull/9572) - Add a note about CSS removal in upgrade-notes.md ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9570](https://github.com/openlayers/openlayers/pull/9570) - Remove CSS print rules in ol.css ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9563](https://github.com/openlayers/openlayers/pull/9563) - Fix @abstract and @module annotations ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9560](https://github.com/openlayers/openlayers/pull/9560) - Simplify loading detection loop ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9561](https://github.com/openlayers/openlayers/pull/9561) - Remove memory leak caused by label cache listeners ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9559](https://github.com/openlayers/openlayers/pull/9559) - Minify worker ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9558](https://github.com/openlayers/openlayers/pull/9558) - Stop listening for image decoding ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9550](https://github.com/openlayers/openlayers/pull/9550) - Setup for building workers ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9555](https://github.com/openlayers/openlayers/pull/9555) - Remove unused roundUpToPowerOfTwo function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9551](https://github.com/openlayers/openlayers/pull/9551) - Use HTMLImageElement.decode if available ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9500](https://github.com/openlayers/openlayers/pull/9500) - KML string validation with extendedData ([@edellucien](https://github.com/edellucien))
|
||||||
|
* [#9534](https://github.com/openlayers/openlayers/pull/9534) - Remove unnecessary parts from the Mapbox layer example ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9548](https://github.com/openlayers/openlayers/pull/9548) - Avoid cut off labels for italic fonts ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9549](https://github.com/openlayers/openlayers/pull/9549) - Remove unused getReplayTransform_ function in VectorTileLayer ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9545](https://github.com/openlayers/openlayers/pull/9545) - Avoid panning off the edge of the world ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9539](https://github.com/openlayers/openlayers/pull/9539) - Document existing error event type ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9541](https://github.com/openlayers/openlayers/pull/9541) - Upgrade to rbush@3 ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9543](https://github.com/openlayers/openlayers/pull/9543) - Update jsdoc-plugin-typescript to version 2.0.1 ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9536](https://github.com/openlayers/openlayers/pull/9536) - More font cache hits ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9537](https://github.com/openlayers/openlayers/pull/9537) - WebGL / Points renderer refactoring ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9546](https://github.com/openlayers/openlayers/pull/9546) - Lazily create the hit detection context ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9533](https://github.com/openlayers/openlayers/pull/9533) - Canvas optimizations ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9538](https://github.com/openlayers/openlayers/pull/9538) - Correct the module annotation for the vector image layer renderer ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9532](https://github.com/openlayers/openlayers/pull/9532) - Remove unused 'container' property in mapbox-layer example ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9530](https://github.com/openlayers/openlayers/pull/9530) - Fix spelling ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9489](https://github.com/openlayers/openlayers/pull/9489) - Fix Zoomify to display retina tiles ([@crubier](https://github.com/crubier))
|
||||||
|
* [#9525](https://github.com/openlayers/openlayers/pull/9525) - Support a custom render function for the Layer class ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9522](https://github.com/openlayers/openlayers/pull/9522) - Use https urls for mapbox.com ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9520](https://github.com/openlayers/openlayers/pull/9520) - [WIP] Improve IIIF tile source and parser documentation ([@lutzhelm](https://github.com/lutzhelm))
|
||||||
|
* [#9523](https://github.com/openlayers/openlayers/pull/9523) - Make the code simpler in the Mapbox example ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9519](https://github.com/openlayers/openlayers/pull/9519) - Use synchronous render in Mapbox example ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9518](https://github.com/openlayers/openlayers/pull/9518) - Fix hit detection for multiple layers when decluttering is off ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9516](https://github.com/openlayers/openlayers/pull/9516) - Upgrade ol-mapbox-style to v5 ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9505](https://github.com/openlayers/openlayers/pull/9505) - Avoid blurry vector tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9430](https://github.com/openlayers/openlayers/pull/9430) - Adds IIIF Image API tile source ([@lutzhelm](https://github.com/lutzhelm))
|
||||||
|
* [#9512](https://github.com/openlayers/openlayers/pull/9512) - Mapbox layer example improvement ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9511](https://github.com/openlayers/openlayers/pull/9511) - Update devDependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9504](https://github.com/openlayers/openlayers/pull/9504) - Minor examples fixes ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9466](https://github.com/openlayers/openlayers/pull/9466) - Declutter in correct order and for all layers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9497](https://github.com/openlayers/openlayers/pull/9497) - Fix earth radius in documentation ([@simonseyock](https://github.com/simonseyock))
|
||||||
|
* [#9493](https://github.com/openlayers/openlayers/pull/9493) - Upgrade jsdoc to v3.6.1 ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9490](https://github.com/openlayers/openlayers/pull/9490) - Misc. API doc improvements ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9492](https://github.com/openlayers/openlayers/pull/9492) - Fix zIndex handling for unmanaged layers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9388](https://github.com/openlayers/openlayers/pull/9388) - Restore code coverage report ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9487](https://github.com/openlayers/openlayers/pull/9487) - Avoid header expanding over examples ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9488](https://github.com/openlayers/openlayers/pull/9488) - Set the 'lang' attribute to the html tag in examples ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9484](https://github.com/openlayers/openlayers/pull/9484) - Build API docs in CI job ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9476](https://github.com/openlayers/openlayers/pull/9476) - Document events fired by interactions ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9475](https://github.com/openlayers/openlayers/pull/9475) - Call the color callback once per feature ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9477](https://github.com/openlayers/openlayers/pull/9477) - Tidy up the JSDoc events plugin ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9469](https://github.com/openlayers/openlayers/pull/9469) - Use nearest lower resolution of vector tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9452](https://github.com/openlayers/openlayers/pull/9452) - Fewer calls to the WebGL color callback ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9453](https://github.com/openlayers/openlayers/pull/9453) - Remove unnecessary closure and fix uniform type ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9459](https://github.com/openlayers/openlayers/pull/9459) - Use html-to-image instead of dom-to-image-more ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9450](https://github.com/openlayers/openlayers/pull/9450) - Set the interacting flag on pointerdrag instead of pointerdown ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9439](https://github.com/openlayers/openlayers/pull/9439) - Add attributionsCollapsible option to source/VectorTile ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9440](https://github.com/openlayers/openlayers/pull/9440) - Skip the header and bad data in CSV parsing ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9442](https://github.com/openlayers/openlayers/pull/9442) - Disable opacity transition for raster source sources ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9441](https://github.com/openlayers/openlayers/pull/9441) - Do not round view center to pixels ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9435](https://github.com/openlayers/openlayers/pull/9435) - Set the default values after the property name ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9433](https://github.com/openlayers/openlayers/pull/9433) - Remove unused private variables, remove trailing whitespace ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9416](https://github.com/openlayers/openlayers/pull/9416) - Implement rotate and translate functions for circle geometry ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9429](https://github.com/openlayers/openlayers/pull/9429) - Update all devDependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9425](https://github.com/openlayers/openlayers/pull/9425) - Remove unused ol/render/webgl module ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9418](https://github.com/openlayers/openlayers/pull/9418) - Re-export GeometryCollection in ol/geom ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9411](https://github.com/openlayers/openlayers/pull/9411) - Fix tile state condition in raster layer test ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9410](https://github.com/openlayers/openlayers/pull/9410) - Add new maxDelta property to MouseWheelZoom constructor ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9409](https://github.com/openlayers/openlayers/pull/9409) - Remove more opt_this parameters ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9286](https://github.com/openlayers/openlayers/pull/9286) - Disable transition when an interim tile is available ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9404](https://github.com/openlayers/openlayers/pull/9404) - View / apply constraints when an interaction starts ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9390](https://github.com/openlayers/openlayers/pull/9390) - Add a new WebGL example for filtering features ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9385](https://github.com/openlayers/openlayers/pull/9385) - PointsLayer added clear of the render Buffers on Source Change ([@Kai-W](https://github.com/Kai-W))
|
||||||
|
* [#9379](https://github.com/openlayers/openlayers/pull/9379) - Fix typo in vector tile source docs ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9368](https://github.com/openlayers/openlayers/pull/9368) - Show only one world ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9362](https://github.com/openlayers/openlayers/pull/9362) - Use local font "Ubuntu Regular" for rendering tests ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9357](https://github.com/openlayers/openlayers/pull/9357) - Render vector tiles at the view resolution ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9374](https://github.com/openlayers/openlayers/pull/9374) - Fix view initialization with min/max resolution constraint ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9364](https://github.com/openlayers/openlayers/pull/9364) - Replace clip.test.js with new tests ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9360](https://github.com/openlayers/openlayers/pull/9360) - Enables attributions for the RasterSource ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9365](https://github.com/openlayers/openlayers/pull/9365) - Fix View method name in upgrade notes ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9361](https://github.com/openlayers/openlayers/pull/9361) - Add a zDirection option for Zoomify - implements #9343 ([@lutzhelm](https://github.com/lutzhelm))
|
||||||
|
* [#9333](https://github.com/openlayers/openlayers/pull/9333) - Unify rendering tests ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9350](https://github.com/openlayers/openlayers/pull/9350) - Remove unnecessary css in examples ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9351](https://github.com/openlayers/openlayers/pull/9351) - More efficient default styles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9346](https://github.com/openlayers/openlayers/pull/9346) - Remove tilePixelRatio options from ol.source.VectorTile ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9345](https://github.com/openlayers/openlayers/pull/9345) - Update all dev dependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9341](https://github.com/openlayers/openlayers/pull/9341) - Remove unused ExecutorGroup methods ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9337](https://github.com/openlayers/openlayers/pull/9337) - Set map div size in example send to codesandbox ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9335](https://github.com/openlayers/openlayers/pull/9335) - Create codesandbox using the 'parcel' template ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9329](https://github.com/openlayers/openlayers/pull/9329) - Don't refresh the layer after addFeatures call ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9328](https://github.com/openlayers/openlayers/pull/9328) - Mark layerFilter in AtPixelOptions as optional ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9325](https://github.com/openlayers/openlayers/pull/9325) - Create a more accurate origin for tile positioning ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9320](https://github.com/openlayers/openlayers/pull/9320) - enhance tile-debug readability ([@RobertOrthofer](https://github.com/RobertOrthofer))
|
||||||
|
* [#9318](https://github.com/openlayers/openlayers/pull/9318) - Smart cache size ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9322](https://github.com/openlayers/openlayers/pull/9322) - Use closest lower source resolution for render tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9321](https://github.com/openlayers/openlayers/pull/9321) - Fixes #9294 (missing documention for methods with `@inheritDoc`) ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9319](https://github.com/openlayers/openlayers/pull/9319) - Add title to license to clarify that it is BSD 2-Clause ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9300](https://github.com/openlayers/openlayers/pull/9300) - Fix documentation about zoomDelta for ol.interaction.default function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9305](https://github.com/openlayers/openlayers/pull/9305) - Fixes failing tests for Chrome v74 ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9315](https://github.com/openlayers/openlayers/pull/9315) - Change CSS class for tooltips in measure example ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9137](https://github.com/openlayers/openlayers/pull/9137) - Refactor the way view constraints are handled & add a view extent constraint ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9313](https://github.com/openlayers/openlayers/pull/9313) - Re-enable and fix disabled tests ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9314](https://github.com/openlayers/openlayers/pull/9314) - Fix transpilation ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9308](https://github.com/openlayers/openlayers/pull/9308) - Simplify vector tile projection handling ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9312](https://github.com/openlayers/openlayers/pull/9312) - Update zoom levels for Stamen source ([@bartvde](https://github.com/bartvde))
|
||||||
|
* [#9310](https://github.com/openlayers/openlayers/pull/9310) - Add transition options to Stamen source ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9307](https://github.com/openlayers/openlayers/pull/9307) - Take line-height into account when measuring text height ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9306](https://github.com/openlayers/openlayers/pull/9306) - Set the canvas size to 0 on dispose ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9295](https://github.com/openlayers/openlayers/pull/9295) - Update ol-mapbox-style to fix broken mapbox-style example ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9292](https://github.com/openlayers/openlayers/pull/9292) - Downgrades puppeteer to `~1.11.0` ([@KaiVolland](https://github.com/KaiVolland))
|
||||||
|
* [#9266](https://github.com/openlayers/openlayers/pull/9266) - Full type definition for image vector layer options ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#9278](https://github.com/openlayers/openlayers/pull/9278) - Update Bing's imagerySet used in examples ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9270](https://github.com/openlayers/openlayers/pull/9270) - Update faq.md ([@bvx89](https://github.com/bvx89))
|
||||||
|
* [#9277](https://github.com/openlayers/openlayers/pull/9277) - Rotate API token ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9276](https://github.com/openlayers/openlayers/pull/9276) - Use the constructor options instead of changing the private variables ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9275](https://github.com/openlayers/openlayers/pull/9275) - Remove setDeclutter function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9273](https://github.com/openlayers/openlayers/pull/9273) - Fix WMS GetFeatureInfo examples ([@chrismayer](https://github.com/chrismayer))
|
||||||
|
* [#9246](https://github.com/openlayers/openlayers/pull/9246) - Add missing ol.css in mobile-full-screen example ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9264](https://github.com/openlayers/openlayers/pull/9264) - add question about resizing map element ([@tpluscode](https://github.com/tpluscode))
|
||||||
|
* [#9260](https://github.com/openlayers/openlayers/pull/9260) - Remove unused 'geometry' param from ol/render/canvas/Builder ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9254](https://github.com/openlayers/openlayers/pull/9254) - Add tileSize option to ol/source/TileJSON ([@petrsloup](https://github.com/petrsloup))
|
||||||
|
* [#9250](https://github.com/openlayers/openlayers/pull/9250) - Clearer behaviour of clear() and refresh() on sources ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9251](https://github.com/openlayers/openlayers/pull/9251) - Fix cache size calculation ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9110](https://github.com/openlayers/openlayers/pull/9110) - Add TilePixelRatio to Zoomify ([@crubier](https://github.com/crubier))
|
||||||
|
* [#9244](https://github.com/openlayers/openlayers/pull/9244) - add stylus only and touch only mode to drawing a shape ([@huyngkh](https://github.com/huyngkh))
|
||||||
|
* [#9240](https://github.com/openlayers/openlayers/pull/9240) - Add setRotateWithView function to ol/style/Text ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9230](https://github.com/openlayers/openlayers/pull/9230) - Consider all tiles for hit detection when decluttering ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9237](https://github.com/openlayers/openlayers/pull/9237) - Fix zoom after export to PDF is done ([@umbe1987](https://github.com/umbe1987))
|
||||||
|
* [#9239](https://github.com/openlayers/openlayers/pull/9239) - Run tests in Puppeteer and non headless mode ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9236](https://github.com/openlayers/openlayers/pull/9236) - Move params list to the constructor function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9233](https://github.com/openlayers/openlayers/pull/9233) - Remove deprecated {get,set}SnapToPixel functions ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9231](https://github.com/openlayers/openlayers/pull/9231) - Set vector tile extent earlier ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9224](https://github.com/openlayers/openlayers/pull/9224) - Remove vendor prefix for the 'transform' CSS property and fullscreen api ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9222](https://github.com/openlayers/openlayers/pull/9222) - Update all dev dependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9221](https://github.com/openlayers/openlayers/pull/9221) - Remove unused sortByZIndex function ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9220](https://github.com/openlayers/openlayers/pull/9220) - Don't resize/clear the vector renderer canvas ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9217](https://github.com/openlayers/openlayers/pull/9217) - Don't use loadImage function to avoid infinite loading loop ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9212](https://github.com/openlayers/openlayers/pull/9212) - Remove unnecessary type cast ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9201](https://github.com/openlayers/openlayers/pull/9201) - Only consider child range with drawable tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9204](https://github.com/openlayers/openlayers/pull/9204) - Add missing 'include' section ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9203](https://github.com/openlayers/openlayers/pull/9203) - Only promise what we can deliver regarding IntelliSense ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9200](https://github.com/openlayers/openlayers/pull/9200) - Add upgrade note about renderMode: 'image' for vector layers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9197](https://github.com/openlayers/openlayers/pull/9197) - Remove unused opt_this param ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9196](https://github.com/openlayers/openlayers/pull/9196) - getPointResolution returns resolution in projection units ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9190](https://github.com/openlayers/openlayers/pull/9190) - Fix MultiPolygon area calculation ([@romanzoller](https://github.com/romanzoller))
|
||||||
|
* [#9179](https://github.com/openlayers/openlayers/pull/9179) - Allow declutter with image render mode ([@gberaudo](https://github.com/gberaudo))
|
||||||
|
* [#9187](https://github.com/openlayers/openlayers/pull/9187) - Remove unnecessary type cast ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9186](https://github.com/openlayers/openlayers/pull/9186) - Simplify typing in EsriJSON format ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9161](https://github.com/openlayers/openlayers/pull/9161) - Use type template for the source type of layers ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9184](https://github.com/openlayers/openlayers/pull/9184) - Update all dev dependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9178](https://github.com/openlayers/openlayers/pull/9178) - Sources in npm package for TypeScript support ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9181](https://github.com/openlayers/openlayers/pull/9181) - Add test to verify that removefeature is triggered ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9173](https://github.com/openlayers/openlayers/pull/9173) - Document the correct render events ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9167](https://github.com/openlayers/openlayers/pull/9167) - JSDoc fixes ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9164](https://github.com/openlayers/openlayers/pull/9164) - event chain documentation ([@KlausBenndorf](https://github.com/KlausBenndorf))
|
||||||
|
* [#9157](https://github.com/openlayers/openlayers/pull/9157) - Remove deprecated inherits function ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9152](https://github.com/openlayers/openlayers/pull/9152) - Vector tile optimizations ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9154](https://github.com/openlayers/openlayers/pull/9154) - Safer check for window.screen ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9150](https://github.com/openlayers/openlayers/pull/9150) - Avoid clipping when rendering to tiles that don't exceed the clip extent ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9149](https://github.com/openlayers/openlayers/pull/9149) - Keep track of used labels ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9131](https://github.com/openlayers/openlayers/pull/9131) - Don't use strict comparison with style.opacity ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9013](https://github.com/openlayers/openlayers/pull/9013) - Added scalebar option to ol.control.scaleline ([@weskamm](https://github.com/weskamm))
|
||||||
|
* [#9133](https://github.com/openlayers/openlayers/pull/9133) - Reduce memory footprint of tiles and labels ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9129](https://github.com/openlayers/openlayers/pull/9129) - Reduce garbage generation ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9128](https://github.com/openlayers/openlayers/pull/9128) - Use less render cycles for vector tile layers ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9120](https://github.com/openlayers/openlayers/pull/9120) - Update all dev dependencies ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9118](https://github.com/openlayers/openlayers/pull/9118) - Don't dispatch change events when reading features ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9114](https://github.com/openlayers/openlayers/pull/9114) - Faster extent calculation with less garbage ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9109](https://github.com/openlayers/openlayers/pull/9109) - Make package.json valid json object ([@JosephSamela](https://github.com/JosephSamela))
|
||||||
|
* [#9112](https://github.com/openlayers/openlayers/pull/9112) - Properly unregister prepareTile listeners ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9103](https://github.com/openlayers/openlayers/pull/9103) - Make examples more user friendly ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9107](https://github.com/openlayers/openlayers/pull/9107) - Fix cgiar csi URL due to #9106 ([@webgeodatavore](https://github.com/webgeodatavore))
|
||||||
|
* [#9058](https://github.com/openlayers/openlayers/pull/9058) - Move all tile loading from the VectorImageTile to the source ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9102](https://github.com/openlayers/openlayers/pull/9102) - Use dom-to-image library in export-pdf example ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9072](https://github.com/openlayers/openlayers/pull/9072) - Remove 'layerStates' property from the FrameState ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9101](https://github.com/openlayers/openlayers/pull/9101) - Always load tiles while animating and interacting ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9099](https://github.com/openlayers/openlayers/pull/9099) - Allow users to opt out of tracking ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9098](https://github.com/openlayers/openlayers/pull/9098) - External types bugfix for jsdoc-plugin-typescript ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9083](https://github.com/openlayers/openlayers/pull/9083) - Reset lastDragTime when condition is not met ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9090](https://github.com/openlayers/openlayers/pull/9090) - Add texture & color to the WebGL points renderer ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9091](https://github.com/openlayers/openlayers/pull/9091) - Fix heatmap example in IE ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9089](https://github.com/openlayers/openlayers/pull/9089) - Replace rawgit with jsdelivr due to #9082 comment ([@ThomasG77](https://github.com/ThomasG77))
|
||||||
|
* [#9079](https://github.com/openlayers/openlayers/pull/9079) - Listen to all fullscreen event types ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9070](https://github.com/openlayers/openlayers/pull/9070) - Modify.removePoint returns true only when a vertex was removed ([@ludvigeriksson](https://github.com/ludvigeriksson))
|
||||||
|
* [#9068](https://github.com/openlayers/openlayers/pull/9068) - Use 'PBF' type instead of 'Object' in ol/format/MVT ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9066](https://github.com/openlayers/openlayers/pull/9066) - Rework transformWithOptions ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9064](https://github.com/openlayers/openlayers/pull/9064) - Remove Atlas, AtlasManager and getChecksum functions ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9060](https://github.com/openlayers/openlayers/pull/9060) - Avoid unexpected behavior when passing string coordinates ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9063](https://github.com/openlayers/openlayers/pull/9063) - Fix module name ([@oterral](https://github.com/oterral))
|
||||||
|
* [#9056](https://github.com/openlayers/openlayers/pull/9056) - Remove typecast for object literals ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9057](https://github.com/openlayers/openlayers/pull/9057) - Use FeatureLike typedef ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9055](https://github.com/openlayers/openlayers/pull/9055) - Remove type cast in ol.View ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9008](https://github.com/openlayers/openlayers/pull/9008) - Decouple render instruction creation from rendering ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9045](https://github.com/openlayers/openlayers/pull/9045) - Remove CANVAS_LINE_DASH from ol/has ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9044](https://github.com/openlayers/openlayers/pull/9044) - Fix comments indentation ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9043](https://github.com/openlayers/openlayers/pull/9043) - Fix type notation in examples ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9041](https://github.com/openlayers/openlayers/pull/9041) - Reworked the Webgl Heatmap layer & associated utilities ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9042](https://github.com/openlayers/openlayers/pull/9042) - Change onBoxEnd property in DragBox options to optional ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9039](https://github.com/openlayers/openlayers/pull/9039) - Add ': void' to non returning functions (error TS7014) ([@OSHistory](https://github.com/OSHistory))
|
||||||
|
* [#9024](https://github.com/openlayers/openlayers/pull/9024) - Add prerender and postrender events for Image layer ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9028](https://github.com/openlayers/openlayers/pull/9028) - Specify the return array as coordinates ([@OSHistory](https://github.com/OSHistory))
|
||||||
|
* [#9036](https://github.com/openlayers/openlayers/pull/9036) - Remove drag segments of removed features ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9031](https://github.com/openlayers/openlayers/pull/9031) - Call insertVertexCondition only when a vertex acually can be inserted ([@ludvigeriksson](https://github.com/ludvigeriksson))
|
||||||
|
* [#9029](https://github.com/openlayers/openlayers/pull/9029) - Use camel-cased inheritDoc for consistency ([@OSHistory](https://github.com/OSHistory))
|
||||||
|
* [#9026](https://github.com/openlayers/openlayers/pull/9026) - Update ol-mapbox-style and jsdoc-plugin-typescript ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9025](https://github.com/openlayers/openlayers/pull/9025) - Remove unused render event ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9023](https://github.com/openlayers/openlayers/pull/9023) - Fix webgl PointsLayer not rendering anything ([@jahow](https://github.com/jahow))
|
||||||
|
* [#9022](https://github.com/openlayers/openlayers/pull/9022) - Use WebGL even with major performance caveat ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9020](https://github.com/openlayers/openlayers/pull/9020) - Remove superfluous setTileUrlFunction call ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9018](https://github.com/openlayers/openlayers/pull/9018) - Duplicate @property for style and renderOrder ([@OSHistory](https://github.com/OSHistory))
|
||||||
|
* [#9012](https://github.com/openlayers/openlayers/pull/9012) - Change projection and urls properties in sources options to optional ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9010](https://github.com/openlayers/openlayers/pull/9010) - Fix ExecutorGroup.js file location in comments ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9009](https://github.com/openlayers/openlayers/pull/9009) - Revert "Simplify import path in examples" ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9005](https://github.com/openlayers/openlayers/pull/9005) - Simplify import path in examples ([@fredj](https://github.com/fredj))
|
||||||
|
* [#9003](https://github.com/openlayers/openlayers/pull/9003) - Remove unused Builder/Executor functions and members ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#9002](https://github.com/openlayers/openlayers/pull/9002) - Fix module path ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8996](https://github.com/openlayers/openlayers/pull/8996) - Add imageRatio option for VectorImage layers ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8995](https://github.com/openlayers/openlayers/pull/8995) - Remove leftover comments and code for 'vector' render mode ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8992](https://github.com/openlayers/openlayers/pull/8992) - Use standard tile coords ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8994](https://github.com/openlayers/openlayers/pull/8994) - Set projection property in sources options to optional ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8977](https://github.com/openlayers/openlayers/pull/8977) - Add WebGL rendering tests & improve the WebGLHelper API ([@jahow](https://github.com/jahow))
|
||||||
|
* [#8990](https://github.com/openlayers/openlayers/pull/8990) - [Client] Remove renderFrame ([@nicholas-l](https://github.com/nicholas-l))
|
||||||
|
* [#8988](https://github.com/openlayers/openlayers/pull/8988) - Pass along the ability to measure and cache text width ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8987](https://github.com/openlayers/openlayers/pull/8987) - Rendering test updates ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8983](https://github.com/openlayers/openlayers/pull/8983) - Add issue templates ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8982](https://github.com/openlayers/openlayers/pull/8982) - Stacking context for layers, overlays, and controls ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8980](https://github.com/openlayers/openlayers/pull/8980) - Change travis references to circleci in doc ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8976](https://github.com/openlayers/openlayers/pull/8976) - Scale tiles instead of canvas ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#8970](https://github.com/openlayers/openlayers/pull/8970) - Fix zIndex positioning ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#8968](https://github.com/openlayers/openlayers/pull/8968) - Use Object.values if available ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8972](https://github.com/openlayers/openlayers/pull/8972) - Remove unused rollup dependency ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#8967](https://github.com/openlayers/openlayers/pull/8967) - Fix webgl types in ol/webgl/PostProcessingPass ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8969](https://github.com/openlayers/openlayers/pull/8969) - Create and use inverse pixel transforms during render ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8964](https://github.com/openlayers/openlayers/pull/8964) - Add index to the Collection events ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8915](https://github.com/openlayers/openlayers/pull/8915) - Use CSS z-index to order layers ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8923](https://github.com/openlayers/openlayers/pull/8923) - Use the composite renderer ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8951](https://github.com/openlayers/openlayers/pull/8951) - Remove legacy WebGL code & implement a lightweight API for point rendering ([@jahow](https://github.com/jahow))
|
||||||
|
* [#8926](https://github.com/openlayers/openlayers/pull/8926) - Uncouple replay creation and rendering ([@gberaudo](https://github.com/gberaudo))
|
||||||
|
* [#8952](https://github.com/openlayers/openlayers/pull/8952) - Port polygon-style rendering test ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8939](https://github.com/openlayers/openlayers/pull/8939) - Use ol/layer/Layer instead of ol/source/ImageCanvas in d3 example ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8957](https://github.com/openlayers/openlayers/pull/8957) - Fix JSdoc type cast format ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8934](https://github.com/openlayers/openlayers/pull/8934) - Port layer tiles rendering tests ([@fgravin](https://github.com/fgravin))
|
||||||
|
* [#8944](https://github.com/openlayers/openlayers/pull/8944) - Use a layer for the graticule instead of a control ([@jahow](https://github.com/jahow))
|
||||||
|
* [#8948](https://github.com/openlayers/openlayers/pull/8948) - Add rotation in mapbox-gl example ([@fgravin](https://github.com/fgravin))
|
||||||
|
* [#8953](https://github.com/openlayers/openlayers/pull/8953) - Store rendering artifacts immediately after run tests ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8950](https://github.com/openlayers/openlayers/pull/8950) - Use shx to run unix commands in package.json ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8946](https://github.com/openlayers/openlayers/pull/8946) - Make the map renderer tolerant of layers without renderers ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8943](https://github.com/openlayers/openlayers/pull/8943) - Port text style rendering tests ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8940](https://github.com/openlayers/openlayers/pull/8940) - Make layers mandatory in the OverviewMap control ([@jahow](https://github.com/jahow))
|
||||||
|
* [#8938](https://github.com/openlayers/openlayers/pull/8938) - Port render-toContext rendering test ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8941](https://github.com/openlayers/openlayers/pull/8941) - Rendering tests render message ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8933](https://github.com/openlayers/openlayers/pull/8933) - Port icon-symbol-svg rendering test ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8931](https://github.com/openlayers/openlayers/pull/8931) - Add Mapbox-gl-js example ([@fgravin](https://github.com/fgravin))
|
||||||
|
* [#8937](https://github.com/openlayers/openlayers/pull/8937) - Make the tile debug source useful for understanding tiles ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8930](https://github.com/openlayers/openlayers/pull/8930) - Give the layers container a CSS class name ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8914](https://github.com/openlayers/openlayers/pull/8914) - Add new className property to ol/layer/Base ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8910](https://github.com/openlayers/openlayers/pull/8910) - Implements containsXY for all geometries ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8922](https://github.com/openlayers/openlayers/pull/8922) - Layer is reponsible for its renderer ([@fgravin](https://github.com/fgravin))
|
||||||
|
* [#8936](https://github.com/openlayers/openlayers/pull/8936) - Serve sourcemaps from webpack during rendering tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8932](https://github.com/openlayers/openlayers/pull/8932) - Add pbf TypeScript type definitions ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8924](https://github.com/openlayers/openlayers/pull/8924) - Reuse vector tile replays for interim tiles ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#8918](https://github.com/openlayers/openlayers/pull/8918) - Use dom-to-image-more library in export-map ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8928](https://github.com/openlayers/openlayers/pull/8928) - Add vector tile example using ol-mapbox-style ([@ahocevar](https://github.com/ahocevar))
|
||||||
|
* [#8925](https://github.com/openlayers/openlayers/pull/8925) - Don't compute value more that once, remove unneeded type cast ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8927](https://github.com/openlayers/openlayers/pull/8927) - Use local data for rendering tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8920](https://github.com/openlayers/openlayers/pull/8920) - Remove unneeded 'relative' positioning ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8913](https://github.com/openlayers/openlayers/pull/8913) - Implement renderFrame function for intermediate canvas renderer ([@fgravin](https://github.com/fgravin))
|
||||||
|
* [#8916](https://github.com/openlayers/openlayers/pull/8916) - Move canvas creation to intermediate canvas renderer constructor ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8917](https://github.com/openlayers/openlayers/pull/8917) - Apply all transforms in the layer renderer ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8912](https://github.com/openlayers/openlayers/pull/8912) - Rotation support in the composite renderer ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8908](https://github.com/openlayers/openlayers/pull/8908) - Handle layer opacity in the composite renderer ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8848](https://github.com/openlayers/openlayers/pull/8848) - Make layer renderers explicit layer dependencies ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8892](https://github.com/openlayers/openlayers/pull/8892) - Use the right device orientation property in example ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8904](https://github.com/openlayers/openlayers/pull/8904) - Add support for a default index page in the rendering tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8903](https://github.com/openlayers/openlayers/pull/8903) - Additional render tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8895](https://github.com/openlayers/openlayers/pull/8895) - New rendering tests ([@tschaub](https://github.com/tschaub))
|
||||||
|
* [#8893](https://github.com/openlayers/openlayers/pull/8893) - Add proj.js to the sideEffects list ([@fredj](https://github.com/fredj))
|
||||||
|
* [#8887](https://github.com/openlayers/openlayers/pull/8887) - Changes for 5.3.0 ([@openlayers](https://github.com/openlayers))
|
||||||
|
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Dependency Updates</summary>
|
||||||
|
|
||||||
|
* [#9990](https://github.com/openlayers/openlayers/pull/9990) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9987](https://github.com/openlayers/openlayers/pull/9987) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9972](https://github.com/openlayers/openlayers/pull/9972) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9952](https://github.com/openlayers/openlayers/pull/9952) - Update handlebars to the latest version ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9932](https://github.com/openlayers/openlayers/pull/9932) - Greenkeeper/webpack 4.40.2 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9928](https://github.com/openlayers/openlayers/pull/9928) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9926](https://github.com/openlayers/openlayers/pull/9926) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9914](https://github.com/openlayers/openlayers/pull/9914) - Greenkeeper/terser webpack plugin 2.0.1 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9886](https://github.com/openlayers/openlayers/pull/9886) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9880](https://github.com/openlayers/openlayers/pull/9880) - Greenkeeper/karma coverage 2.0.1 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9876](https://github.com/openlayers/openlayers/pull/9876) - Update yargs to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9856](https://github.com/openlayers/openlayers/pull/9856) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9857](https://github.com/openlayers/openlayers/pull/9857) - Update karma-chrome-launcher to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9817](https://github.com/openlayers/openlayers/pull/9817) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9827](https://github.com/openlayers/openlayers/pull/9827) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9816](https://github.com/openlayers/openlayers/pull/9816) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9801](https://github.com/openlayers/openlayers/pull/9801) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9795](https://github.com/openlayers/openlayers/pull/9795) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9793](https://github.com/openlayers/openlayers/pull/9793) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9787](https://github.com/openlayers/openlayers/pull/9787) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9786](https://github.com/openlayers/openlayers/pull/9786) - chore(package): update webpack to version 4.36.1 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9775](https://github.com/openlayers/openlayers/pull/9775) - Update jsdoc to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9772](https://github.com/openlayers/openlayers/pull/9772) - Update karma-chrome-launcher to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9769](https://github.com/openlayers/openlayers/pull/9769) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9759](https://github.com/openlayers/openlayers/pull/9759) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9763](https://github.com/openlayers/openlayers/pull/9763) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9744](https://github.com/openlayers/openlayers/pull/9744) - chore(package): update webpack to version 4.35.2 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9738](https://github.com/openlayers/openlayers/pull/9738) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9737](https://github.com/openlayers/openlayers/pull/9737) - Update globby to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9703](https://github.com/openlayers/openlayers/pull/9703) - Update eslint to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9698](https://github.com/openlayers/openlayers/pull/9698) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9695](https://github.com/openlayers/openlayers/pull/9695) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9673](https://github.com/openlayers/openlayers/pull/9673) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9660](https://github.com/openlayers/openlayers/pull/9660) - Update pixelmatch to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9653](https://github.com/openlayers/openlayers/pull/9653) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9649](https://github.com/openlayers/openlayers/pull/9649) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9598](https://github.com/openlayers/openlayers/pull/9598) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9594](https://github.com/openlayers/openlayers/pull/9594) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9589](https://github.com/openlayers/openlayers/pull/9589) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9586](https://github.com/openlayers/openlayers/pull/9586) - Update rollup-plugin-terser to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9553](https://github.com/openlayers/openlayers/pull/9553) - chore(package): update ol-mapbox-style to version 5.0.0-beta.2 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9528](https://github.com/openlayers/openlayers/pull/9528) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9517](https://github.com/openlayers/openlayers/pull/9517) - Update jsdoc to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9515](https://github.com/openlayers/openlayers/pull/9515) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9508](https://github.com/openlayers/openlayers/pull/9508) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9486](https://github.com/openlayers/openlayers/pull/9486) - Update jquery to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9468](https://github.com/openlayers/openlayers/pull/9468) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9444](https://github.com/openlayers/openlayers/pull/9444) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9432](https://github.com/openlayers/openlayers/pull/9432) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9431](https://github.com/openlayers/openlayers/pull/9431) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9427](https://github.com/openlayers/openlayers/pull/9427) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9420](https://github.com/openlayers/openlayers/pull/9420) - Update jquery to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9412](https://github.com/openlayers/openlayers/pull/9412) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9408](https://github.com/openlayers/openlayers/pull/9408) - chore(package): update mocha to version 6.1.1 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9406](https://github.com/openlayers/openlayers/pull/9406) - Update clean-css-cli to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9405](https://github.com/openlayers/openlayers/pull/9405) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9387](https://github.com/openlayers/openlayers/pull/9387) - Update puppeteer to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9342](https://github.com/openlayers/openlayers/pull/9342) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9311](https://github.com/openlayers/openlayers/pull/9311) - Update pbf to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9285](https://github.com/openlayers/openlayers/pull/9285) - Update globby to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9280](https://github.com/openlayers/openlayers/pull/9280) - Update ol-mapbox-style to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9279](https://github.com/openlayers/openlayers/pull/9279) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9268](https://github.com/openlayers/openlayers/pull/9268) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9261](https://github.com/openlayers/openlayers/pull/9261) - Update coveralls to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9256](https://github.com/openlayers/openlayers/pull/9256) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9247](https://github.com/openlayers/openlayers/pull/9247) - Update copy-webpack-plugin to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9242](https://github.com/openlayers/openlayers/pull/9242) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9238](https://github.com/openlayers/openlayers/pull/9238) - Update mocha to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9232](https://github.com/openlayers/openlayers/pull/9232) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9225](https://github.com/openlayers/openlayers/pull/9225) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9207](https://github.com/openlayers/openlayers/pull/9207) - Update yargs to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9195](https://github.com/openlayers/openlayers/pull/9195) - Update handlebars to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9194](https://github.com/openlayers/openlayers/pull/9194) - chore(package): update webpack to version 4.29.3 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9185](https://github.com/openlayers/openlayers/pull/9185) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9148](https://github.com/openlayers/openlayers/pull/9148) - Update karma to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9124](https://github.com/openlayers/openlayers/pull/9124) - Update sinon to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9127](https://github.com/openlayers/openlayers/pull/9127) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9108](https://github.com/openlayers/openlayers/pull/9108) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9095](https://github.com/openlayers/openlayers/pull/9095) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9092](https://github.com/openlayers/openlayers/pull/9092) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9085](https://github.com/openlayers/openlayers/pull/9085) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9080](https://github.com/openlayers/openlayers/pull/9080) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9076](https://github.com/openlayers/openlayers/pull/9076) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9037](https://github.com/openlayers/openlayers/pull/9037) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9032](https://github.com/openlayers/openlayers/pull/9032) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#9004](https://github.com/openlayers/openlayers/pull/9004) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8989](https://github.com/openlayers/openlayers/pull/8989) - Update marked to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8978](https://github.com/openlayers/openlayers/pull/8978) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8966](https://github.com/openlayers/openlayers/pull/8966) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8963](https://github.com/openlayers/openlayers/pull/8963) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8905](https://github.com/openlayers/openlayers/pull/8905) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
* [#8902](https://github.com/openlayers/openlayers/pull/8902) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers))
|
||||||
|
|
||||||
|
|
||||||
|
</details>
|
||||||
@@ -1,43 +1,43 @@
|
|||||||
<table><tr>
|
<table><tr>
|
||||||
<th width="33.3%">Map</th><th width="33.3%">View</th><th width="33.3%">Layers</th>
|
<th width="33.3%">Map</th><th width="33.3%">View</th><th width="33.3%">Layers</th>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><p>A [map](module-ol_Map-Map.html) is made of [layers](module-ol_layer_Base-BaseLayer.html), a [view](module-ol_View-View.html) to visualize them, [interactions](module-ol_interaction_Interaction-Interaction.html) to modify map content and [controls](module-ol_control_Control-Control.html) with UI components.</p>
|
<td><p>A <a href="module-ol_Map-Map.html">map</a> is made of <a href="module-ol_layer_Base-BaseLayer.html">layers</a>, a <a href="module-ol_View-View.html">view</a> to visualize them, <a href="module-ol_interaction_Interaction-Interaction.html">interactions</a> to modify map content and <a href="module-ol_control_Control-Control.html">controls</a> with UI components.</p>
|
||||||
[Overview](module-ol_Map-Map.html)<br>
|
<a href="module-ol_Map-Map.html">Overview</a><br>
|
||||||
[Creation](module-ol_Map-Map.html#Map)<br>
|
<a href="module-ol_Map-Map.html#Map">Creation</a><br>
|
||||||
[Events](module-ol_MapBrowserEvent-MapBrowserEvent.html)</td>
|
<a href="module-ol_MapBrowserEvent-MapBrowserEvent.html">Events</a></td>
|
||||||
<td><p>The view manages the visual parameters of the map view, like resolution or rotation.</p>
|
<td><p>The view manages the visual parameters of the map view, like resolution or rotation.</p>
|
||||||
[View](module-ol_View-View.html) with center, projection, resolution and rotation</td>
|
<a href="module-ol_View-View.html">View</a> with center, projection, resolution and rotation</td>
|
||||||
<td><p>Layers are lightweight containers that get their data from [sources](module-ol_source_Source-Source.html).</p>
|
<td><p>Layers are lightweight containers that get their data from <a href="module-ol_source_Source-Source.html">sources</a>.</p>
|
||||||
[ol/layer/Tile](module-ol_layer_Tile-TileLayer.html)<br>
|
<a href="module-ol_layer_Tile-TileLayer.html">ol/layer/Tile</a><br>
|
||||||
[ol/layer/Image](module-ol_layer_Image-ImageLayer.html)<br>
|
<a href="module-ol_layer_Image-ImageLayer.html">ol/layer/Image</a><br>
|
||||||
[ol/layer/Vector](module-ol_layer_Vector-VectorLayer.html)<br>
|
<a href="module-ol_layer_Vector-VectorLayer.html">ol/layer/Vector</a><br>
|
||||||
[ol/layer/VectorTile](module-ol_layer_VectorTile-VectorTileLayer.html)</td>
|
<a href="module-ol_layer_VectorTile-VectorTileLayer.html">ol/layer/VectorTile</a></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<th>Controls</th><th>Interactions</th><th>Sources and formats</th>
|
<th>Controls</th><th>Interactions</th><th>Sources and formats</th>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td>[Map default controls](module-ol_control_util.html#.defaults)<br>
|
<td><a href="module-ol_control.html#.defaults">Map default controls</a><br>
|
||||||
[All controls](module-ol_control_Control-Control.html)
|
<a href="module-ol_control_Control-Control.html">All controls</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
[Map default interactions](module-ol_interaction.html#~defaults)<br>
|
<a href="module-ol_interaction.html#~defaults">Map default interactions</a><br>
|
||||||
Interactions for [vector features](module-ol_Feature-Feature.html)
|
Interactions for <a href="module-ol_Feature-Feature.html">vector features</a>
|
||||||
<ul><li>[ol/interaction/Select](module-ol_interaction_Select-Select.html)</li>
|
<ul><li><a href="module-ol_interaction_Select-Select.html">ol/interaction/Select</a></li>
|
||||||
<li>[ol/interaction/Draw](module-ol_interaction_Draw-Draw.html)</li>
|
<li><a href="module-ol_interaction_Draw-Draw.html">ol/interaction/Draw</a></li>
|
||||||
<li>[ol/interaction/Modify](module-ol_interaction_Modify-Modify.html)</li></ul>
|
<li><a href="module-ol_interaction_Modify-Modify.html">ol/interaction/Modify</a></li></ul>
|
||||||
[All interactions](module-ol_interaction_Interaction-Interaction.html)</td>
|
<a href="module-ol_interaction_Interaction-Interaction.html">All interactions</a></td>
|
||||||
<td>[Tile sources](module-ol_source_Tile-TileSource.html) for [ol/layer/Tile](module-ol_layer_Tile-TileLayer.html)
|
<td><a href="module-ol_source_Tile-TileSource.html">Tile sources</a> for <a href="module-ol_layer_Tile-TileLayer.html">ol/layer/Tile</a>
|
||||||
<br>[Image sources](module-ol_source_Image-ImageSource.html) for [ol/layer/Image](module-ol_layer_Image-ImageLayer.html)
|
<br><a href="module-ol_source_Image-ImageSource.html">Image sources</a> for <a href="module-ol_layer_Image-ImageLayer.html">ol/layer/Image</a>
|
||||||
<br>[Vector sources](module-ol_source_Vector-VectorSource.html) for [ol/layer/Vector](module-ol_layer_Vector-VectorLayer.html)
|
<br><a href="module-ol_source_Vector-VectorSource.html">Vector sources</a> for <a href="module-ol_layer_Vector-VectorLayer.html">ol/layer/Vector</a>
|
||||||
<br>[Vector tile sources](module-ol_source_VectorTile-VectorTile.html) for [ol/layer/VectorTile](module-ol_layer_VectorTile-VectorTileLayer.html)
|
<br><a href="module-ol_source_VectorTile-VectorTile.html">Vector tile sources</a> for <a href="module-ol_layer_VectorTile-VectorTileLayer.html">ol/layer/VectorTile</a>
|
||||||
<br>[Formats](module-ol_format_Feature-FeatureFormat.html) for reading/writing vector data
|
<br><a href="module-ol_format_Feature-FeatureFormat.html">Formats</a> for reading/writing vector data
|
||||||
<br>[ol/format/WMSCapabilities](module-ol_format_WMSCapabilities-WMSCapabilities.html)</td></tr>
|
<br><a href="module-ol_format_WMSCapabilities-WMSCapabilities.html">ol/format/WMSCapabilities</a></td></tr>
|
||||||
<tr><th>Projections</th><th>Observable objects</th><th>Other components</th></tr>
|
<tr><th>Projections</th><th>Observable objects</th><th>Other components</th></tr>
|
||||||
<tr><td><p>All coordinates and extents need to be provided in view projection (default: EPSG:3857). To transform, use [ol/proj#transform()](module-ol_proj.html#.transform) and [ol/proj#transformExtent()](module-ol_proj.html#.transformExtent).</p>
|
<tr><td><p>All coordinates and extents need to be provided in view projection (default: EPSG:3857). To transform, use <a href="module-ol_proj.html#.transform">ol/proj#transform()</a> and <a href="module-ol_proj.html#.transformExtent">ol/proj#transformExtent()</a>.</p>
|
||||||
[ol/proj](module-ol_proj.html)</td>
|
<a href="module-ol_proj.html">ol/proj</a></td>
|
||||||
<td><p>Changes to all [ol/Object](module-ol_Object-BaseObject.html)s can be observed by calling the [object.on('propertychange')](module-ol_Object-BaseObject.html#on) method. Listeners receive an [ol/Object.ObjectEvent](module-ol_Object-ObjectEvent.html) with information on the changed property and old value.</p>
|
<td><p>Changes to all <a href="module-ol_Object-BaseObject.html">ol/Object</a>s can be observed by calling the <a href="module-ol_Object-BaseObject.html#on">object.on('propertychange')</a> method. Listeners receive an <a href="module-ol_Object-ObjectEvent.html">ol/Object.ObjectEvent</a> with information on the changed property and old value.</p>
|
||||||
<td>
|
<td>
|
||||||
[ol/Geolocation](module-ol_Geolocation.html)<br>
|
<a href="module-ol_Geolocation.html">ol/Geolocation</a><br>
|
||||||
[ol/Overlay](module-ol_Overlay-Overlay.html)<br></td>
|
<a href="module-ol_Overlay-Overlay.html">ol/Overlay</a><br></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,24 @@ function hasApiMembers(doclet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function includeAugments(doclet) {
|
function includeAugments(doclet) {
|
||||||
|
// Make sure that `observables` and `fires` are taken from an already processed `class` doclet.
|
||||||
|
// This is necessary because JSDoc generates multiple doclets with the same longname.
|
||||||
|
const cls = classes[doclet.longname];
|
||||||
|
if (cls.observables && !doclet.observables) {
|
||||||
|
doclet.observables = cls.observables;
|
||||||
|
}
|
||||||
|
if (doclet.fires && cls.fires) {
|
||||||
|
for (let i = 0, ii = cls.fires.length; i < ii; ++i) {
|
||||||
|
const fires = cls.fires[i];
|
||||||
|
if (doclet.fires.indexOf(fires) == -1) {
|
||||||
|
doclet.fires.push(fires);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (cls.fires && !doclet.fires) {
|
||||||
|
doclet.fires = cls.fires;
|
||||||
|
}
|
||||||
|
|
||||||
const augments = doclet.augments;
|
const augments = doclet.augments;
|
||||||
if (augments) {
|
if (augments) {
|
||||||
let cls;
|
let cls;
|
||||||
@@ -59,7 +77,9 @@ function includeAugments(doclet) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
cls._hideConstructor = true;
|
cls._hideConstructor = true;
|
||||||
delete cls.undocumented;
|
if (!cls.undocumented) {
|
||||||
|
cls._documented = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -146,10 +166,13 @@ exports.handlers = {
|
|||||||
// constructor from the docs.
|
// constructor from the docs.
|
||||||
doclet._hideConstructor = true;
|
doclet._hideConstructor = true;
|
||||||
includeAugments(doclet);
|
includeAugments(doclet);
|
||||||
} else if (doclet.undocumented !== false && !doclet._hideConstructor && !(doclet.kind == 'typedef' && doclet.longname in types)) {
|
} else if (!doclet._hideConstructor && !(doclet.kind == 'typedef' && doclet.longname in types)) {
|
||||||
// Remove all other undocumented symbols
|
// Remove all other undocumented symbols
|
||||||
doclet.undocumented = true;
|
doclet.undocumented = true;
|
||||||
}
|
}
|
||||||
|
if (doclet._documented) {
|
||||||
|
delete doclet.undocumented;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,32 +1,29 @@
|
|||||||
const events = {};
|
const events = {};
|
||||||
const classes = {};
|
|
||||||
|
|
||||||
exports.handlers = {
|
exports.handlers = {
|
||||||
|
|
||||||
newDoclet: function(e) {
|
newDoclet: function(e) {
|
||||||
const doclet = e.doclet;
|
const doclet = e.doclet;
|
||||||
let cls;
|
if (doclet.kind !== 'event') {
|
||||||
if (doclet.kind == 'event') {
|
return;
|
||||||
cls = doclet.longname.split('#')[0];
|
}
|
||||||
|
|
||||||
|
const cls = doclet.longname.split('#')[0];
|
||||||
if (!(cls in events)) {
|
if (!(cls in events)) {
|
||||||
events[cls] = [];
|
events[cls] = [];
|
||||||
}
|
}
|
||||||
events[cls].push(doclet.longname);
|
events[cls].push(doclet.longname);
|
||||||
} else if (doclet.kind == 'class' && !(doclet.longname in classes)) {
|
|
||||||
classes[doclet.longname] = doclet;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
parseComplete: function(e) {
|
parseComplete: function(e) {
|
||||||
const doclets = e.doclets;
|
const doclets = e.doclets;
|
||||||
let doclet, i, ii, j, jj, event, fires;
|
for (let i = 0, ii = doclets.length - 1; i < ii; ++i) {
|
||||||
for (i = 0, ii = doclets.length - 1; i < ii; ++i) {
|
const doclet = doclets[i];
|
||||||
doclet = doclets[i];
|
|
||||||
if (doclet.fires) {
|
if (doclet.fires) {
|
||||||
if (doclet.kind == 'class') {
|
if (doclet.kind == 'class') {
|
||||||
fires = [];
|
const fires = [];
|
||||||
for (j = 0, jj = doclet.fires.length; j < jj; ++j) {
|
for (let j = 0, jj = doclet.fires.length; j < jj; ++j) {
|
||||||
event = doclet.fires[j].replace('event:', '');
|
const event = doclet.fires[j].replace('event:', '');
|
||||||
if (events[event]) {
|
if (events[event]) {
|
||||||
fires.push.apply(fires, events[event]);
|
fires.push.apply(fires, events[event]);
|
||||||
} else if (doclet.fires[j] !== 'event:ObjectEvent') {
|
} else if (doclet.fires[j] !== 'event:ObjectEvent') {
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* This is a hack to prevent inheritDoc tags from entirely removing
|
* This is a hack to prevent inheritDoc tags from entirely removing
|
||||||
* documentation of the method that inherits the documentation.
|
* documentation of the method that inherits the documentation.
|
||||||
*
|
|
||||||
* TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53
|
|
||||||
* is addressed.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
exports.defineTags = function(dictionary) {
|
exports.defineTags = function(dictionary) {
|
||||||
dictionary.defineTag('inheritDoc', {
|
dictionary.defineTag('inheritDoc', {
|
||||||
mustHaveValue: false,
|
mustHaveValue: false,
|
||||||
@@ -96,6 +92,11 @@ exports.handlers = {
|
|||||||
incompleteDoclet[key] = candidate[key];
|
incompleteDoclet[key] = candidate[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// We have found a matching parent doc and applied it so we
|
||||||
|
// don't want to ignore this doclet anymore.
|
||||||
|
incompleteDoclet.ignore = false;
|
||||||
|
// We found a match so we can stop break
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,55 +214,39 @@ function buildNav(members) {
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function createEntry(type, v) {
|
||||||
|
return {
|
||||||
|
type: type,
|
||||||
|
longname: v.longname,
|
||||||
|
name: v.name,
|
||||||
|
classes: find({
|
||||||
|
kind: 'class',
|
||||||
|
memberof: v.longname
|
||||||
|
}).map(createEntry.bind(this, 'class')),
|
||||||
|
members: find({
|
||||||
|
kind: 'member',
|
||||||
|
memberof: v.longname
|
||||||
|
}),
|
||||||
|
methods: find({
|
||||||
|
kind: 'function',
|
||||||
|
memberof: v.longname
|
||||||
|
}),
|
||||||
|
typedefs: find({
|
||||||
|
kind: 'typedef',
|
||||||
|
memberof: v.longname
|
||||||
|
}),
|
||||||
|
events: find({
|
||||||
|
kind: 'event',
|
||||||
|
memberof: v.longname
|
||||||
|
})
|
||||||
|
};
|
||||||
|
}
|
||||||
_.each(merged, function(v) {
|
_.each(merged, function(v) {
|
||||||
// exclude interfaces from sidebar
|
// exclude interfaces from sidebar
|
||||||
if (v.interface !== true) {
|
if (v.interface !== true) {
|
||||||
if (v.kind == 'module') {
|
if (v.kind == 'module') {
|
||||||
nav.push({
|
nav.push(createEntry('module', v));
|
||||||
type: 'module',
|
|
||||||
longname: v.longname,
|
|
||||||
name: v.name,
|
|
||||||
members: find({
|
|
||||||
kind: 'member',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
methods: find({
|
|
||||||
kind: 'function',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
typedefs: find({
|
|
||||||
kind: 'typedef',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
events: find({
|
|
||||||
kind: 'event',
|
|
||||||
memberof: v.longname
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (v.kind == 'class') {
|
|
||||||
nav.push({
|
|
||||||
type: 'class',
|
|
||||||
longname: v.longname,
|
|
||||||
name: v.name,
|
|
||||||
members: find({
|
|
||||||
kind: 'member',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
methods: find({
|
|
||||||
kind: 'function',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
typedefs: find({
|
|
||||||
kind: 'typedef',
|
|
||||||
memberof: v.longname
|
|
||||||
}),
|
|
||||||
fires: v.fires,
|
|
||||||
events: find({
|
|
||||||
kind: 'event',
|
|
||||||
memberof: v.longname
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,13 +12,18 @@ $(function () {
|
|||||||
var $item = $(v);
|
var $item = $(v);
|
||||||
|
|
||||||
if ($item.data('name') && regexp.test($item.data('name'))) {
|
if ($item.data('name') && regexp.test($item.data('name'))) {
|
||||||
|
const container = $item.parent().parent().parent();
|
||||||
|
container.show();
|
||||||
|
container.closest('.itemMembers').show();
|
||||||
|
container.closest('.item').show();
|
||||||
$item.show();
|
$item.show();
|
||||||
$item.closest('.itemMembers').show();
|
$item.closest('.itemMembers').show();
|
||||||
$item.closest('.item').show();
|
$item.closest('.item').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$el.find('.item, .itemMembers').show();
|
$el.find('.item, .itemMembers').hide();
|
||||||
|
$('.navigation>ul>li').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
$el.find('.list').scrollTop(0);
|
$el.find('.list').scrollTop(0);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<sup class="variation"><?js= doc.variation ?></sup>
|
<sup class="variation"><?js= doc.variation ?></sup>
|
||||||
<?js } ?></h2>
|
<?js } ?></h2>
|
||||||
<br>
|
<br>
|
||||||
<?js if (doc.stability || doc.kind == 'namespace') {
|
<?js if (doc.stability || doc.kind == 'namespace' || doc.kind == 'module') {
|
||||||
var ancestors = doc.ancestors.map(a => a.replace(/>\./g, '>').replace(/\.</g, '<')).join('/');
|
var ancestors = doc.ancestors.map(a => a.replace(/>\./g, '>').replace(/\.</g, '<')).join('/');
|
||||||
var parts = [];
|
var parts = [];
|
||||||
if (ancestors) {
|
if (ancestors) {
|
||||||
@@ -26,8 +26,21 @@
|
|||||||
}
|
}
|
||||||
var importPath = parts.join('/');
|
var importPath = parts.join('/');
|
||||||
?>
|
?>
|
||||||
|
<?js
|
||||||
|
var nameParts = doc.name.split('/');
|
||||||
|
var moduleName = nameParts[nameParts.length - 1];
|
||||||
|
if(moduleName) {
|
||||||
|
var firstChar = moduleName.charAt(0);
|
||||||
|
moduleName = firstChar.toUpperCase() + moduleName.slice(1);
|
||||||
|
var isClassModule = firstChar.toUpperCase() === firstChar;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?js if (doc.kind == 'module' && !isClassModule && nameParts.length < 3) {?>
|
||||||
|
<pre class="prettyprint source"><code>import * as ol<?js= moduleName ?> from '<?js= doc.name ?>';</code></pre>
|
||||||
|
<?js } else if(doc.kind !== 'module') { ?>
|
||||||
<pre class="prettyprint source"><code>import <?js= doc.name ?> from '<?js= importPath ?>';</code></pre>
|
<pre class="prettyprint source"><code>import <?js= doc.name ?> from '<?js= importPath ?>';</code></pre>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
<?js } ?>
|
||||||
<?js if (doc.classdesc) { ?>
|
<?js if (doc.classdesc) { ?>
|
||||||
<div class="class-description"><?js= doc.classdesc ?></div>
|
<div class="class-description"><?js= doc.classdesc ?></div>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
@@ -143,6 +156,7 @@
|
|||||||
<h3 class="subsection-title">Methods</h3>
|
<h3 class="subsection-title">Methods</h3>
|
||||||
|
|
||||||
<dl><?js methods.forEach(function(m) { ?>
|
<dl><?js methods.forEach(function(m) { ?>
|
||||||
|
<?js m.parent = doc ?>
|
||||||
<?js= self.partial('method.tmpl', m) ?>
|
<?js= self.partial('method.tmpl', m) ?>
|
||||||
<?js }); ?></dl>
|
<?js }); ?></dl>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ var self = this;
|
|||||||
</dt>
|
</dt>
|
||||||
<dd class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
|
<dd class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
|
||||||
|
|
||||||
|
<?js if (data.parent && data.parent.kind == 'module' && data.parent.name.split('ol/').length < 3) { ?>
|
||||||
|
<pre class="prettyprint source"><code>import {<?js= data.name ?>} from '<?js= data.parent.name ?>';</code></pre>
|
||||||
|
<?js } ?>
|
||||||
|
|
||||||
<?js if (data.description) { ?>
|
<?js if (data.description) { ?>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<?js= data.description ?>
|
<?js= data.description ?>
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ function toShortName(name) {
|
|||||||
</div>
|
</div>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
<?js
|
<?js
|
||||||
this.nav.forEach(function (item) {
|
let navbuilder;
|
||||||
|
this.nav.forEach(navbuilder = function (item) {
|
||||||
?>
|
?>
|
||||||
<li class="item" data-name="<?js= item.longname ?>">
|
<li class="item" data-name="<?js= item.longname ?>">
|
||||||
<span class="title">
|
<span class="title">
|
||||||
<?js= self.linkto(item.longname, item.longname.replace('module:', '')) ?>
|
<?js= self.linkto(item.longname, item.type === 'module' ? item.longname.replace('module:', '') : item.name) ?>
|
||||||
<?js if (item.type === 'namespace' &&
|
<?js if (item.type === 'namespace' &&
|
||||||
(item.members.length + item.typedefs.length + item.methods.length +
|
(item.members.length + item.typedefs.length + item.methods.length +
|
||||||
item.events.length > 0)) { ?>
|
item.events.length > 0)) { ?>
|
||||||
@@ -22,6 +23,18 @@ function toShortName(name) {
|
|||||||
</span>
|
</span>
|
||||||
<ul class="members itemMembers">
|
<ul class="members itemMembers">
|
||||||
<?js
|
<?js
|
||||||
|
if (item.classes.length) {
|
||||||
|
?>
|
||||||
|
<span class="subtitle">Classes</span>
|
||||||
|
<?js
|
||||||
|
item.classes.forEach(function (v) {
|
||||||
|
navbuilder(v);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
<ul class="members itemMembers">
|
||||||
|
<?js
|
||||||
if (item.members.length) {
|
if (item.members.length) {
|
||||||
?>
|
?>
|
||||||
<span class="subtitle">Members</span>
|
<span class="subtitle">Members</span>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
/* Module Resolution Options */
|
/* Module Resolution Options */
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||||
|
|||||||
@@ -220,3 +220,32 @@ Duplicate item added to a unique collection. For example, it may be that you tr
|
|||||||
### 59
|
### 59
|
||||||
|
|
||||||
Invalid command found in the PBF. This indicates that the loaded vector tile may be corrupt.
|
Invalid command found in the PBF. This indicates that the loaded vector tile may be corrupt.
|
||||||
|
|
||||||
|
### 60
|
||||||
|
|
||||||
|
Missing or invalid `size`.
|
||||||
|
|
||||||
|
### 61
|
||||||
|
|
||||||
|
Cannot determine IIIF Image API version from provided image information JSON.
|
||||||
|
|
||||||
|
### 62
|
||||||
|
|
||||||
|
A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`.
|
||||||
|
|
||||||
|
### 63
|
||||||
|
|
||||||
|
Support for the `OES_element_index_uint` WebGL extension is mandatory for WebGL layers.
|
||||||
|
|
||||||
|
### 64
|
||||||
|
|
||||||
|
Layer opacity must be a number.
|
||||||
|
|
||||||
|
### 65
|
||||||
|
|
||||||
|
A symbol literal representation must be defined on the style supplied to a `WebGLPointsLayer` instance.
|
||||||
|
|
||||||
|
### 66
|
||||||
|
|
||||||
|
`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled.
|
||||||
|
This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`.
|
||||||
|
|||||||
29
doc/faq.md
29
doc/faq.md
@@ -21,7 +21,7 @@ Table of contents:
|
|||||||
* [Why aren't there any features in my source?](#why-aren-t-there-any-features-in-my-source-)
|
* [Why aren't there any features in my source?](#why-aren-t-there-any-features-in-my-source-)
|
||||||
* [How do I force a re-render of the map?](#how-do-i-force-a-re-render-of-the-map-)
|
* [How do I force a re-render of the map?](#how-do-i-force-a-re-render-of-the-map-)
|
||||||
* [Why are my features not found?](#why-are-my-features-not-found-)
|
* [Why are my features not found?](#why-are-my-features-not-found-)
|
||||||
|
* [Why is zooming or clicking off, inaccurate?](#user-content-why-is-zooming-or-clicking-off-inaccurate)
|
||||||
|
|
||||||
## What projection is OpenLayers using?
|
## What projection is OpenLayers using?
|
||||||
|
|
||||||
@@ -371,3 +371,30 @@ const vectorLayer = new VectorLayer({
|
|||||||
```
|
```
|
||||||
|
|
||||||
The recommended value is the size of the largest symbol, line width or label.
|
The recommended value is the size of the largest symbol, line width or label.
|
||||||
|
|
||||||
|
## Why is zooming or clicking in the map off/inaccurate?
|
||||||
|
|
||||||
|
OpenLayers does not update the map when the container element is resized. This can be caused by progressive updates
|
||||||
|
to CSS styles or manually resizing the map. When that happens, any interaction will become inaccurate: the map would zoom in and out, and end up not being centered on the pointer. This makes it hard to do certain interactions, e.g. selecting the desired feature.
|
||||||
|
|
||||||
|
There is currently no built-in way to react to element's size changes, as [Resize Observer API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) is only implemented in Chrome.
|
||||||
|
|
||||||
|
There is however an easy to use [polyfill](https://github.com/que-etc/resize-observer-polyfill):
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import Map from 'ol/Map';
|
||||||
|
import ResizeObserver from 'resize-observer-polyfill';
|
||||||
|
|
||||||
|
const mapElement = document.querySelector('#map')
|
||||||
|
const map = new Map({
|
||||||
|
target: mapElement
|
||||||
|
})
|
||||||
|
|
||||||
|
const sizeObserver = new ResizeObserver(() => {
|
||||||
|
map.updateSize()
|
||||||
|
})
|
||||||
|
sizeObserver.observe(mapElement)
|
||||||
|
|
||||||
|
// called when the map is destroyed
|
||||||
|
// sizeObserver.disconnect()
|
||||||
|
```
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ The above snippets can be combined into a single script that renders a map with
|
|||||||
import Map from 'ol/Map';
|
import Map from 'ol/Map';
|
||||||
import View from 'ol/View';
|
import View from 'ol/View';
|
||||||
import OSM from 'ol/source/OSM';
|
import OSM from 'ol/source/OSM';
|
||||||
import TileLayer from 'ol/source/Tile';
|
import TileLayer from 'ol/layer/Tile';
|
||||||
|
|
||||||
new Map({
|
new Map({
|
||||||
layers: [
|
layers: [
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
"common": false,
|
"common": false,
|
||||||
"createMapboxStreetsV6Style": false,
|
"createMapboxStreetsV6Style": false,
|
||||||
"d3": false,
|
"d3": false,
|
||||||
"domtoimage": false,
|
|
||||||
"geojsonvt": false,
|
"geojsonvt": false,
|
||||||
"GyroNorm": false,
|
"GyroNorm": false,
|
||||||
"jsPDF": false,
|
"jsPDF": false,
|
||||||
|
|||||||
@@ -12,9 +12,8 @@ cloak:
|
|||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
<select id="layer-select">
|
<select id="layer-select">
|
||||||
<option value="Aerial">Aerial</option>
|
<option value="Aerial">Aerial</option>
|
||||||
<option value="AerialWithLabels" selected>Aerial with labels</option>
|
<option value="AerialWithLabelsOnDemand" selected>Aerial with labels</option>
|
||||||
<option value="Road">Road (static)</option>
|
<option value="RoadOnDemand">Road</option>
|
||||||
<option value="RoadOnDemand">Road (dynamic)</option>
|
<option value="CanvasDark">Road dark</option>
|
||||||
<option value="collinsBart">Collins Bart</option>
|
<option value="OrdnanceSurvey">Ordnance Survey</option>
|
||||||
<option value="ordnanceSurvey">Ordnance Survey</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ import BingMaps from '../src/ol/source/BingMaps.js';
|
|||||||
|
|
||||||
|
|
||||||
const styles = [
|
const styles = [
|
||||||
'Road',
|
|
||||||
'RoadOnDemand',
|
'RoadOnDemand',
|
||||||
'Aerial',
|
'Aerial',
|
||||||
'AerialWithLabels',
|
'AerialWithLabelsOnDemand',
|
||||||
'collinsBart',
|
'CanvasDark',
|
||||||
'ordnanceSurvey'
|
'OrdnanceSurvey'
|
||||||
];
|
];
|
||||||
const layers = [];
|
const layers = [];
|
||||||
let i, ii;
|
let i, ii;
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ const map = new Map({
|
|||||||
target: 'map',
|
target: 'map',
|
||||||
view: new View({
|
view: new View({
|
||||||
center: [0, 0],
|
center: [0, 0],
|
||||||
zoom: 2
|
zoom: 2,
|
||||||
|
constrainRotation: 16
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -43,12 +44,39 @@ const dragBox = new DragBox({
|
|||||||
map.addInteraction(dragBox);
|
map.addInteraction(dragBox);
|
||||||
|
|
||||||
dragBox.on('boxend', function() {
|
dragBox.on('boxend', function() {
|
||||||
// features that intersect the box are added to the collection of
|
// features that intersect the box geometry are added to the
|
||||||
// selected features
|
// collection of selected features
|
||||||
|
|
||||||
|
// if the view is not obliquely rotated the box geometry and
|
||||||
|
// its extent are equalivalent so intersecting features can
|
||||||
|
// be added directly to the collection
|
||||||
|
const rotation = map.getView().getRotation();
|
||||||
|
const oblique = rotation % (Math.PI / 2) !== 0;
|
||||||
|
const candidateFeatures = oblique ? [] : selectedFeatures;
|
||||||
const extent = dragBox.getGeometry().getExtent();
|
const extent = dragBox.getGeometry().getExtent();
|
||||||
vectorSource.forEachFeatureIntersectingExtent(extent, function(feature) {
|
vectorSource.forEachFeatureIntersectingExtent(extent, function(feature) {
|
||||||
selectedFeatures.push(feature);
|
candidateFeatures.push(feature);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// when the view is obliquely rotated the box extent will
|
||||||
|
// exceed its geometry so both the box and the candidate
|
||||||
|
// feature geometries are rotated around a common anchor
|
||||||
|
// to confirm that, with the box geometry aligned with its
|
||||||
|
// extent, the geometries intersect
|
||||||
|
if (oblique) {
|
||||||
|
const anchor = [0, 0];
|
||||||
|
const geometry = dragBox.getGeometry().clone();
|
||||||
|
geometry.rotate(-rotation, anchor);
|
||||||
|
const extent = geometry.getExtent();
|
||||||
|
candidateFeatures.forEach(function(feature) {
|
||||||
|
const geometry = feature.getGeometry().clone();
|
||||||
|
geometry.rotate(-rotation, anchor);
|
||||||
|
if (geometry.intersectsExtent(extent)) {
|
||||||
|
selectedFeatures.push(feature);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// clear selection when drawing a new box and when clicking on the map
|
// clear selection when drawing a new box and when clicking on the map
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ tags: "center, rotation, openstreetmap"
|
|||||||
<div class="padding-bottom"></div>
|
<div class="padding-bottom"></div>
|
||||||
<div class="center"></div>
|
<div class="center"></div>
|
||||||
</div>
|
</div>
|
||||||
<button id="zoomtoswitzerlandbest">Zoom to Switzerland</button> (best fit),<br/>
|
<button id="zoomtoswitzerland">Zoom to Switzerland</button> (best fit).<br/>
|
||||||
<button id="zoomtoswitzerlandconstrained">Zoom to Switzerland</button> (respect resolution constraint).<br/>
|
|
||||||
<button id="zoomtoswitzerlandnearest">Zoom to Switzerland</button> (nearest),<br/>
|
|
||||||
<button id="zoomtolausanne">Zoom to Lausanne</button> (with min resolution),<br/>
|
<button id="zoomtolausanne">Zoom to Lausanne</button> (with min resolution),<br/>
|
||||||
<button id="centerlausanne">Center on Lausanne</button>
|
<button id="centerlausanne">Center on Lausanne</button>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
|||||||
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
||||||
import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js';
|
import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js';
|
||||||
|
|
||||||
|
/** @type {VectorSource<import("../src/ol/geom/SimpleGeometry.js").default>} */
|
||||||
const source = new VectorSource({
|
const source = new VectorSource({
|
||||||
url: 'data/geojson/switzerland.geojson',
|
url: 'data/geojson/switzerland.geojson',
|
||||||
format: new GeoJSON()
|
format: new GeoJSON()
|
||||||
@@ -47,40 +48,25 @@ const map = new Map({
|
|||||||
view: view
|
view: view
|
||||||
});
|
});
|
||||||
|
|
||||||
const zoomtoswitzerlandbest = document.getElementById('zoomtoswitzerlandbest');
|
const zoomtoswitzerland =
|
||||||
zoomtoswitzerlandbest.addEventListener('click', function() {
|
document.getElementById('zoomtoswitzerland');
|
||||||
|
zoomtoswitzerland.addEventListener('click', function() {
|
||||||
const feature = source.getFeatures()[0];
|
const feature = source.getFeatures()[0];
|
||||||
const polygon = /** @type {import("../src/ol/geom/SimpleGeometry.js").default} */ (feature.getGeometry());
|
const polygon = feature.getGeometry();
|
||||||
view.fit(polygon, {padding: [170, 50, 30, 150], constrainResolution: false});
|
|
||||||
}, false);
|
|
||||||
|
|
||||||
const zoomtoswitzerlandconstrained =
|
|
||||||
document.getElementById('zoomtoswitzerlandconstrained');
|
|
||||||
zoomtoswitzerlandconstrained.addEventListener('click', function() {
|
|
||||||
const feature = source.getFeatures()[0];
|
|
||||||
const polygon = /** @type {import("../src/ol/geom/SimpleGeometry.js").default} */ (feature.getGeometry());
|
|
||||||
view.fit(polygon, {padding: [170, 50, 30, 150]});
|
view.fit(polygon, {padding: [170, 50, 30, 150]});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
const zoomtoswitzerlandnearest =
|
|
||||||
document.getElementById('zoomtoswitzerlandnearest');
|
|
||||||
zoomtoswitzerlandnearest.addEventListener('click', function() {
|
|
||||||
const feature = source.getFeatures()[0];
|
|
||||||
const polygon = /** @type {import("../src/ol/geom/SimpleGeometry.js").default} */ (feature.getGeometry());
|
|
||||||
view.fit(polygon, {padding: [170, 50, 30, 150], nearest: true});
|
|
||||||
}, false);
|
|
||||||
|
|
||||||
const zoomtolausanne = document.getElementById('zoomtolausanne');
|
const zoomtolausanne = document.getElementById('zoomtolausanne');
|
||||||
zoomtolausanne.addEventListener('click', function() {
|
zoomtolausanne.addEventListener('click', function() {
|
||||||
const feature = source.getFeatures()[1];
|
const feature = source.getFeatures()[1];
|
||||||
const point = /** @type {import("../src/ol/geom/SimpleGeometry.js").default} */ (feature.getGeometry());
|
const point = feature.getGeometry();
|
||||||
view.fit(point, {padding: [170, 50, 30, 150], minResolution: 50});
|
view.fit(point, {padding: [170, 50, 30, 150], minResolution: 50});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
const centerlausanne = document.getElementById('centerlausanne');
|
const centerlausanne = document.getElementById('centerlausanne');
|
||||||
centerlausanne.addEventListener('click', function() {
|
centerlausanne.addEventListener('click', function() {
|
||||||
const feature = source.getFeatures()[1];
|
const feature = source.getFeatures()[1];
|
||||||
const point = /** @type {import("../src/ol/geom/Point.js").default} */ (feature.getGeometry());
|
const point = feature.getGeometry();
|
||||||
const size = map.getSize();
|
const size = map.getSize();
|
||||||
view.centerOn(point.getCoordinates(), size, [570, 500]);
|
view.centerOn(point.getCoordinates(), size, [570, 500]);
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
@@ -100,8 +100,7 @@ function xyz2rgb(x) {
|
|||||||
|
|
||||||
const raster = new RasterSource({
|
const raster = new RasterSource({
|
||||||
sources: [new Stamen({
|
sources: [new Stamen({
|
||||||
layer: 'watercolor',
|
layer: 'watercolor'
|
||||||
transition: 0
|
|
||||||
})],
|
})],
|
||||||
operation: function(pixels, data) {
|
operation: function(pixels, data) {
|
||||||
const hcl = rgb2hcl(pixels[0]);
|
const hcl = rgb2hcl(pixels[0]);
|
||||||
|
|||||||
@@ -6,5 +6,8 @@ docs: >
|
|||||||
This example demonstrates creating a custom interaction by subclassing `ol/interaction/Pointer`.
|
This example demonstrates creating a custom interaction by subclassing `ol/interaction/Pointer`.
|
||||||
Note that the built in interaction `ol/interaction/Translate` might be a better option for moving features.
|
Note that the built in interaction `ol/interaction/Translate` might be a better option for moving features.
|
||||||
tags: "drag, feature, vector, editing, custom, interaction"
|
tags: "drag, feature, vector, editing, custom, interaction"
|
||||||
|
cloak:
|
||||||
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -123,13 +123,14 @@ const polygonFeature = new Feature(
|
|||||||
new Polygon([[[-3e6, -1e6], [-3e6, 1e6],
|
new Polygon([[[-3e6, -1e6], [-3e6, 1e6],
|
||||||
[-1e6, 1e6], [-1e6, -1e6], [-3e6, -1e6]]]));
|
[-1e6, 1e6], [-1e6, -1e6], [-3e6, -1e6]]]));
|
||||||
|
|
||||||
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
interactions: defaultInteractions().extend([new Drag()]),
|
interactions: defaultInteractions().extend([new Drag()]),
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure'
|
url: 'https://a.tiles.mapbox.com/v4/aj.1x1-degrees.json?access_token=' + key
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
new VectorLayer({
|
new VectorLayer({
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ docs: >
|
|||||||
The example loads TopoJSON geometries and uses d3 (<code>d3.geo.path</code>) to render these geometries to a SVG element.
|
The example loads TopoJSON geometries and uses d3 (<code>d3.geo.path</code>) to render these geometries to a SVG element.
|
||||||
tags: "d3"
|
tags: "d3"
|
||||||
resources:
|
resources:
|
||||||
- https://unpkg.com/d3@4.12.0/build/d3.js
|
- https://unpkg.com/d3@5.9.2/dist/d3.js
|
||||||
- https://unpkg.com/topojson@3.0.2/dist/topojson.js
|
- https://unpkg.com/topojson@3.0.2/dist/topojson.js
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
4
examples/d3.js
vendored
4
examples/d3.js
vendored
@@ -2,7 +2,7 @@ import Map from '../src/ol/Map.js';
|
|||||||
import View from '../src/ol/View.js';
|
import View from '../src/ol/View.js';
|
||||||
import {getWidth, getCenter} from '../src/ol/extent.js';
|
import {getWidth, getCenter} from '../src/ol/extent.js';
|
||||||
import {Layer, Tile as TileLayer} from '../src/ol/layer.js';
|
import {Layer, Tile as TileLayer} from '../src/ol/layer.js';
|
||||||
import SourceState from '../src/ol/source/State';
|
import SourceState from '../src/ol/source/State.js';
|
||||||
import {fromLonLat, toLonLat} from '../src/ol/proj.js';
|
import {fromLonLat, toLonLat} from '../src/ol/proj.js';
|
||||||
import Stamen from '../src/ol/source/Stamen.js';
|
import Stamen from '../src/ol/source/Stamen.js';
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ const map = new Map({
|
|||||||
/**
|
/**
|
||||||
* Load the topojson data and create an ol/layer/Image for that data.
|
* Load the topojson data and create an ol/layer/Image for that data.
|
||||||
*/
|
*/
|
||||||
d3.json('data/topojson/us.json', function(error, us) {
|
d3.json('data/topojson/us.json').then(function(us) {
|
||||||
|
|
||||||
const layer = new CanvasLayer({
|
const layer = new CanvasLayer({
|
||||||
features: topojson.feature(us, us.objects.counties)
|
features: topojson.feature(us, us.objects.counties)
|
||||||
|
|||||||
45717
examples/data/csv/meteorite_landings.csv
Normal file
45717
examples/data/csv/meteorite_landings.csv
Normal file
File diff suppressed because it is too large
Load Diff
1
examples/data/geojson/world-cities.geojson
Normal file
1
examples/data/geojson/world-cities.geojson
Normal file
File diff suppressed because one or more lines are too long
7
examples/data/square.svg
Normal file
7
examples/data/square.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
|
||||||
|
<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g>
|
||||||
|
<rect width="20" height="20" style="fill:#fff" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 194 B |
@@ -40,6 +40,6 @@ gn.init().then(function() {
|
|||||||
center[0] -= resolution * gamma * 25;
|
center[0] -= resolution * gamma * 25;
|
||||||
center[1] += resolution * beta * 25;
|
center[1] += resolution * beta * 25;
|
||||||
|
|
||||||
view.setCenter(view.constrainCenter(center));
|
view.setCenter(center);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
#map {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
#info {
|
|
||||||
position: absolute;
|
|
||||||
height: 1px;
|
|
||||||
width: 1px;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
.tooltip.in {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.tooltip.top .tooltip-arrow {
|
|
||||||
border-top-color: white;
|
|
||||||
}
|
|
||||||
.tooltip-inner {
|
|
||||||
border: 2px solid white;
|
|
||||||
}
|
|
||||||
@@ -26,9 +26,8 @@ const styleFunction = function(feature) {
|
|||||||
scale = size / 10;
|
scale = size / 10;
|
||||||
let style = styleCache[size];
|
let style = styleCache[size];
|
||||||
if (!style) {
|
if (!style) {
|
||||||
const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('canvas'));
|
const canvas = document.createElement('canvas');
|
||||||
const vectorContext = toContext(
|
const vectorContext = toContext(canvas.getContext('2d'),
|
||||||
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d')),
|
|
||||||
{size: [size, size], pixelRatio: 1});
|
{size: [size, size], pixelRatio: 1});
|
||||||
vectorContext.setStyle(new Style({
|
vectorContext.setStyle(new Style({
|
||||||
fill: new Fill({color: 'rgba(255, 153, 0, 0.4)'}),
|
fill: new Fill({color: 'rgba(255, 153, 0, 0.4)'}),
|
||||||
|
|||||||
16
examples/edit-geographic.html
Normal file
16
examples/edit-geographic.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: Geographic Editing
|
||||||
|
shortdesc: Editing geometries with geographic coordinates.
|
||||||
|
docs: >
|
||||||
|
Calling the <code>useGeographic</code> function in the <code>'ol/proj'</code> module
|
||||||
|
makes it so the map view uses geographic coordinates (even if the view projection is
|
||||||
|
not geographic).
|
||||||
|
tags: "geographic"
|
||||||
|
experimental: true
|
||||||
|
---
|
||||||
|
<div id="map" class="map"></div>
|
||||||
|
<select id="mode">
|
||||||
|
<option value="modify">select a feature to modify</option>
|
||||||
|
<option value="draw">draw new features</option>
|
||||||
|
</select>
|
||||||
63
examples/edit-geographic.js
Normal file
63
examples/edit-geographic.js
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
import {Map, View} from '../src/ol/index.js';
|
||||||
|
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||||
|
import {Modify, Select, Draw} from '../src/ol/interaction.js';
|
||||||
|
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
||||||
|
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
||||||
|
import {useGeographic} from '../src/ol/proj.js';
|
||||||
|
|
||||||
|
useGeographic();
|
||||||
|
|
||||||
|
const source = new VectorSource({
|
||||||
|
url: 'data/geojson/countries.geojson',
|
||||||
|
format: new GeoJSON()
|
||||||
|
});
|
||||||
|
|
||||||
|
const map = new Map({
|
||||||
|
target: 'map',
|
||||||
|
layers: [
|
||||||
|
new TileLayer({
|
||||||
|
source: new OSM()
|
||||||
|
}),
|
||||||
|
new VectorLayer({
|
||||||
|
source: source
|
||||||
|
})
|
||||||
|
],
|
||||||
|
view: new View({
|
||||||
|
center: [0, 0],
|
||||||
|
zoom: 2
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
const select = new Select();
|
||||||
|
|
||||||
|
const modify = new Modify({
|
||||||
|
features: select.getFeatures()
|
||||||
|
});
|
||||||
|
|
||||||
|
const draw = new Draw({
|
||||||
|
type: 'Polygon',
|
||||||
|
source: source
|
||||||
|
});
|
||||||
|
|
||||||
|
const mode = document.getElementById('mode');
|
||||||
|
function onChange() {
|
||||||
|
switch (mode.value) {
|
||||||
|
case 'draw': {
|
||||||
|
map.removeInteraction(modify);
|
||||||
|
map.removeInteraction(select);
|
||||||
|
map.addInteraction(draw);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'modify': {
|
||||||
|
map.removeInteraction(draw);
|
||||||
|
map.addInteraction(select);
|
||||||
|
map.addInteraction(modify);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
// pass
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mode.addEventListener('change', onChange);
|
||||||
|
onChange();
|
||||||
6
examples/export-map.css
Normal file
6
examples/export-map.css
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
.overlay {
|
||||||
|
background-color: yellow;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 4px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
@@ -3,12 +3,13 @@ layout: example.html
|
|||||||
title: Map Export
|
title: Map Export
|
||||||
shortdesc: Example of exporting a map as a PNG image.
|
shortdesc: Example of exporting a map as a PNG image.
|
||||||
docs: >
|
docs: >
|
||||||
Example of exporting a map as a PNG image. This example use the <a href="https://www.npmjs.com/package/dom-to-image-more">dom-to-image-more</a>
|
Example of exporting a map as a PNG image. This example use the <a href="https://www.npmjs.com/package/html-to-image">html-to-image</a>
|
||||||
library.
|
library.
|
||||||
tags: "export, png, openstreetmap"
|
tags: "export, png, openstreetmap"
|
||||||
resources:
|
|
||||||
- https://unpkg.com/dom-to-image-more@2.7.1/dist/dom-to-image-more.min.js
|
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
<div style="display: none;">
|
||||||
|
<div class="overlay" id="null">Null Island</div>
|
||||||
|
</div>
|
||||||
<a id="export-png" class="btn btn-default"><i class="fa fa-download"></i> Download PNG</a>
|
<a id="export-png" class="btn btn-default"><i class="fa fa-download"></i> Download PNG</a>
|
||||||
<a id="image-download" download="map.png"></a>
|
<a id="image-download" download="map.png"></a>
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import Map from '../src/ol/Map.js';
|
import Map from '../src/ol/Map.js';
|
||||||
import View from '../src/ol/View.js';
|
import View from '../src/ol/View.js';
|
||||||
|
import Overlay from '../src/ol/Overlay.js';
|
||||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||||
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
||||||
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
||||||
|
|
||||||
|
import {toPng} from 'html-to-image';
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
@@ -23,9 +26,23 @@ const map = new Map({
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
map.addOverlay(new Overlay({
|
||||||
|
position: [0, 0],
|
||||||
|
element: document.getElementById('null')
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
// export options for html-to-image.
|
||||||
|
// See: https://github.com/bubkoo/html-to-image#options
|
||||||
|
const exportOptions = {
|
||||||
|
filter: function(element) {
|
||||||
|
return element.className ? element.className.indexOf('ol-control') === -1 : true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
document.getElementById('export-png').addEventListener('click', function() {
|
document.getElementById('export-png').addEventListener('click', function() {
|
||||||
map.once('rendercomplete', function() {
|
map.once('rendercomplete', function() {
|
||||||
domtoimage.toPng(map.getViewport().querySelector('.ol-layers'))
|
toPng(map.getTargetElement(), exportOptions)
|
||||||
.then(function(dataURL) {
|
.then(function(dataURL) {
|
||||||
const link = document.getElementById('image-download');
|
const link = document.getElementById('image-download');
|
||||||
link.href = dataURL;
|
link.href = dataURL;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ docs: >
|
|||||||
tags: "export, pdf, openstreetmap"
|
tags: "export, pdf, openstreetmap"
|
||||||
resources:
|
resources:
|
||||||
- https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.min.js
|
- https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.min.js
|
||||||
- https://unpkg.com/dom-to-image-more@2.7.1/dist/dom-to-image-more.min.js
|
|
||||||
---
|
---
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import WKT from '../src/ol/format/WKT.js';
|
|||||||
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
||||||
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
||||||
|
|
||||||
|
import {toJpeg} from 'html-to-image';
|
||||||
|
|
||||||
const raster = new TileLayer({
|
const raster = new TileLayer({
|
||||||
source: new OSM()
|
source: new OSM()
|
||||||
});
|
});
|
||||||
@@ -41,6 +43,15 @@ const dims = {
|
|||||||
a5: [210, 148]
|
a5: [210, 148]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// export options for html-to-image.
|
||||||
|
// See: https://github.com/bubkoo/html-to-image#options
|
||||||
|
const exportOptions = {
|
||||||
|
filter: function(element) {
|
||||||
|
return element.className.indexOf('ol-control') === -1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const exportButton = document.getElementById('export-pdf');
|
const exportButton = document.getElementById('export-pdf');
|
||||||
|
|
||||||
exportButton.addEventListener('click', function() {
|
exportButton.addEventListener('click', function() {
|
||||||
@@ -54,16 +65,18 @@ exportButton.addEventListener('click', function() {
|
|||||||
const width = Math.round(dim[0] * resolution / 25.4);
|
const width = Math.round(dim[0] * resolution / 25.4);
|
||||||
const height = Math.round(dim[1] * resolution / 25.4);
|
const height = Math.round(dim[1] * resolution / 25.4);
|
||||||
const size = map.getSize();
|
const size = map.getSize();
|
||||||
const extent = map.getView().calculateExtent(size);
|
const viewResolution = map.getView().getResolution();
|
||||||
|
|
||||||
map.once('rendercomplete', function() {
|
map.once('rendercomplete', function() {
|
||||||
domtoimage.toJpeg(map.getViewport().querySelector('.ol-layers')).then(function(dataUrl) {
|
exportOptions.width = width;
|
||||||
|
exportOptions.height = height;
|
||||||
|
toJpeg(map.getViewport(), exportOptions).then(function(dataUrl) {
|
||||||
const pdf = new jsPDF('landscape', undefined, format);
|
const pdf = new jsPDF('landscape', undefined, format);
|
||||||
pdf.addImage(dataUrl, 'JPEG', 0, 0, dim[0], dim[1]);
|
pdf.addImage(dataUrl, 'JPEG', 0, 0, dim[0], dim[1]);
|
||||||
pdf.save('map.pdf');
|
pdf.save('map.pdf');
|
||||||
// Reset original map size
|
// Reset original map size
|
||||||
map.setSize(size);
|
map.setSize(size);
|
||||||
map.getView().fit(extent, {size});
|
map.getView().setResolution(viewResolution);
|
||||||
exportButton.disabled = false;
|
exportButton.disabled = false;
|
||||||
document.body.style.cursor = 'auto';
|
document.body.style.cursor = 'auto';
|
||||||
});
|
});
|
||||||
@@ -72,6 +85,7 @@ exportButton.addEventListener('click', function() {
|
|||||||
// Set print size
|
// Set print size
|
||||||
const printSize = [width, height];
|
const printSize = [width, height];
|
||||||
map.setSize(printSize);
|
map.setSize(printSize);
|
||||||
map.getView().fit(extent, {size: printSize});
|
const scaling = Math.min(width / size[0], height / size[1]);
|
||||||
|
map.getView().setResolution(viewResolution / scaling);
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
9
examples/extent-constrained.html
Normal file
9
examples/extent-constrained.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: Constrained Extent
|
||||||
|
shortdesc: Example of a view with a constrained extent.
|
||||||
|
docs: >
|
||||||
|
This map has a view that is constrained in an extent. This is done using the `extent` view option. Please note that specifying `constrainOnlyCenter: true` would only apply the extent restriction to the view center.
|
||||||
|
tags: "view, extent, constrain, restrict"
|
||||||
|
---
|
||||||
|
<div id="map" class="map"></div>
|
||||||
25
examples/extent-constrained.js
Normal file
25
examples/extent-constrained.js
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import Map from '../src/ol/Map.js';
|
||||||
|
import View from '../src/ol/View.js';
|
||||||
|
import TileLayer from '../src/ol/layer/Tile.js';
|
||||||
|
import OSM from '../src/ol/source/OSM.js';
|
||||||
|
import {defaults as defaultControls} from '../src/ol/control.js';
|
||||||
|
import ZoomSlider from '../src/ol/control/ZoomSlider.js';
|
||||||
|
|
||||||
|
const view = new View({
|
||||||
|
center: [328627.563458, 5921296.662223],
|
||||||
|
zoom: 8,
|
||||||
|
extent: [-572513.341856, 5211017.966314,
|
||||||
|
916327.095083, 6636950.728974]
|
||||||
|
});
|
||||||
|
|
||||||
|
new Map({
|
||||||
|
layers: [
|
||||||
|
new TileLayer({
|
||||||
|
source: new OSM()
|
||||||
|
})
|
||||||
|
],
|
||||||
|
keyboardEventTarget: document,
|
||||||
|
target: 'map',
|
||||||
|
view: view,
|
||||||
|
controls: defaultControls().extend([new ZoomSlider()])
|
||||||
|
});
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import Map from '../src/ol/Map.js';
|
import Map from '../src/ol/Map.js';
|
||||||
import View from '../src/ol/View.js';
|
import View from '../src/ol/View.js';
|
||||||
import {platformModifierKeyOnly} from '../src/ol/events/condition.js';
|
|
||||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||||
import ExtentInteraction from '../src/ol/interaction/Extent.js';
|
import ExtentInteraction from '../src/ol/interaction/Extent.js';
|
||||||
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
|
||||||
@@ -27,9 +26,7 @@ const map = new Map({
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
const extent = new ExtentInteraction({
|
const extent = new ExtentInteraction();
|
||||||
condition: platformModifierKeyOnly
|
|
||||||
});
|
|
||||||
map.addInteraction(extent);
|
map.addInteraction(extent);
|
||||||
extent.setActive(false);
|
extent.setActive(false);
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ const map = new Map({
|
|||||||
target: 'map',
|
target: 'map',
|
||||||
view: new View({
|
view: new View({
|
||||||
center: [0, 0],
|
center: [0, 0],
|
||||||
zoom: 1
|
zoom: 1,
|
||||||
|
multiWorld: true
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -67,10 +67,10 @@ const routeFeature = new Feature({
|
|||||||
type: 'route',
|
type: 'route',
|
||||||
geometry: route
|
geometry: route
|
||||||
});
|
});
|
||||||
const geoMarker = new Feature({
|
const geoMarker = /** @type Feature<import("../src/ol/geom/Point").default> */(new Feature({
|
||||||
type: 'geoMarker',
|
type: 'geoMarker',
|
||||||
geometry: new Point(routeCoords[0])
|
geometry: new Point(routeCoords[0])
|
||||||
});
|
}));
|
||||||
const startMarker = new Feature({
|
const startMarker = new Feature({
|
||||||
type: 'icon',
|
type: 'icon',
|
||||||
geometry: new Point(routeCoords[0])
|
geometry: new Point(routeCoords[0])
|
||||||
@@ -133,7 +133,7 @@ const map = new Map({
|
|||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new BingMaps({
|
source: new BingMaps({
|
||||||
imagerySet: 'AerialWithLabels',
|
imagerySet: 'AerialWithLabelsOnDemand',
|
||||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5'
|
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
@@ -191,7 +191,7 @@ function stopAnimation(ended) {
|
|||||||
|
|
||||||
// if animation cancelled set the marker at the beginning
|
// if animation cancelled set the marker at the beginning
|
||||||
const coord = ended ? routeCoords[routeLength - 1] : routeCoords[0];
|
const coord = ended ? routeCoords[routeLength - 1] : routeCoords[0];
|
||||||
const geometry = /** @type {import("../src/ol/geom/Point").default} */ (geoMarker.getGeometry());
|
const geometry = geoMarker.getGeometry();
|
||||||
geometry.setCoordinates(coord);
|
geometry.setCoordinates(coord);
|
||||||
//remove listener
|
//remove listener
|
||||||
vectorLayer.un('postrender', moveFeature);
|
vectorLayer.un('postrender', moveFeature);
|
||||||
|
|||||||
26
examples/filter-points-webgl.html
Normal file
26
examples/filter-points-webgl.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: Filtering features with WebGL
|
||||||
|
shortdesc: Using WebGL to filter large quantities of features
|
||||||
|
docs: >
|
||||||
|
This example shows how to use `ol/renderer/webgl/PointsLayer` to dynamically filter a large amount
|
||||||
|
of point geometries. The above map is based on a dataset from the NASA containing 45k recorded meteorite
|
||||||
|
landing sites. Each meteorite is marked by a circle on the map (the bigger the circle, the heavier
|
||||||
|
the object). A pulse effect has been added, which is slightly offset by the year of the impact.
|
||||||
|
|
||||||
|
Adjusting the sliders causes the objects outside of the date range to be filtered out of the map. This is done using
|
||||||
|
a custom fragment shader on the layer renderer, and by using the `v_opacity` attribute of the rendered objects
|
||||||
|
to store the year of impact.
|
||||||
|
|
||||||
|
tags: "webgl, icon, sprite, filter, feature"
|
||||||
|
experimental: true
|
||||||
|
---
|
||||||
|
<div id="map" class="map"></div>
|
||||||
|
<form>
|
||||||
|
<div id="status">Show impacts between <span class="min-year"></span> and <span class="max-year"></span></div>
|
||||||
|
|
||||||
|
<label>Minimum year:</label>
|
||||||
|
<input id="min-year" type="range" min="1850" max="2015" step="1" value="1850"/>
|
||||||
|
<label>Maximum year:</label>
|
||||||
|
<input id="max-year" type="range" min="1850" max="2015" step="1" value="2015"/>
|
||||||
|
</form>
|
||||||
186
examples/filter-points-webgl.js
Normal file
186
examples/filter-points-webgl.js
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
import Map from '../src/ol/Map.js';
|
||||||
|
import View from '../src/ol/View.js';
|
||||||
|
import TileLayer from '../src/ol/layer/Tile.js';
|
||||||
|
import Feature from '../src/ol/Feature.js';
|
||||||
|
import Point from '../src/ol/geom/Point.js';
|
||||||
|
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||||
|
import {Vector} from '../src/ol/source.js';
|
||||||
|
import {fromLonLat} from '../src/ol/proj.js';
|
||||||
|
import WebGLPointsLayerRenderer from '../src/ol/renderer/webgl/PointsLayer.js';
|
||||||
|
import {clamp} from '../src/ol/math.js';
|
||||||
|
import Stamen from '../src/ol/source/Stamen.js';
|
||||||
|
import {formatColor} from '../src/ol/webgl/ShaderBuilder.js';
|
||||||
|
|
||||||
|
const vectorSource = new Vector({
|
||||||
|
attributions: 'NASA'
|
||||||
|
});
|
||||||
|
|
||||||
|
const oldColor = [180, 140, 140];
|
||||||
|
const newColor = [255, 80, 80];
|
||||||
|
|
||||||
|
const startTime = Date.now() * 0.001;
|
||||||
|
|
||||||
|
// hanle input values & events
|
||||||
|
const minYearInput = document.getElementById('min-year');
|
||||||
|
const maxYearInput = document.getElementById('max-year');
|
||||||
|
function updateStatusText() {
|
||||||
|
const div = document.getElementById('status');
|
||||||
|
div.querySelector('span.min-year').textContent = minYearInput.value;
|
||||||
|
div.querySelector('span.max-year').textContent = maxYearInput.value;
|
||||||
|
}
|
||||||
|
minYearInput.addEventListener('input', updateStatusText);
|
||||||
|
minYearInput.addEventListener('change', updateStatusText);
|
||||||
|
maxYearInput.addEventListener('input', updateStatusText);
|
||||||
|
maxYearInput.addEventListener('change', updateStatusText);
|
||||||
|
updateStatusText();
|
||||||
|
|
||||||
|
class WebglPointsLayer extends VectorLayer {
|
||||||
|
createRenderer() {
|
||||||
|
return new WebGLPointsLayerRenderer(this, {
|
||||||
|
attributes: [
|
||||||
|
{
|
||||||
|
name: 'size',
|
||||||
|
callback: function(feature) {
|
||||||
|
return 18 * clamp(feature.get('mass') / 200000, 0, 1) + 8;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'year',
|
||||||
|
callback: function(feature) {
|
||||||
|
return feature.get('year');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
vertexShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform mat4 u_projectionMatrix;',
|
||||||
|
'uniform mat4 u_offsetScaleMatrix;',
|
||||||
|
'uniform mat4 u_offsetRotateMatrix;',
|
||||||
|
'attribute vec2 a_position;',
|
||||||
|
'attribute float a_index;',
|
||||||
|
'attribute float a_size;',
|
||||||
|
'attribute float a_year;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying float v_year;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
' mat4 offsetMatrix = u_offsetScaleMatrix;',
|
||||||
|
' float offsetX = a_index == 0.0 || a_index == 3.0 ? -a_size / 2.0 : a_size / 2.0;',
|
||||||
|
' float offsetY = a_index == 0.0 || a_index == 1.0 ? -a_size / 2.0 : a_size / 2.0;',
|
||||||
|
' vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);',
|
||||||
|
' gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;',
|
||||||
|
' float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;',
|
||||||
|
' float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;',
|
||||||
|
' v_texCoord = vec2(u, v);',
|
||||||
|
' v_year = a_year;',
|
||||||
|
'}'
|
||||||
|
].join(' '),
|
||||||
|
fragmentShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform float u_time;',
|
||||||
|
'uniform float u_minYear;',
|
||||||
|
'uniform float u_maxYear;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying float v_year;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
|
||||||
|
// filter out pixels if the year is outside of the given range
|
||||||
|
' if (v_year < u_minYear || v_year > u_maxYear) {',
|
||||||
|
' discard;',
|
||||||
|
' }',
|
||||||
|
|
||||||
|
' vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);',
|
||||||
|
' float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;',
|
||||||
|
' float value = 2.0 * (1.0 - sqRadius);',
|
||||||
|
' float alpha = smoothstep(0.0, 1.0, value);',
|
||||||
|
|
||||||
|
// color is interpolated based on year
|
||||||
|
' float ratio = clamp((v_year - 1800.0) / (2013.0 - 1800.0), 0.0, 1.1);',
|
||||||
|
' vec3 color = mix(vec3(' + formatColor(oldColor) + '),',
|
||||||
|
' vec3(' + formatColor(newColor) + '), ratio);',
|
||||||
|
|
||||||
|
' float period = 8.0;',
|
||||||
|
' color.g *= 2.0 * (1.0 - sqrt(mod(u_time + v_year * 0.025, period) / period));',
|
||||||
|
|
||||||
|
' gl_FragColor = vec4(color, 1.0);',
|
||||||
|
' gl_FragColor.a *= alpha;',
|
||||||
|
' gl_FragColor.rgb *= gl_FragColor.a;',
|
||||||
|
'}'
|
||||||
|
].join(' '),
|
||||||
|
uniforms: {
|
||||||
|
u_time: function() {
|
||||||
|
return Date.now() * 0.001 - startTime;
|
||||||
|
},
|
||||||
|
u_minYear: function() {
|
||||||
|
return parseInt(minYearInput.value);
|
||||||
|
},
|
||||||
|
u_maxYear: function() {
|
||||||
|
return parseInt(maxYearInput.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function loadData() {
|
||||||
|
const client = new XMLHttpRequest();
|
||||||
|
client.open('GET', 'data/csv/meteorite_landings.csv');
|
||||||
|
client.onload = function() {
|
||||||
|
const csv = client.responseText;
|
||||||
|
const features = [];
|
||||||
|
|
||||||
|
let prevIndex = csv.indexOf('\n') + 1; // scan past the header line
|
||||||
|
|
||||||
|
let curIndex;
|
||||||
|
while ((curIndex = csv.indexOf('\n', prevIndex)) != -1) {
|
||||||
|
const line = csv.substr(prevIndex, curIndex - prevIndex).split(',');
|
||||||
|
prevIndex = curIndex + 1;
|
||||||
|
|
||||||
|
const coords = fromLonLat([parseFloat(line[4]), parseFloat(line[3])]);
|
||||||
|
if (isNaN(coords[0]) || isNaN(coords[1])) {
|
||||||
|
// guard against bad data
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
features.push(new Feature({
|
||||||
|
mass: parseFloat(line[1]) || 0,
|
||||||
|
year: parseInt(line[2]) || 0,
|
||||||
|
geometry: new Point(coords)
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
vectorSource.addFeatures(features);
|
||||||
|
};
|
||||||
|
client.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
loadData();
|
||||||
|
|
||||||
|
const map = new Map({
|
||||||
|
layers: [
|
||||||
|
new TileLayer({
|
||||||
|
source: new Stamen({
|
||||||
|
layer: 'toner'
|
||||||
|
})
|
||||||
|
}),
|
||||||
|
new WebglPointsLayer({
|
||||||
|
source: vectorSource
|
||||||
|
})
|
||||||
|
],
|
||||||
|
target: document.getElementById('map'),
|
||||||
|
view: new View({
|
||||||
|
center: [0, 0],
|
||||||
|
zoom: 2
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
// animate the map
|
||||||
|
function animate() {
|
||||||
|
map.render();
|
||||||
|
window.requestAnimationFrame(animate);
|
||||||
|
}
|
||||||
|
animate();
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
.map:-moz-full-screen {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.map:-webkit-full-screen {
|
.map:-webkit-full-screen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
.map:-ms-fullscreen {
|
.map:-ms-fullscreen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
.fullscreen:-moz-full-screen {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.fullscreen:-webkit-full-screen {
|
.fullscreen:-webkit-full-screen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
.fullscreen:-ms-fullscreen {
|
.fullscreen:-ms-fullscreen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
.map:-moz-full-screen {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.map:-webkit-full-screen {
|
.map:-webkit-full-screen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
.map:-ms-fullscreen {
|
.map:-ms-fullscreen {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
4
examples/geographic.css
Normal file
4
examples/geographic.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
td {
|
||||||
|
padding: 0 0.5em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
18
examples/geographic.html
Normal file
18
examples/geographic.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: Geographic Coordinates
|
||||||
|
shortdesc: Using geographic coordinates for the map view.
|
||||||
|
docs: >
|
||||||
|
Calling the <code>useGeographic</code> function in the <code>'ol/proj'</code> module
|
||||||
|
makes it so the map view uses geographic coordinates (even if the view projection is
|
||||||
|
not geographic).
|
||||||
|
tags: "geographic"
|
||||||
|
experimental: true
|
||||||
|
resources:
|
||||||
|
- https://code.jquery.com/jquery-2.2.3.min.js
|
||||||
|
- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css
|
||||||
|
- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js
|
||||||
|
---
|
||||||
|
<div id="map" class="map"><div id="popup"></div></div>
|
||||||
|
<div id="info"></div>
|
||||||
|
|
||||||
89
examples/geographic.js
Normal file
89
examples/geographic.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import {useGeographic} from '../src/ol/proj.js';
|
||||||
|
import {Map, View, Feature, Overlay} from '../src/ol/index.js';
|
||||||
|
import {Point} from '../src/ol/geom.js';
|
||||||
|
import {Vector as VectorLayer, Tile as TileLayer} from '../src/ol/layer.js';
|
||||||
|
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
|
||||||
|
import {Style, Circle, Fill} from '../src/ol/style.js';
|
||||||
|
|
||||||
|
useGeographic();
|
||||||
|
|
||||||
|
const place = [-110, 45];
|
||||||
|
|
||||||
|
const point = new Point(place);
|
||||||
|
|
||||||
|
const map = new Map({
|
||||||
|
target: 'map',
|
||||||
|
view: new View({
|
||||||
|
center: place,
|
||||||
|
zoom: 8
|
||||||
|
}),
|
||||||
|
layers: [
|
||||||
|
new TileLayer({
|
||||||
|
source: new OSM()
|
||||||
|
}),
|
||||||
|
new VectorLayer({
|
||||||
|
source: new VectorSource({
|
||||||
|
features: [
|
||||||
|
new Feature(point)
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
style: new Style({
|
||||||
|
image: new Circle({
|
||||||
|
radius: 9,
|
||||||
|
fill: new Fill({color: 'red'})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
const element = document.getElementById('popup');
|
||||||
|
|
||||||
|
const popup = new Overlay({
|
||||||
|
element: element,
|
||||||
|
positioning: 'bottom-center',
|
||||||
|
stopEvent: false,
|
||||||
|
offset: [0, -10]
|
||||||
|
});
|
||||||
|
map.addOverlay(popup);
|
||||||
|
|
||||||
|
function formatCoordinate(coordinate) {
|
||||||
|
return `
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr><th>lon</th><td>${coordinate[0].toFixed(2)}</td></tr>
|
||||||
|
<tr><th>lat</th><td>${coordinate[1].toFixed(2)}</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
const info = document.getElementById('info');
|
||||||
|
map.on('moveend', function() {
|
||||||
|
const view = map.getView();
|
||||||
|
const center = view.getCenter();
|
||||||
|
info.innerHTML = formatCoordinate(center);
|
||||||
|
});
|
||||||
|
|
||||||
|
map.on('click', function(event) {
|
||||||
|
const feature = map.getFeaturesAtPixel(event.pixel)[0];
|
||||||
|
if (feature) {
|
||||||
|
const coordinate = feature.getGeometry().getCoordinates();
|
||||||
|
popup.setPosition(coordinate);
|
||||||
|
$(element).popover({
|
||||||
|
placement: 'top',
|
||||||
|
html: true,
|
||||||
|
content: formatCoordinate(coordinate)
|
||||||
|
});
|
||||||
|
$(element).popover('show');
|
||||||
|
} else {
|
||||||
|
$(element).popover('destroy');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
map.on('pointermove', function(event) {
|
||||||
|
if (map.hasFeatureAtPixel(event.pixel)) {
|
||||||
|
map.getViewport().style.cursor = 'pointer';
|
||||||
|
} else {
|
||||||
|
map.getViewport().style.cursor = 'inherit';
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -6,7 +6,7 @@ import VectorTileSource from '../src/ol/source/VectorTile.js';
|
|||||||
import {Tile as TileLayer, VectorTile as VectorTileLayer} from '../src/ol/layer.js';
|
import {Tile as TileLayer, VectorTile as VectorTileLayer} from '../src/ol/layer.js';
|
||||||
import Projection from '../src/ol/proj/Projection.js';
|
import Projection from '../src/ol/proj/Projection.js';
|
||||||
|
|
||||||
|
// Converts geojson-vt data to GeoJSON
|
||||||
const replacer = function(key, value) {
|
const replacer = function(key, value) {
|
||||||
if (value.geometry) {
|
if (value.geometry) {
|
||||||
let type;
|
let type;
|
||||||
@@ -46,11 +46,6 @@ const replacer = function(key, value) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const tilePixels = new Projection({
|
|
||||||
code: 'TILE_PIXELS',
|
|
||||||
units: 'tile-pixels'
|
|
||||||
});
|
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
@@ -73,23 +68,22 @@ fetch(url).then(function(response) {
|
|||||||
debug: 1
|
debug: 1
|
||||||
});
|
});
|
||||||
const vectorSource = new VectorTileSource({
|
const vectorSource = new VectorTileSource({
|
||||||
format: new GeoJSON(),
|
format: new GeoJSON({
|
||||||
tileLoadFunction: function(tile) {
|
// Data returned from geojson-vt is in tile pixel units
|
||||||
const format = tile.getFormat();
|
dataProjection: new Projection({
|
||||||
const tileCoord = tile.getTileCoord();
|
code: 'TILE_PIXELS',
|
||||||
|
units: 'tile-pixels',
|
||||||
|
extent: [0, 0, 4096, 4096]
|
||||||
|
})
|
||||||
|
}),
|
||||||
|
tileUrlFunction: function(tileCoord) {
|
||||||
const data = tileIndex.getTile(tileCoord[0], tileCoord[1], tileCoord[2]);
|
const data = tileIndex.getTile(tileCoord[0], tileCoord[1], tileCoord[2]);
|
||||||
|
const geojson = JSON.stringify({
|
||||||
const features = format.readFeatures(
|
|
||||||
JSON.stringify({
|
|
||||||
type: 'FeatureCollection',
|
type: 'FeatureCollection',
|
||||||
features: data ? data.features : []
|
features: data ? data.features : []
|
||||||
}, replacer));
|
}, replacer);
|
||||||
tile.setLoader(function() {
|
return 'data:application/json;charset=UTF-8,' + geojson;
|
||||||
tile.setFeatures(features);
|
}
|
||||||
tile.setProjection(tilePixels);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
url: 'data:' // arbitrary url, we don't use it in the tileLoadFunction
|
|
||||||
});
|
});
|
||||||
const vectorLayer = new VectorTileLayer({
|
const vectorLayer = new VectorTileLayer({
|
||||||
source: vectorSource
|
source: vectorSource
|
||||||
|
|||||||
@@ -29,12 +29,15 @@ const map = new Map({
|
|||||||
map.on('singleclick', function(evt) {
|
map.on('singleclick', function(evt) {
|
||||||
document.getElementById('info').innerHTML = '';
|
document.getElementById('info').innerHTML = '';
|
||||||
const viewResolution = /** @type {number} */ (view.getResolution());
|
const viewResolution = /** @type {number} */ (view.getResolution());
|
||||||
const url = wmsSource.getGetFeatureInfoUrl(
|
const url = wmsSource.getFeatureInfoUrl(
|
||||||
evt.coordinate, viewResolution, 'EPSG:3857',
|
evt.coordinate, viewResolution, 'EPSG:3857',
|
||||||
{'INFO_FORMAT': 'text/html'});
|
{'INFO_FORMAT': 'text/html'});
|
||||||
if (url) {
|
if (url) {
|
||||||
document.getElementById('info').innerHTML =
|
fetch(url)
|
||||||
'<iframe seamless src="' + url + '"></iframe>';
|
.then((response) => response.text())
|
||||||
|
.then((html) => {
|
||||||
|
document.getElementById('info').innerHTML = html;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -29,12 +29,15 @@ const map = new Map({
|
|||||||
map.on('singleclick', function(evt) {
|
map.on('singleclick', function(evt) {
|
||||||
document.getElementById('info').innerHTML = '';
|
document.getElementById('info').innerHTML = '';
|
||||||
const viewResolution = /** @type {number} */ (view.getResolution());
|
const viewResolution = /** @type {number} */ (view.getResolution());
|
||||||
const url = wmsSource.getGetFeatureInfoUrl(
|
const url = wmsSource.getFeatureInfoUrl(
|
||||||
evt.coordinate, viewResolution, 'EPSG:3857',
|
evt.coordinate, viewResolution, 'EPSG:3857',
|
||||||
{'INFO_FORMAT': 'text/html'});
|
{'INFO_FORMAT': 'text/html'});
|
||||||
if (url) {
|
if (url) {
|
||||||
document.getElementById('info').innerHTML =
|
fetch(url)
|
||||||
'<iframe seamless src="' + url + '"></iframe>';
|
.then((response) => response.text())
|
||||||
|
.then((html) => {
|
||||||
|
document.getElementById('info').innerHTML = html;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ title: Earthquakes Heatmap
|
|||||||
shortdesc: Demonstrates the use of a heatmap layer.
|
shortdesc: Demonstrates the use of a heatmap layer.
|
||||||
docs: >
|
docs: >
|
||||||
This example parses a KML file and renders the features as a <code>ol/layer/Heatmap</code> layer.
|
This example parses a KML file and renders the features as a <code>ol/layer/Heatmap</code> layer.
|
||||||
tags: "heatmap, kml, vector, style"
|
tags: "heatmap, kml, vector, style, webgl"
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
<form>
|
<form>
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#map {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
@@ -25,7 +25,7 @@ rome.setStyle(new Style({
|
|||||||
image: new Icon({
|
image: new Icon({
|
||||||
color: '#8959A8',
|
color: '#8959A8',
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
src: 'data/dot.png'
|
src: 'data/square.svg'
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ const vectorLayer = new VectorLayer({
|
|||||||
|
|
||||||
const rasterLayer = new TileLayer({
|
const rasterLayer = new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure',
|
url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json',
|
||||||
crossOrigin: ''
|
crossOrigin: ''
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,5 +13,10 @@ docs: >
|
|||||||
|
|
||||||
The dataset contains around 80k points and can be found here: https://www.kaggle.com/NUFORC/ufo-sightings
|
The dataset contains around 80k points and can be found here: https://www.kaggle.com/NUFORC/ufo-sightings
|
||||||
tags: "webgl, icon, sprite, point, ufo"
|
tags: "webgl, icon, sprite, point, ufo"
|
||||||
|
experimental: true
|
||||||
|
cloak:
|
||||||
|
- key: pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg
|
||||||
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
<div>Current sighting: <span id="info"></span></div>
|
||||||
|
|||||||
@@ -1,65 +1,173 @@
|
|||||||
import Map from '../src/ol/Map.js';
|
import Map from '../src/ol/Map.js';
|
||||||
import View from '../src/ol/View.js';
|
import View from '../src/ol/View.js';
|
||||||
import TileLayer from '../src/ol/layer/Tile.js';
|
import TileLayer from '../src/ol/layer/Tile.js';
|
||||||
import TileJSON from '../src/ol/source/TileJSON';
|
import TileJSON from '../src/ol/source/TileJSON.js';
|
||||||
import Feature from '../src/ol/Feature';
|
import Feature from '../src/ol/Feature.js';
|
||||||
import Point from '../src/ol/geom/Point';
|
import Point from '../src/ol/geom/Point.js';
|
||||||
import VectorLayer from '../src/ol/layer/Vector';
|
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||||
import {Vector} from '../src/ol/source';
|
import {Vector} from '../src/ol/source.js';
|
||||||
import {fromLonLat} from '../src/ol/proj';
|
import {fromLonLat} from '../src/ol/proj.js';
|
||||||
import WebGLPointsLayerRenderer from '../src/ol/renderer/webgl/PointsLayer';
|
import WebGLPointsLayerRenderer from '../src/ol/renderer/webgl/PointsLayer.js';
|
||||||
import {lerp} from '../src/ol/math';
|
import {formatColor, formatNumber} from '../src/ol/webgl/ShaderBuilder.js';
|
||||||
|
|
||||||
|
const key = 'pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg';
|
||||||
|
|
||||||
const features = [];
|
|
||||||
const vectorSource = new Vector({
|
const vectorSource = new Vector({
|
||||||
features: [],
|
features: [],
|
||||||
attributions: 'National UFO Reporting Center'
|
attributions: 'National UFO Reporting Center'
|
||||||
});
|
});
|
||||||
|
|
||||||
const texture = document.createElement('img');
|
const texture = new Image();
|
||||||
texture.src = 'data/ufo_shapes.png';
|
texture.src = 'data/ufo_shapes.png';
|
||||||
|
|
||||||
// This describes the content of the associated sprite sheet
|
// This describes the content of the associated sprite sheet
|
||||||
// coords are u0, v0, u1, v1 for a given shape
|
// coords are u0, v0 for a given shape (all icons have a size of 0.25 x 0.5)
|
||||||
const shapeTextureCoords = {
|
const shapeTextureCoords = {
|
||||||
'light': [0, 0.5, 0.25, 0],
|
'light': [0, 0],
|
||||||
'sphere': [0.25, 0.5, 0.5, 0],
|
'sphere': [0.25, 0],
|
||||||
'circle': [0.25, 0.5, 0.5, 0],
|
'circle': [0.25, 0],
|
||||||
'disc': [0.5, 0.5, 0.75, 0],
|
'disc': [0.5, 0],
|
||||||
'oval': [0.5, 0.5, 0.75, 0],
|
'oval': [0.5, 0],
|
||||||
'triangle': [0.75, 0.5, 1, 0],
|
'triangle': [0.75, 0],
|
||||||
'fireball': [0, 1, 0.25, 0.5],
|
'fireball': [0, 0.5],
|
||||||
'default': [0.75, 1, 1, 0.5]
|
'default': [0.75, 0.5]
|
||||||
};
|
};
|
||||||
|
|
||||||
const oldColor = [255, 160, 110];
|
const oldColor = [255, 160, 110];
|
||||||
const newColor = [180, 255, 200];
|
const newColor = [180, 255, 200];
|
||||||
|
const size = 16;
|
||||||
|
|
||||||
class WebglPointsLayer extends VectorLayer {
|
class WebglPointsLayer extends VectorLayer {
|
||||||
createRenderer() {
|
createRenderer() {
|
||||||
return new WebGLPointsLayerRenderer(this, {
|
return new WebGLPointsLayerRenderer(this, {
|
||||||
texture: texture,
|
attributes: [
|
||||||
colorCallback: function(feature, vertex, component) {
|
{
|
||||||
// component at index 3 is alpha
|
name: 'year',
|
||||||
if (component === 3) {
|
callback: function(feature) {
|
||||||
return 1;
|
return feature.get('year');
|
||||||
}
|
}
|
||||||
|
|
||||||
// color is interpolated based on year (min is 1910, max is 2013)
|
|
||||||
// please note: most values are between 2000-2013
|
|
||||||
const ratio = (feature.get('year') - 1950) / (2013 - 1950);
|
|
||||||
return lerp(oldColor[component], newColor[component], ratio * ratio) / 255;
|
|
||||||
},
|
},
|
||||||
texCoordCallback: function(feature, component) {
|
{
|
||||||
|
name: 'texCoordU',
|
||||||
|
callback: function(feature) {
|
||||||
let coords = shapeTextureCoords[feature.get('shape')];
|
let coords = shapeTextureCoords[feature.get('shape')];
|
||||||
if (!coords) {
|
if (!coords) {
|
||||||
coords = shapeTextureCoords['default'];
|
coords = shapeTextureCoords['default'];
|
||||||
}
|
}
|
||||||
return coords[component];
|
return coords[0];
|
||||||
},
|
|
||||||
sizeCallback: function() {
|
|
||||||
return 16;
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'texCoordV',
|
||||||
|
callback: function(feature) {
|
||||||
|
let coords = shapeTextureCoords[feature.get('shape')];
|
||||||
|
if (!coords) {
|
||||||
|
coords = shapeTextureCoords['default'];
|
||||||
|
}
|
||||||
|
return coords[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
uniforms: {
|
||||||
|
u_texture: texture
|
||||||
|
},
|
||||||
|
vertexShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform mat4 u_projectionMatrix;',
|
||||||
|
'uniform mat4 u_offsetScaleMatrix;',
|
||||||
|
'uniform mat4 u_offsetRotateMatrix;',
|
||||||
|
'attribute vec2 a_position;',
|
||||||
|
'attribute float a_index;',
|
||||||
|
'attribute float a_year;',
|
||||||
|
'attribute float a_texCoordU;',
|
||||||
|
'attribute float a_texCoordV;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying float v_year;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
' mat4 offsetMatrix = u_offsetScaleMatrix;',
|
||||||
|
' float offsetX = a_index == 0.0 || a_index == 3.0 ? ',
|
||||||
|
' ' + formatNumber(-size / 2) + ' : ' + formatNumber(size / 2) + ';',
|
||||||
|
' float offsetY = a_index == 0.0 || a_index == 1.0 ? ',
|
||||||
|
' ' + formatNumber(-size / 2) + ' : ' + formatNumber(size / 2) + ';',
|
||||||
|
' vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);',
|
||||||
|
' gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;',
|
||||||
|
' float u = a_index == 0.0 || a_index == 3.0 ? a_texCoordU : a_texCoordU + 0.25;',
|
||||||
|
' float v = a_index == 2.0 || a_index == 3.0 ? a_texCoordV : a_texCoordV + 0.5;',
|
||||||
|
' v_texCoord = vec2(u, v);',
|
||||||
|
' v_year = a_year;',
|
||||||
|
'}'
|
||||||
|
].join(' '),
|
||||||
|
fragmentShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform float u_time;',
|
||||||
|
'uniform float u_minYear;',
|
||||||
|
'uniform float u_maxYear;',
|
||||||
|
'uniform sampler2D u_texture;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying float v_year;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
' vec4 textureColor = texture2D(u_texture, v_texCoord);',
|
||||||
|
' if (textureColor.a < 0.1) {',
|
||||||
|
' discard;',
|
||||||
|
' }',
|
||||||
|
|
||||||
|
// color is interpolated based on year
|
||||||
|
' float ratio = clamp((v_year - 1950.0) / (2013.0 - 1950.0), 0.0, 1.1);',
|
||||||
|
' vec3 color = mix(vec3(' + formatColor(oldColor) + '),',
|
||||||
|
' vec3(' + formatColor(newColor) + '), ratio);',
|
||||||
|
|
||||||
|
' gl_FragColor = vec4(color, 1.0) * textureColor;',
|
||||||
|
' gl_FragColor.rgb *= gl_FragColor.a;',
|
||||||
|
'}'
|
||||||
|
].join(' '),
|
||||||
|
hitVertexShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform mat4 u_projectionMatrix;',
|
||||||
|
'uniform mat4 u_offsetScaleMatrix;',
|
||||||
|
'uniform mat4 u_offsetRotateMatrix;',
|
||||||
|
'attribute vec2 a_position;',
|
||||||
|
'attribute float a_index;',
|
||||||
|
'attribute vec4 a_hitColor;',
|
||||||
|
'attribute float a_texCoordU;',
|
||||||
|
'attribute float a_texCoordV;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying vec4 v_hitColor;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
' mat4 offsetMatrix = u_offsetScaleMatrix;',
|
||||||
|
' float offsetX = a_index == 0.0 || a_index == 3.0 ? ',
|
||||||
|
' ' + formatNumber(-size / 2) + ' : ' + formatNumber(size / 2) + ';',
|
||||||
|
' float offsetY = a_index == 0.0 || a_index == 1.0 ? ',
|
||||||
|
' ' + formatNumber(-size / 2) + ' : ' + formatNumber(size / 2) + ';',
|
||||||
|
' vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);',
|
||||||
|
' gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;',
|
||||||
|
' float u = a_index == 0.0 || a_index == 3.0 ? a_texCoordU : a_texCoordU + 0.25;',
|
||||||
|
' float v = a_index == 2.0 || a_index == 3.0 ? a_texCoordV : a_texCoordV + 0.5;',
|
||||||
|
' v_texCoord = vec2(u, v);',
|
||||||
|
' v_hitColor = a_hitColor;',
|
||||||
|
'}'
|
||||||
|
].join(' '),
|
||||||
|
hitFragmentShader: [
|
||||||
|
'precision mediump float;',
|
||||||
|
|
||||||
|
'uniform sampler2D u_texture;',
|
||||||
|
'varying vec2 v_texCoord;',
|
||||||
|
'varying vec4 v_hitColor;',
|
||||||
|
|
||||||
|
'void main(void) {',
|
||||||
|
' vec4 textureColor = texture2D(u_texture, v_texCoord);',
|
||||||
|
' if (textureColor.a < 0.1) {',
|
||||||
|
' discard;',
|
||||||
|
' }',
|
||||||
|
|
||||||
|
' gl_FragColor = v_hitColor;',
|
||||||
|
'}'
|
||||||
|
].join(' ')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,17 +178,14 @@ function loadData() {
|
|||||||
client.open('GET', 'data/csv/ufo_sighting_data.csv');
|
client.open('GET', 'data/csv/ufo_sighting_data.csv');
|
||||||
client.onload = function() {
|
client.onload = function() {
|
||||||
const csv = client.responseText;
|
const csv = client.responseText;
|
||||||
let curIndex;
|
const features = [];
|
||||||
let prevIndex = 0;
|
|
||||||
let line;
|
|
||||||
while ((curIndex = csv.indexOf('\n', prevIndex)) > 0) {
|
|
||||||
line = csv.substr(prevIndex, curIndex - prevIndex).split(',');
|
|
||||||
prevIndex = curIndex + 1;
|
|
||||||
|
|
||||||
// skip header
|
let prevIndex = csv.indexOf('\n') + 1; // scan past the header line
|
||||||
if (prevIndex === 0) {
|
|
||||||
continue;
|
let curIndex;
|
||||||
}
|
while ((curIndex = csv.indexOf('\n', prevIndex)) != -1) {
|
||||||
|
const line = csv.substr(prevIndex, curIndex - prevIndex).split(',');
|
||||||
|
prevIndex = curIndex + 1;
|
||||||
|
|
||||||
const coords = fromLonLat([parseFloat(line[5]), parseFloat(line[4])]);
|
const coords = fromLonLat([parseFloat(line[5]), parseFloat(line[4])]);
|
||||||
|
|
||||||
@@ -104,11 +209,11 @@ function loadData() {
|
|||||||
|
|
||||||
loadData();
|
loadData();
|
||||||
|
|
||||||
new Map({
|
const map = new Map({
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.world-dark.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-dark.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
@@ -122,3 +227,22 @@ new Map({
|
|||||||
zoom: 2
|
zoom: 2
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const info = document.getElementById('info');
|
||||||
|
map.on('pointermove', function(evt) {
|
||||||
|
if (map.getView().getInteracting()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const pixel = evt.pixel;
|
||||||
|
info.innerText = '';
|
||||||
|
map.forEachFeatureAtPixel(pixel, function(feature) {
|
||||||
|
const datetime = feature.get('datetime');
|
||||||
|
const duration = feature.get('duration');
|
||||||
|
const shape = feature.get('shape');
|
||||||
|
info.innerText = 'On ' + datetime + ', lasted ' + duration + ' seconds and had a "' + shape + '" shape.';
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
texture.addEventListener('load', function() {
|
||||||
|
map.render();
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#map {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
@@ -37,7 +37,7 @@ const vectorLayer = new VectorLayer({
|
|||||||
|
|
||||||
const rasterLayer = new TileLayer({
|
const rasterLayer = new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.geography-class.json?secure',
|
url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json',
|
||||||
crossOrigin: ''
|
crossOrigin: ''
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
16
examples/iiif.html
Normal file
16
examples/iiif.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: IIIF Image API
|
||||||
|
shortdesc: Example of a IIIF Image API source.
|
||||||
|
docs: >
|
||||||
|
Example of a tile source for an International Image Interoperability Framework (IIIF) Image Service.
|
||||||
|
Try any Image API version 1 or 2 service.
|
||||||
|
tags: "IIIF, IIIF Image API, tile source"
|
||||||
|
---
|
||||||
|
<div id="map" class="map"></div>
|
||||||
|
<div class="controls">
|
||||||
|
<div id="iiif-notification"> </div>
|
||||||
|
Enter <code>info.json</code> URL:
|
||||||
|
<input type="text" id="imageInfoUrl" value="https://iiif.ub.uni-leipzig.de/iiif/j2k/0000/0107/0000010732/00000072.jpx/info.json">
|
||||||
|
<button id="display">Display image</button>
|
||||||
|
</div>
|
||||||
46
examples/iiif.js
Normal file
46
examples/iiif.js
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
import Map from '../src/ol/Map.js';
|
||||||
|
import View from '../src/ol/View.js';
|
||||||
|
import TileLayer from '../src/ol/layer/Tile.js';
|
||||||
|
import IIIF from '../src/ol/source/IIIF.js';
|
||||||
|
import IIIFInfo from '../src/ol/format/IIIFInfo.js';
|
||||||
|
|
||||||
|
const layer = new TileLayer(),
|
||||||
|
map = new Map({
|
||||||
|
layers: [layer],
|
||||||
|
target: 'map'
|
||||||
|
}),
|
||||||
|
notifyDiv = document.getElementById('iiif-notification'),
|
||||||
|
urlInput = document.getElementById('imageInfoUrl'),
|
||||||
|
displayButton = document.getElementById('display');
|
||||||
|
|
||||||
|
function refreshMap(imageInfoUrl) {
|
||||||
|
fetch(imageInfoUrl).then(function(response) {
|
||||||
|
response.json().then(function(imageInfo) {
|
||||||
|
const options = new IIIFInfo(imageInfo).getTileSourceOptions();
|
||||||
|
if (options === undefined || options.version === undefined) {
|
||||||
|
notifyDiv.textContent = 'Data seems to be no valid IIIF image information.';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
options.zDirection = -1;
|
||||||
|
const iiifTileSource = new IIIF(options);
|
||||||
|
layer.setSource(iiifTileSource);
|
||||||
|
map.setView(new View({
|
||||||
|
resolutions: iiifTileSource.getTileGrid().getResolutions(),
|
||||||
|
extent: iiifTileSource.getTileGrid().getExtent(),
|
||||||
|
constrainOnlyCenter: true
|
||||||
|
}));
|
||||||
|
map.getView().fit(iiifTileSource.getTileGrid().getExtent());
|
||||||
|
notifyDiv.textContent = '';
|
||||||
|
}).catch(function(body) {
|
||||||
|
notifyDiv.textContent = 'Could not read image info json. ' + body;
|
||||||
|
});
|
||||||
|
}).catch(function() {
|
||||||
|
notifyDiv.textContent = 'Could not read data from URL.';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
displayButton.addEventListener('click', function() {
|
||||||
|
refreshMap(urlInput.value);
|
||||||
|
});
|
||||||
|
|
||||||
|
refreshMap(urlInput.value);
|
||||||
@@ -11,9 +11,25 @@
|
|||||||
body {
|
body {
|
||||||
padding-top: 70px;
|
padding-top: 70px;
|
||||||
}
|
}
|
||||||
|
img.header-logo {
|
||||||
|
padding-left: 18px;
|
||||||
|
}
|
||||||
input.search-query {
|
input.search-query {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
input.search-query {
|
||||||
|
width: 110px;
|
||||||
|
}
|
||||||
|
#count {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 374px) {
|
||||||
|
input.search-query {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
.example {
|
.example {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@@ -182,9 +198,9 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header class="navbar navbar-fixed-top" role="navigation">
|
<header class="navbar navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
<div class="display-table pull-left">
|
<div class="display-table pull-left">
|
||||||
<a class="navbar-brand" href="./"><img src="./resources/logo-70x70.png"> OpenLayers Examples</a>
|
<a class="navbar-brand" href="./"><img class="header-logo" src="./resources/logo-70x70.png"> OpenLayers</a>
|
||||||
<form class="navbar-form" role="search">
|
<form class="navbar-form" role="search">
|
||||||
<input name="q" type="text" id="keywords" class="search-query" placeholder="Search" autofocus>
|
<input name="q" type="text" id="keywords" class="search-query" placeholder="Search" autofocus>
|
||||||
<span id="count"></span>
|
<span id="count"></span>
|
||||||
|
|||||||
@@ -4,16 +4,11 @@ title: Interaction Options
|
|||||||
shortdesc: Shows interaction options for custom scroll and zoom behavior.
|
shortdesc: Shows interaction options for custom scroll and zoom behavior.
|
||||||
docs: >
|
docs: >
|
||||||
This example uses a custom `ol/interaction/defaults` configuration:
|
This example uses a custom `ol/interaction/defaults` configuration:
|
||||||
|
by default, wheel/trackpad zoom and drag panning is always active, which
|
||||||
* By default, wheel/trackpad zoom and drag panning is always active, which
|
|
||||||
can be unexpected on pages with a lot of scrollable content and an embedded
|
can be unexpected on pages with a lot of scrollable content and an embedded
|
||||||
map. To perform wheel/trackpad zoom and drag-pan actions only when the map
|
map. To perform wheel/trackpad zoom and drag-pan actions only when the map
|
||||||
has the focus, set `onFocusOnly: true` as option. This requires a map div
|
has the focus, set `onFocusOnly: true` as option. This requires a map div
|
||||||
with a `tabindex` attribute set.
|
with a `tabindex` attribute set.
|
||||||
* By default, pinch-zoom and wheel/trackpad zoom interactions can leave the
|
|
||||||
map at fractional zoom levels. If instead you want to constrain
|
|
||||||
wheel/trackpad zooming to integer zoom levels, set
|
|
||||||
`constrainResolution: true`.
|
|
||||||
tags: "trackpad, mousewheel, zoom, scroll, interaction, fractional"
|
tags: "trackpad, mousewheel, zoom, scroll, interaction, fractional"
|
||||||
---
|
---
|
||||||
<div tabindex="1" id="map" class="map"></div>
|
<div tabindex="1" id="map" class="map"></div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import OSM from '../src/ol/source/OSM.js';
|
|||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
interactions: defaultInteractions({
|
interactions: defaultInteractions({
|
||||||
constrainResolution: true, onFocusOnly: true
|
onFocusOnly: true
|
||||||
}),
|
}),
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ docs: >
|
|||||||
modify the extent of the overlay layer. Use the controls above
|
modify the extent of the overlay layer. Use the controls above
|
||||||
to limit rendering based on an extent (approximate country bounds).
|
to limit rendering based on an extent (approximate country bounds).
|
||||||
tags: "extent, tilejson"
|
tags: "extent, tilejson"
|
||||||
|
cloak:
|
||||||
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
<button type="button" class="btn btn-default" id="India">India</button>
|
<button type="button" class="btn btn-default" id="India">India</button>
|
||||||
|
|||||||
@@ -15,9 +15,11 @@ const extents = {
|
|||||||
Sweden: transform([11.02737, 55.36174, 23.90338, 69.10625])
|
Sweden: transform([11.02737, 55.36174, 23.90338, 69.10625])
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
const base = new TileLayer({
|
const base = new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.world-light.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-light.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
@@ -25,7 +27,7 @@ const base = new TileLayer({
|
|||||||
const overlay = new TileLayer({
|
const overlay = new TileLayer({
|
||||||
extent: extents.India,
|
extent: extents.India,
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.world-black.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-black.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ docs: >
|
|||||||
tags: "tilejson, input, bind, group, layergroup"
|
tags: "tilejson, input, bind, group, layergroup"
|
||||||
resources:
|
resources:
|
||||||
- https://code.jquery.com/jquery-2.2.3.min.js
|
- https://code.jquery.com/jquery-2.2.3.min.js
|
||||||
|
cloak:
|
||||||
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
<div id="layertree">
|
<div id="layertree">
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import {fromLonLat} from '../src/ol/proj.js';
|
|||||||
import OSM from '../src/ol/source/OSM.js';
|
import OSM from '../src/ol/source/OSM.js';
|
||||||
import TileJSON from '../src/ol/source/TileJSON.js';
|
import TileJSON from '../src/ol/source/TileJSON.js';
|
||||||
|
|
||||||
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
@@ -13,13 +15,13 @@ const map = new Map({
|
|||||||
layers: [
|
layers: [
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.20110804-hoa-foodinsecurity-3month.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.20110804-hoa-foodinsecurity-3month.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.world-borders-light.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.world-borders-light.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import BingMaps from '../src/ol/source/BingMaps.js';
|
|||||||
const key = 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5';
|
const key = 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5';
|
||||||
|
|
||||||
const roads = new TileLayer({
|
const roads = new TileLayer({
|
||||||
source: new BingMaps({key: key, imagerySet: 'Road'})
|
source: new BingMaps({key: key, imagerySet: 'RoadOnDemand'})
|
||||||
});
|
});
|
||||||
|
|
||||||
const imagery = new TileLayer({
|
const imagery = new TileLayer({
|
||||||
|
|||||||
13
examples/layer-zoom-limits.html
Normal file
13
examples/layer-zoom-limits.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
layout: example.html
|
||||||
|
title: Layer Zoom Limits
|
||||||
|
shortdesc: Using minZoom and maxZoom to control layer visibility.
|
||||||
|
docs: >
|
||||||
|
Layers support `minZoom` and `maxZoom` options for controlling visibility based on the view's zoom level.
|
||||||
|
If min or max zoom are set, the layer will only be visible at zoom levels greater than the `minZoom` and
|
||||||
|
less than or equal to the `maxZoom`. After construction, the layer's `setMinZoom` and `setMaxZoom` can
|
||||||
|
be used to set limits. This example shows an OSM layer at zoom levels 14 and lower and a USGS layer at
|
||||||
|
zoom levels higher than 14.
|
||||||
|
tags: "minZoom, maxZoom, layer"
|
||||||
|
---
|
||||||
|
<div id="map" class="map"></div>
|
||||||
33
examples/layer-zoom-limits.js
Normal file
33
examples/layer-zoom-limits.js
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
import Map from '../src/ol/Map.js';
|
||||||
|
import View from '../src/ol/View.js';
|
||||||
|
import TileLayer from '../src/ol/layer/Tile.js';
|
||||||
|
import OSM from '../src/ol/source/OSM.js';
|
||||||
|
import XYZ from '../src/ol/source/XYZ.js';
|
||||||
|
import {transformExtent, fromLonLat} from '../src/ol/proj.js';
|
||||||
|
|
||||||
|
const mapExtent = [-112.261791, 35.983744, -112.113981, 36.132062];
|
||||||
|
|
||||||
|
const map = new Map({
|
||||||
|
target: 'map',
|
||||||
|
layers: [
|
||||||
|
new TileLayer({
|
||||||
|
maxZoom: 14, // visible at zoom levels 14 and below
|
||||||
|
source: new OSM()
|
||||||
|
}),
|
||||||
|
new TileLayer({
|
||||||
|
minZoom: 14, // visible at zoom levels above 14
|
||||||
|
source: new XYZ({
|
||||||
|
attributions: 'Tiles © USGS, rendered with ' +
|
||||||
|
'<a href="http://www.maptiler.com/">MapTiler</a>',
|
||||||
|
url: 'https://tileserver.maptiler.com/grandcanyon/{z}/{x}/{y}.png'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
],
|
||||||
|
view: new View({
|
||||||
|
center: fromLonLat([-112.18688965, 36.057944835]),
|
||||||
|
zoom: 15,
|
||||||
|
maxZoom: 18,
|
||||||
|
extent: transformExtent(mapExtent, 'EPSG:4326', 'EPSG:3857'),
|
||||||
|
constrainOnlyCenter: true
|
||||||
|
})
|
||||||
|
});
|
||||||
@@ -3,12 +3,14 @@ layout: example.html
|
|||||||
title: Mapbox-gl Layer
|
title: Mapbox-gl Layer
|
||||||
shortdesc: Example of a Mapbox-gl-js layer integration.
|
shortdesc: Example of a Mapbox-gl-js layer integration.
|
||||||
docs: >
|
docs: >
|
||||||
Show how to add a mapbox-gl-js layer in an openlayers map. **Note**: Make sure to get your own Mapbox API key when using this example. No map will be visible when the API key has expired.
|
Show how to add a mapbox-gl-js layer in an openlayers map. **Note**: Make sure to get your own API key at https://www.maptiler.com/cloud/ when using this example. No map will be visible when the API key has expired.
|
||||||
tags: "simple, mapbox, vector, tiles"
|
tags: "simple, mapbox, vector, tiles, maptiler"
|
||||||
|
experimental: true
|
||||||
resources:
|
resources:
|
||||||
- https://unpkg.com/mapbox-gl@0.51.0/dist/mapbox-gl.js
|
- https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.js
|
||||||
|
- https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.css
|
||||||
cloak:
|
cloak:
|
||||||
- key: ER67WIiPdCQvhgsUjoWK
|
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
|
||||||
value: Your Mapbox access token from http://mapbox.com/ here
|
value: Get your own API key at https://www.maptiler.com/cloud/
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -1,50 +1,21 @@
|
|||||||
import Map from '../src/ol/Map.js';
|
import Map from '../src/ol/Map.js';
|
||||||
import View from '../src/ol/View.js';
|
import View from '../src/ol/View.js';
|
||||||
import Layer from '../src/ol/layer/Layer';
|
import Layer from '../src/ol/layer/Layer.js';
|
||||||
import {assign} from '../src/ol/obj';
|
import {toLonLat, fromLonLat} from '../src/ol/proj.js';
|
||||||
import {getTransform} from '../src/ol/proj';
|
|
||||||
import SourceState from '../src/ol/source/State';
|
|
||||||
import {Stroke, Style} from '../src/ol/style.js';
|
import {Stroke, Style} from '../src/ol/style.js';
|
||||||
import VectorLayer from '../src/ol/layer/Vector.js';
|
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||||
import VectorSource from '../src/ol/source/Vector.js';
|
import VectorSource from '../src/ol/source/Vector.js';
|
||||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||||
|
|
||||||
class Mapbox extends Layer {
|
const center = [-98.8, 37.9];
|
||||||
|
const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
|
||||||
|
|
||||||
/**
|
const mbMap = new mapboxgl.Map({
|
||||||
* @param {import('./Base.js').Options} options Layer options.
|
style: 'https://api.maptiler.com/maps/bright/style.json?key=' + key,
|
||||||
*/
|
|
||||||
constructor(options) {
|
|
||||||
const baseOptions = assign({}, options);
|
|
||||||
super(baseOptions);
|
|
||||||
|
|
||||||
this.baseOptions = baseOptions;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
* @type boolean
|
|
||||||
*/
|
|
||||||
this.loaded = false;
|
|
||||||
|
|
||||||
this.initMap();
|
|
||||||
}
|
|
||||||
|
|
||||||
initMap() {
|
|
||||||
const map = this.map_;
|
|
||||||
const view = map.getView();
|
|
||||||
const transformToLatLng = getTransform(view.getProjection(), 'EPSG:4326');
|
|
||||||
const center = transformToLatLng(view.getCenter());
|
|
||||||
|
|
||||||
this.centerLastRender = view.getCenter();
|
|
||||||
this.zoomLastRender = view.getZoom();
|
|
||||||
this.centerLastRender = view.getCenter();
|
|
||||||
this.zoomLastRender = view.getZoom();
|
|
||||||
|
|
||||||
const options = assign(this.baseOptions, {
|
|
||||||
attributionControl: false,
|
attributionControl: false,
|
||||||
boxZoom: false,
|
boxZoom: false,
|
||||||
center,
|
center: center,
|
||||||
container: map.getTargetElement(),
|
container: 'map',
|
||||||
doubleClickZoom: false,
|
doubleClickZoom: false,
|
||||||
dragPan: false,
|
dragPan: false,
|
||||||
dragRotate: false,
|
dragRotate: false,
|
||||||
@@ -52,137 +23,45 @@ class Mapbox extends Layer {
|
|||||||
keyboard: false,
|
keyboard: false,
|
||||||
pitchWithRotate: false,
|
pitchWithRotate: false,
|
||||||
scrollZoom: false,
|
scrollZoom: false,
|
||||||
touchZoomRotate: false,
|
touchZoomRotate: false
|
||||||
zoom: view.getZoom() - 1
|
});
|
||||||
});
|
|
||||||
|
|
||||||
this.mbmap = new mapboxgl.Map(options);
|
const mbLayer = new Layer({
|
||||||
this.mbmap.on('load', function() {
|
render: function(frameState) {
|
||||||
this.mbmap.getCanvas().remove();
|
const canvas = mbMap.getCanvas();
|
||||||
this.loaded = true;
|
const viewState = frameState.viewState;
|
||||||
this.map_.render();
|
|
||||||
[
|
|
||||||
'mapboxgl-control-container'
|
|
||||||
].forEach(className => document.getElementsByClassName(className)[0].remove());
|
|
||||||
}.bind(this));
|
|
||||||
|
|
||||||
this.mbmap.on('render', function() {
|
const visible = mbLayer.getVisible();
|
||||||
// Reset offset
|
canvas.style.display = visible ? 'block' : 'none';
|
||||||
if (this.centerNextRender) {
|
|
||||||
this.centerLastRender = this.centerNextRender;
|
|
||||||
}
|
|
||||||
if (this.zoomNextRender) {
|
|
||||||
this.zoomLastRender = this.zoomNextRender;
|
|
||||||
}
|
|
||||||
this.updateRenderedPosition([0, 0], 1);
|
|
||||||
}.bind(this));
|
|
||||||
|
|
||||||
}
|
const opacity = mbLayer.getOpacity();
|
||||||
|
canvas.style.opacity = opacity;
|
||||||
|
|
||||||
/**
|
// adjust view parameters in mapbox
|
||||||
*
|
const rotation = viewState.rotation;
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
render(frameState) {
|
|
||||||
const map = this.map_;
|
|
||||||
const view = map.getView();
|
|
||||||
const transformToLatLng = getTransform(view.getProjection(), 'EPSG:4326');
|
|
||||||
|
|
||||||
this.centerNextRender = view.getCenter();
|
|
||||||
const lastRender = map.getPixelFromCoordinate(this.centerLastRender);
|
|
||||||
const nextRender = map.getPixelFromCoordinate(this.centerNextRender);
|
|
||||||
const centerOffset = [lastRender[0] - nextRender[0], lastRender[1] - nextRender[1]];
|
|
||||||
this.zoomNextRender = view.getZoom();
|
|
||||||
const zoomOffset = Math.pow(2, this.zoomNextRender - this.zoomLastRender);
|
|
||||||
this.updateRenderedPosition(centerOffset, zoomOffset);
|
|
||||||
|
|
||||||
const rotation = frameState.viewState.rotation;
|
|
||||||
if (rotation) {
|
if (rotation) {
|
||||||
this.mbmap.rotateTo(-rotation * 180 / Math.PI, {
|
mbMap.rotateTo(-rotation * 180 / Math.PI, {
|
||||||
animate: false
|
animate: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
mbMap.jumpTo({
|
||||||
// Re-render mbmap
|
center: toLonLat(viewState.center),
|
||||||
const center = transformToLatLng(this.centerNextRender);
|
zoom: viewState.zoom - 1,
|
||||||
const zoom = view.getZoom() - 1;
|
animate: false
|
||||||
this.mbmap.jumpTo({
|
|
||||||
center: center,
|
|
||||||
zoom: zoom
|
|
||||||
});
|
});
|
||||||
return this.mbmap.getCanvas();
|
|
||||||
|
// cancel the scheduled update & trigger synchronous redraw
|
||||||
|
// see https://github.com/mapbox/mapbox-gl-js/issues/7893#issue-408992184
|
||||||
|
// NOTE: THIS MIGHT BREAK WHEN UPDATING MAPBOX
|
||||||
|
if (mbMap._frame) {
|
||||||
|
mbMap._frame.cancel();
|
||||||
|
mbMap._frame = null;
|
||||||
}
|
}
|
||||||
|
mbMap._render();
|
||||||
|
|
||||||
updateRenderedPosition(centerOffset, zoomOffset) {
|
return canvas;
|
||||||
const style = this.mbmap.getCanvas().style;
|
|
||||||
style.left = Math.round(centerOffset[0]) + 'px';
|
|
||||||
style.top = Math.round(centerOffset[1]) + 'px';
|
|
||||||
style.transform = 'scale(' + zoomOffset + ')';
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
setVisible(visible) {
|
|
||||||
super.setVisible(visible);
|
|
||||||
|
|
||||||
const canvas = this.mbmap.getCanvas();
|
|
||||||
canvas.style.display = visible ? 'block' : 'none';
|
|
||||||
}
|
|
||||||
|
|
||||||
setOpacity(opacity) {
|
|
||||||
super.setOpacity(opacity);
|
|
||||||
const canvas = this.mbmap.getCanvas();
|
|
||||||
canvas.style.opacity = opacity;
|
|
||||||
}
|
|
||||||
|
|
||||||
setZIndex(zindex) {
|
|
||||||
super.setZIndex(zindex);
|
|
||||||
const canvas = this.mbmap.getCanvas();
|
|
||||||
canvas.style.zIndex = zindex;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
getSourceState() {
|
|
||||||
return this.loaded ? SourceState.READY : SourceState.UNDEFINED;
|
|
||||||
}
|
|
||||||
|
|
||||||
setMap(map) {
|
|
||||||
this.map_ = map;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
mapboxgl.Map.prototype._setupContainer = function _setupContainer() {
|
|
||||||
const container = this._container;
|
|
||||||
container.classList.add('mapboxgl-map');
|
|
||||||
|
|
||||||
const canvasContainer = this._canvasContainer = container.firstChild;
|
|
||||||
|
|
||||||
this._canvas = document.createElement('canvas');
|
|
||||||
canvasContainer.insertBefore(this._canvas, canvasContainer.firstChild);
|
|
||||||
this._canvas.style.position = 'absolute';
|
|
||||||
this._canvas.addEventListener('webglcontextlost', this._contextLost, false);
|
|
||||||
this._canvas.addEventListener('webglcontextrestored', this._contextRestored, false);
|
|
||||||
this._canvas.setAttribute('tabindex', '0');
|
|
||||||
this._canvas.setAttribute('aria-label', 'Map');
|
|
||||||
this._canvas.className = 'mapboxgl-canvas';
|
|
||||||
|
|
||||||
const dimensions = this._containerDimensions();
|
|
||||||
this._resizeCanvas(dimensions[0], dimensions[1]);
|
|
||||||
|
|
||||||
this._controlContainer = canvasContainer;
|
|
||||||
const controlContainer = this._controlContainer = document.createElement('div');
|
|
||||||
controlContainer.className = 'mapboxgl-control-container';
|
|
||||||
container.appendChild(controlContainer);
|
|
||||||
|
|
||||||
const positions = this._controlPositions = {};
|
|
||||||
['top-left', 'top-right', 'bottom-left', 'bottom-right'].forEach(function(positionName) {
|
|
||||||
const elem = document.createElement('div');
|
|
||||||
elem.className = 'mapboxgl-ctrl-' + positionName;
|
|
||||||
controlContainer.appendChild(elem);
|
|
||||||
positions[positionName] = elem;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const style = new Style({
|
const style = new Style({
|
||||||
stroke: new Stroke({
|
stroke: new Stroke({
|
||||||
@@ -202,17 +81,8 @@ const vectorLayer = new VectorLayer({
|
|||||||
const map = new Map({
|
const map = new Map({
|
||||||
target: 'map',
|
target: 'map',
|
||||||
view: new View({
|
view: new View({
|
||||||
center: [-10997148, 4569099],
|
center: fromLonLat(center),
|
||||||
zoom: 4
|
zoom: 4
|
||||||
})
|
}),
|
||||||
|
layers: [mbLayer, vectorLayer]
|
||||||
});
|
});
|
||||||
|
|
||||||
const key = 'ER67WIiPdCQvhgsUjoWK';
|
|
||||||
const mbLayer = new Mapbox({
|
|
||||||
map: map,
|
|
||||||
container: map.getTarget(),
|
|
||||||
style: 'https://maps.tilehosting.com/styles/bright/style.json?key=' + key
|
|
||||||
});
|
|
||||||
|
|
||||||
map.addLayer(mbLayer);
|
|
||||||
map.addLayer(vectorLayer);
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
layout: example-verbatim.html
|
layout: example-verbatim.html
|
||||||
title: Vector tiles created from a Mapbox Style object
|
title: Vector tiles created from a Mapbox Style object
|
||||||
shortdesc: Example of using ol-mapbox-style with tiles from tilehosting.com.
|
shortdesc: Example of using ol-mapbox-style with tiles from tilehosting.com.
|
||||||
tags: "vector tiles, mapbox style, ol-mapbox-style"
|
tags: "vector tiles, mapbox style, ol-mapbox-style, maptiler"
|
||||||
cloak:
|
cloak:
|
||||||
- key: lirfd6Fegsjkvs0lshxe
|
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
|
||||||
value: Your API key from http://tilehosting.com/ here
|
value: Get your own API key at https://www.maptiler.com/cloud/
|
||||||
---
|
---
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
import apply from 'ol-mapbox-style';
|
import apply from 'ol-mapbox-style';
|
||||||
|
|
||||||
apply('map', 'https://maps.tilehosting.com/styles/topo/style.json?key=ER67WIiPdCQvhgsUjoWK');
|
apply('map', 'https://api.maptiler.com/maps/topo/style.json?key=get_your_own_D6rA4zTHduk6KOKTXzGB');
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ tags: "mapbox, vector, tiles, mobile"
|
|||||||
resources:
|
resources:
|
||||||
- resources/mapbox-streets-v6-style.js
|
- resources/mapbox-streets-v6-style.js
|
||||||
cloak:
|
cloak:
|
||||||
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
value: Your Mapbox access token from http://mapbox.com/ here
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {Fill, Icon, Stroke, Style, Text} from '../src/ol/style.js';
|
|||||||
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
|
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
|
||||||
|
|
||||||
|
|
||||||
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg';
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
// Calculation of resolutions that match zoom levels 1, 3, 5, 7, 9, 11, 13, 15.
|
// Calculation of resolutions that match zoom levels 1, 3, 5, 7, 9, 11, 13, 15.
|
||||||
const resolutions = [];
|
const resolutions = [];
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ tags: "simple, mapbox, vector, tiles"
|
|||||||
resources:
|
resources:
|
||||||
- resources/mapbox-streets-v6-style.js
|
- resources/mapbox-streets-v6-style.js
|
||||||
cloak:
|
cloak:
|
||||||
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
value: Your Mapbox access token from http://mapbox.com/ here
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import VectorTileSource from '../src/ol/source/VectorTile.js';
|
|||||||
import {Fill, Icon, Stroke, Style, Text} from '../src/ol/style.js';
|
import {Fill, Icon, Stroke, Style, Text} from '../src/ol/style.js';
|
||||||
|
|
||||||
|
|
||||||
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg';
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
layers: [
|
layers: [
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import View from '../src/ol/View.js';
|
|||||||
import ImageLayer from '../src/ol/layer/Image.js';
|
import ImageLayer from '../src/ol/layer/Image.js';
|
||||||
import ImageMapGuide from '../src/ol/source/ImageMapGuide.js';
|
import ImageMapGuide from '../src/ol/source/ImageMapGuide.js';
|
||||||
|
|
||||||
const mdf = 'Library://Public/Samples/Sheboygan/Maps/Sheboygan.MapDefinition';
|
const mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition';
|
||||||
const agentUrl =
|
const agentUrl =
|
||||||
'http://www.buoyshark.com/mapguide/mapagent/mapagent.fcgi?';
|
'http://138.197.230.93:8008/mapguide/mapagent/mapagent.fcgi?';
|
||||||
const bounds = [
|
const bounds = [
|
||||||
-87.865114442365922,
|
-87.865114442365922,
|
||||||
43.665065564837931,
|
43.665065564837931,
|
||||||
@@ -24,8 +24,9 @@ const map = new Map({
|
|||||||
params: {
|
params: {
|
||||||
MAPDEFINITION: mdf,
|
MAPDEFINITION: mdf,
|
||||||
FORMAT: 'PNG',
|
FORMAT: 'PNG',
|
||||||
USERNAME: 'OpenLayers',
|
VERSION: '3.0.0',
|
||||||
PASSWORD: 'OpenLayers'
|
USERNAME: 'OLGuest',
|
||||||
|
PASSWORD: 'olguest'
|
||||||
},
|
},
|
||||||
ratio: 2
|
ratio: 2
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.tooltip {
|
.ol-tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.5);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -6,18 +6,19 @@
|
|||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.tooltip-measure {
|
.ol-tooltip-measure {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.tooltip-static {
|
.ol-tooltip-static {
|
||||||
background-color: #ffcc33;
|
background-color: #ffcc33;
|
||||||
color: black;
|
color: black;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
}
|
}
|
||||||
.tooltip-measure:before,
|
.ol-tooltip-measure:before,
|
||||||
.tooltip-static:before {
|
.ol-tooltip-static:before {
|
||||||
border-top: 6px solid rgba(0, 0, 0, 0.5);
|
border-top: 6px solid rgba(0, 0, 0, 0.5);
|
||||||
border-right: 6px solid transparent;
|
border-right: 6px solid transparent;
|
||||||
border-left: 6px solid transparent;
|
border-left: 6px solid transparent;
|
||||||
@@ -27,6 +28,6 @@
|
|||||||
margin-left: -7px;
|
margin-left: -7px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
}
|
}
|
||||||
.tooltip-static:before {
|
.ol-tooltip-static:before {
|
||||||
border-top-color: #ffcc33;
|
border-top-color: #ffcc33;
|
||||||
}
|
}
|
||||||
@@ -225,7 +225,7 @@ function addInteraction() {
|
|||||||
|
|
||||||
draw.on('drawend',
|
draw.on('drawend',
|
||||||
function() {
|
function() {
|
||||||
measureTooltipElement.className = 'tooltip tooltip-static';
|
measureTooltipElement.className = 'ol-tooltip ol-tooltip-static';
|
||||||
measureTooltip.setOffset([0, -7]);
|
measureTooltip.setOffset([0, -7]);
|
||||||
// unset sketch
|
// unset sketch
|
||||||
sketch = null;
|
sketch = null;
|
||||||
@@ -245,7 +245,7 @@ function createHelpTooltip() {
|
|||||||
helpTooltipElement.parentNode.removeChild(helpTooltipElement);
|
helpTooltipElement.parentNode.removeChild(helpTooltipElement);
|
||||||
}
|
}
|
||||||
helpTooltipElement = document.createElement('div');
|
helpTooltipElement = document.createElement('div');
|
||||||
helpTooltipElement.className = 'tooltip hidden';
|
helpTooltipElement.className = 'ol-tooltip hidden';
|
||||||
helpTooltip = new Overlay({
|
helpTooltip = new Overlay({
|
||||||
element: helpTooltipElement,
|
element: helpTooltipElement,
|
||||||
offset: [15, 0],
|
offset: [15, 0],
|
||||||
@@ -263,7 +263,7 @@ function createMeasureTooltip() {
|
|||||||
measureTooltipElement.parentNode.removeChild(measureTooltipElement);
|
measureTooltipElement.parentNode.removeChild(measureTooltipElement);
|
||||||
}
|
}
|
||||||
measureTooltipElement = document.createElement('div');
|
measureTooltipElement = document.createElement('div');
|
||||||
measureTooltipElement.className = 'tooltip tooltip-measure';
|
measureTooltipElement.className = 'ol-tooltip ol-tooltip-measure';
|
||||||
measureTooltip = new Overlay({
|
measureTooltip = new Overlay({
|
||||||
element: measureTooltipElement,
|
element: measureTooltipElement,
|
||||||
offset: [0, -15],
|
offset: [0, -15],
|
||||||
|
|||||||
@@ -7,5 +7,8 @@ docs: >
|
|||||||
<p>If you continue to zoom in, you'll see the OSM layer also disappear.</p>
|
<p>If you continue to zoom in, you'll see the OSM layer also disappear.</p>
|
||||||
<p>The rendering of the layers are here controlled using minResolution and maxResolution options.</p>
|
<p>The rendering of the layers are here controlled using minResolution and maxResolution options.</p>
|
||||||
tags: "minResolution, maxResolution, resolution"
|
tags: "minResolution, maxResolution, resolution"
|
||||||
|
cloak:
|
||||||
|
- key: pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q
|
||||||
|
value: Your Mapbox access token from https://mapbox.com/ here
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import TileLayer from '../src/ol/layer/Tile.js';
|
|||||||
import OSM from '../src/ol/source/OSM.js';
|
import OSM from '../src/ol/source/OSM.js';
|
||||||
import TileJSON from '../src/ol/source/TileJSON.js';
|
import TileJSON from '../src/ol/source/TileJSON.js';
|
||||||
|
|
||||||
|
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiY2pzbmg0Nmk5MGF5NzQzbzRnbDNoeHJrbiJ9.7_-_gL8ur7ZtEiNwRfCy7Q';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the map.
|
* Create the map.
|
||||||
@@ -17,7 +18,7 @@ const map = new Map({
|
|||||||
}),
|
}),
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new TileJSON({
|
source: new TileJSON({
|
||||||
url: 'https://api.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy.json?secure',
|
url: 'https://api.tiles.mapbox.com/v4/mapbox.natural-earth-hypso-bathy.json?secure&access_token=' + key,
|
||||||
crossOrigin: 'anonymous'
|
crossOrigin: 'anonymous'
|
||||||
}),
|
}),
|
||||||
minResolution: 2000,
|
minResolution: 2000,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ cloak:
|
|||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
||||||
<title>Mobile full screen example</title>
|
<title>Mobile full screen example</title>
|
||||||
|
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html, body, .map {
|
html, body, .map {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const map = new Map({
|
|||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new BingMaps({
|
source: new BingMaps({
|
||||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
||||||
imagerySet: 'Road'
|
imagerySet: 'RoadOnDemand'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ docs: >
|
|||||||
A simple vector tiles map with Mapzen vector tiles. This example uses the TopoJSON format's `layerName` option to determine the layer ("water", "roads", "buildings") for styling. **Note**: [`ol/format/MVT`] is an even more efficient format for vector tiles.
|
A simple vector tiles map with Mapzen vector tiles. This example uses the TopoJSON format's `layerName` option to determine the layer ("water", "roads", "buildings") for styling. **Note**: [`ol/format/MVT`] is an even more efficient format for vector tiles.
|
||||||
tags: "vector, tiles, osm, mapzen"
|
tags: "vector, tiles, osm, mapzen"
|
||||||
cloak:
|
cloak:
|
||||||
- key: vector-tiles-5eJz6JX
|
- key: uZNs91nMR-muUTP99MyBSg
|
||||||
value: Your Mapzen API key from https://mapzen.com/developers
|
value: Your Nextzen API key from https://developers.nextzen.org/
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {fromLonLat} from '../src/ol/proj.js';
|
|||||||
import VectorTileSource from '../src/ol/source/VectorTile.js';
|
import VectorTileSource from '../src/ol/source/VectorTile.js';
|
||||||
import {Fill, Stroke, Style} from '../src/ol/style.js';
|
import {Fill, Stroke, Style} from '../src/ol/style.js';
|
||||||
|
|
||||||
const key = 'vector-tiles-5eJz6JX';
|
const key = 'uZNs91nMR-muUTP99MyBSg';
|
||||||
|
|
||||||
const roadStyleCache = {};
|
const roadStyleCache = {};
|
||||||
const roadColor = {
|
const roadColor = {
|
||||||
@@ -67,7 +67,7 @@ const map = new Map({
|
|||||||
layers: ['water', 'roads', 'buildings']
|
layers: ['water', 'roads', 'buildings']
|
||||||
}),
|
}),
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
url: 'https://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.topojson?api_key=' + key
|
url: 'https://tile.nextzen.org/tilezen/vector/v1/all/{z}/{x}/{y}.topojson?api_key=' + key
|
||||||
}),
|
}),
|
||||||
style: function(feature, resolution) {
|
style: function(feature, resolution) {
|
||||||
switch (feature.get('layer')) {
|
switch (feature.get('layer')) {
|
||||||
|
|||||||
@@ -1,32 +1,36 @@
|
|||||||
.ol-custom-overviewmap,
|
.mapcontainer {
|
||||||
.ol-custom-overviewmap.ol-uncollapsible {
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.ol-custom-overviewmap,
|
||||||
|
div.ol-custom-overviewmap.ol-uncollapsible {
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-custom-overviewmap:not(.ol-collapsed) {
|
div.ol-custom-overviewmap:not(.ol-collapsed) {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-custom-overviewmap .ol-overviewmap-map {
|
div.ol-custom-overviewmap div.ol-overviewmap-map {
|
||||||
border: none;
|
border: none;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-custom-overviewmap .ol-overviewmap-box {
|
div.ol-custom-overviewmap div.ol-overviewmap-box {
|
||||||
border: 2px solid red;
|
border: 2px solid red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-custom-overviewmap:not(.ol-collapsed) button{
|
div.ol-custom-overviewmap:not(.ol-collapsed) button{
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 1px;
|
right: 1px;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-rotate {
|
div.ol-rotate {
|
||||||
top: 170px;
|
top: 170px;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,4 +10,7 @@ cloak:
|
|||||||
value: Your API key from http://www.thunderforest.com/docs/apikeys/ here
|
value: Your API key from http://www.thunderforest.com/docs/apikeys/ here
|
||||||
|
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div class="mapcontainer">
|
||||||
|
<div id="map" class="map"></div>
|
||||||
|
</div>
|
||||||
|
<div><input type="checkbox" id="rotateWithView">Rotate with view</div>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import TileLayer from '../src/ol/layer/Tile.js';
|
|||||||
import OSM from '../src/ol/source/OSM.js';
|
import OSM from '../src/ol/source/OSM.js';
|
||||||
|
|
||||||
|
|
||||||
|
const rotateWithView = document.getElementById('rotateWithView');
|
||||||
|
|
||||||
const overviewMapControl = new OverviewMap({
|
const overviewMapControl = new OverviewMap({
|
||||||
// see in overviewmap-custom.html to see the custom CSS used
|
// see in overviewmap-custom.html to see the custom CSS used
|
||||||
className: 'ol-overviewmap ol-custom-overviewmap',
|
className: 'ol-overviewmap ol-custom-overviewmap',
|
||||||
@@ -22,6 +24,10 @@ const overviewMapControl = new OverviewMap({
|
|||||||
collapsed: false
|
collapsed: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rotateWithView.addEventListener('change', function() {
|
||||||
|
overviewMapControl.setRotateWithView(this.checked);
|
||||||
|
});
|
||||||
|
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
controls: defaultControls().extend([
|
controls: defaultControls().extend([
|
||||||
overviewMapControl
|
overviewMapControl
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user