forked from Viglino/ol-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1877 lines (1674 loc) · 72.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ol-ext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1" />
<link rel="icon" type="image/png" href="https://openlayers.org/assets/theme/img/logo70.png" />
<meta name="description" content="Cool extensions to use with Openlayers (ol)." />
<meta name="keywords" content="ol,extension,canvas,3D,animation,layer,selection,control,openlayers,popup" />
<link rel="stylesheet" href="examples/githubcorner.css" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/Viglino/ol-ext/master/img/ol-ext.jpg" />
<meta name="twitter:site" content="@viglino" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="ol-ext: cool ol extensions" />
<meta name="twitter:description" content="ol-ext is a set of extensions, controls, interactions, popup to use with Openlayers (ol)." />
<meta property="og:image" content="https://raw.githubusercontent.com/Viglino/ol-ext/master/img/ol-ext.jpg" />
<meta property="og:site_name" content="ol-ext" />
<meta property="og:type" content="article" />
<meta property="og:title" content="ol-ext: cool ol extensions" />
<meta property="og:description" content="ol-ext is a set of extensions, controls, interactions, popup to use with Openlayers (ol)." />
<style>
div.icss-github-corner {
position: fixed;
right: 0;
top: 0;
background-color: #fff;
display: block;
width: 5.8em;
height: 6.5em;
box-shadow: 0 5px 10px rgba(0,0,0,.5);
transform: rotate(-7deg) skewX(7deg);
background-image: linear-gradient(55deg, rgba(0,0,0,.15), rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 35%, rgba(0,0,0,0.5) 45%);
transform-origin: 0 0;
z-index:10;
}
body {
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
font-size: 16px;
margin: 0.5em;
}
input:focus {
outline-width: 0;
}
a {
color: #337ab7;
text-decoration: none;
}
.navbar {
top:0; left: 0;
right: 0;
width:100%;
position: fixed;
z-index: 1;
background-color: #1f6b75;
color: white;
height: 4em;
overflow: hidden;
}
.navbar p {
display: inline-block;
margin: 0;
}
.navbar img {
height:1.5em;
vertical-align: middle;
}
.navbar h1 {
display: inline-block;
font-size:1.5em;
margin: 0.5em;
vertical-align: middle;
}
h2 {
clear:both;
margin:1em 0 0;
}
input[type="search"] {
font-size: 1em;
padding: .3em 1em;
border-radius: 1em;
border:0;
box-shadow: inset 1px 1px 2px 1px rgba(0,0,0,.5),
1px 1px 2px 0px rgba(255,255,255,.5),
-1px -1px 2px 0px rgba(0,0,0,.5);
}
.container {
width:1170px;
max-width: 100%;
margin:auto;
}
.small, small {
font-size: 0.85em;
}
#examples {
margin-top:4em;
}
#examples > div > div {
box-sizing: border-box;
float: left;
padding: 0.5em;
width: 33.3333%;
}
@media (max-width: 1500px) {
#examples > div > div {
width: 50%;
}
}
@media (max-width: 900px) {
#examples > div > div {
width: 100%;
}
}
@media (max-width: 1000px) {
header h1 span {
display: none;
}
}
@media (max-width: 580px) {
.navbar {
height: 6.5em;
}
.navbar p {
display: block;
}
#examples {
margin-top: 7em;
}
.navbar .news {
position: absolute;
right: 2em;
top: .15em;
}
}
.example,
.desc {
background-color: #f5f5f5;
margin: 0;
overflow: auto;
padding: 10px;
height: 9em;
overflow: hidden;
}
.desc p {
max-width: 50em;
margin: .5em auto 1em;
display: block;
}
#examples > div.desc {
width:100%;
box-sizing: border-box;
}
.example {
position: relative;
}
.news,
.new:after {
position: absolute;
content: "NEW!";
background: yellow;
color: red;
right: -0.2em;
top: 0.2em;
padding: .5em;
font-family: sans-serif;
font-size: 1em;
font-weight: bold;
transform: rotate(10deg) scaleX(.7);
border-radius: 50%;
width: 2.8em;
height: 1.7em;
line-height: 1.8em;
text-align: center;
box-shadow: 0.1em 0.2em 0.5em 0.1em rgba(0,0,0,.5);
}
.news {
position: relative;
display: inline-block;
white-space: nowrap;
transform: rotate(10deg) scaleX(.5);
font-size: 1.5em;
height: 2.3em;
width: 4.5em;
line-height: 2.3em;
cursor: pointer;
right: 0;
z-index: 5;
text-align: center;
padding: 0;
}
.example:hover {
background-color: #ddd;
}
.example p.description {
font-size: 0.9em;
margin: 5px 0;
}
.example p.tag {
font-size: 0.8em;
color:#693;
margin: 0;
}
.example p.tag a {
cursor: pointer;
color: #693;
}
.example p.tag a:before {
content: ', '
}
.example p.tag a:first-child:before {
content: '';
}
.example img {
display:none;
margin:auto;
float:right;
width:180px;
}
</style>
<!-- jQuery -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".example").wrap($("<div>"));
$(".example a.mainlink").each(function() {
var href = /[^\/]*$/.exec( $(this).attr('href') ).pop();
$("<small>").text("("+href+")")
.appendTo($(this));
$("<img>").attr('src',"img/"+href.replace('html',$(this).data('img')||'jpg'))
.appendTo($(this))
.load(function(e) {
$(this).show();
})
});
// last 2 month
var d = new Date((new Date()).getTime()-2*31*24*60*60*1000);
var nb = 0;
$(".example[data-date]").each(function() {
if (new Date($(this).data('date')) > d) {
nb++;
$(this).addClass('new');
$(".tag", this).text($(".tag", this).text()+', new');
// console.log($(this).data('date'));
}
});
if (nb) {
$('<span>').addClass('news')
.text(nb+' NEWS')
.click(function(){
$('#keywords').val('new').change();
})
.appendTo($('.container'));
}
// Click on tags
function search() {
$('#keywords').val($(this).text()).change();
}
$('.tag').each(function() {
var tags = $(this).text().split(',');
var div = $(this).html('');
tags.forEach(function(t) {
$('<a>').text(t.trim())
.click(search)
.appendTo(div);
})
})
// Search
$('#keywords').on('keyup change search', function() {
var s = new RegExp ( $(this).val() , "i");
var k = 0;
$(".example").each(function() {
var text = $(this).text();
var t = s.test(text);
if (!t) {
$(this).parent().hide();
} else {
k++;
$(this).parent().show();
}
});
$("h2").each(function() {
if ($(".example:visible", $(this).next()).length) $(this).show();
else $(this).hide();
});
$("#count").text("("+k+")");
// Set new url
window.history.replaceState (null,null, document.location.origin+document.location.pathname+"?q="+$(this).val());
});
// Decode url
var search = window.location.search.replace(/^\?/,"").split("&");
for (var i=0; i<search.length; i++) if (/^q=/.test(search[i])) {
$("#keywords").val(search[i].split("=")[1]).trigger("keyup");
}
});
</script>
</head>
<body>
<div class='icss-github-corner'></div>
<a href="https://github.com/Viglino/ol-ext" class="icss-github-corner"><i></i></a>
<header role="navigation" class="navbar navbar-fixed-top">
<div class="container">
<h1><img src="http://openlayers.org/en/master/examples/resources/logo-70x70.png"> ol-ext<span>:
Extensions for OpenLayers (ol)</span>
</h1>
<p>
<input type="search" placeholder="Search" class="search-query" id="keywords" name="q">
<span id="count"></span>
</p>
</div>
</header>
<div id="examples">
<div class="desc" style="height: auto;">
<p>
Cool extensions for <a href="https://github.com/openlayers/openlayers">OpenLayers (ol)</a>.
-
For more information see the <a href="./doc/doc-pages/">online API documentation</a>.
<br/>
More example for use in:
<a href="https://github.com/darkscript/ol-ol-ext-webpack-example">
<img src="https://camo.githubusercontent.com/d18f4a7a64244f703efcb322bf298dcb4ca38856/68747470733a2f2f7765627061636b2e6a732e6f72672f6173736574732f69636f6e2d7371756172652d6269672e737667" style="height:2em; vertical-align:middle;" />webpack
</a>
<a href="https://github.com/Viglino/ol-ext-parcel-bundler">
<img src="https://parceljs.org/src/assets/og.png" style="height:2em; vertical-align:middle;" />parcel
</a>
<a href="https://github.com/Viglino/ol-ext-angular">
<img src="https://angular.io/assets/images/logos/angular/angular.svg" style="height:2em; vertical-align:middle;" />Angular
</a>
<br/>
If you like this, you may like <a href="https://viglino.github.io/ol-games/">
<img src="https://raw.githubusercontent.com/Viglino/ol-games/master/img/ol3-games.png" style="height:1.6em; vertical-align: middle;"> ol-games
</a>.
</p>
<p style="text-align: center;">
<a class="github-button" href="https://github.com/viglino/ol-ext" data-icon="octicon-star" data-show-count="true" aria-label="Star viglino/ol-ext on GitHub">Star</a>
<a class="github-button" href="https://github.com/viglino/ol-ext/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork viglino/ol-ext on GitHub">Fork</a>
<a class="github-button" href="https://github.com/viglino/ol-ext/issues" data-icon="octicon-issue-opened" data-show-count="true" aria-label="Issue viglino/ol-ext on GitHub">Issue</a>
<a class="github-button" href="https://github.com/viglino/ol-ext/subscription" data-icon="octicon-eye" data-show-count="true" aria-label="Watch viglino/ol-ext on GitHub">Watch</a>
<br/>
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet"
data-url="https://viglino.github.io/ol-ext/"
data-text="Awesome extensions for #Openlayers @jmviglino">
Tweet
</a>
<a class="github-button" href="https://github.com/viglino" data-show-count="true" aria-label="Follow @viglino on GitHub">@viglino</a>
<a class="github-button" href="https://github.com/viglino/ol-ext/archive/master.zip" data-icon="octicon-download" aria-label="Download viglino/ol-ext on GitHub">Download</a>
</p>
</div>
<h2>Styles</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.font.html">
<strong>Font style</strong><br>
</a>
<p class="description">Draw points using an iconic font (font Awesome) gives you scalable vector icons that can instantly be customized (form, size, color, drop shadow) using attributes..</p>
<p class="tag">style, vector, font, fontawesome, icon, maki</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.photo.html">
<strong>Photo style</strong><br>
</a>
<p class="description">
The ol.style.Photo is an image style to show photos or images on a map.
The photos are drawn in a box and can be anchored.
</p>
<p class="tag">style, vector, photo</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.chart.html">
<strong>Statistic charts style</strong><br>
</a>
<p class="description">
The ol.style.Chart is an image style to draw statistical graphics (bar, donut or pie charts) on a map.
</p>
<p class="tag">style, vector, statistic, chart, pie, donut, animation</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.chart+text.html">
<strong>Statistic charts style + values</strong><br>
</a>
<p class="description">
This example shows how to display values using a <i>ol.style.Chart</i>.
</p>
<p class="tag">style, vector, statistic, chart, pie, text</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.pattern.html">
<strong>Fill pattern style</strong><br>
</a>
<p class="description">
The ol.style.FillPattern is a fill style with a set of cartographic patterns to use in your maps.
</p>
<p class="tag">style, vector, fill, pattern, hatch</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.strokepattern.html">
<strong>Stroke pattern style</strong><br>
</a>
<p class="description">
The ol.style.StokePattern is a stroke style with a set of cartographic patterns to use in your maps.
</p>
<p class="tag">style, vector, stroke, pattern, hatch</p>
</div>
<div class="example" data-date="2019-02">
<a class="mainlink" href="examples/style/map.style.flowline.html">
<strong>FlowLine style</strong><br>
</a>
<p class="description">
The <i>ol.style.FlowLine</i> is a line style to draw LineString with variable colors and widths
to display flows or Sankey diagram on a map.
</p>
<p class="tag">style, vector, flow, color, sankey</p>
</div>
<div class="example" data-date="2020-10">
<a class="mainlink" href="examples/style/map.style.flowarrow.html">
<strong>Flow arrow style</strong><br>
</a>
<p class="description">
With the <i>ol.style.FlowLine</i> you can add arrows to draw Sankey maps.
</p>
<p class="tag">style, vector, flow, color, arrow, sankey</p>
</div>
<div class="example" data-date="2019-02-05">
<a class="mainlink" href="examples/style/map.style.gpxline.html">
<strong>FlowLine style</strong><br>
</a>
<p class="description">
This example displays a GPX track using a <i>ol.style.FlowLine</i> to symbolize
elevation along the line as a color.
</p>
<p class="tag">style, vector, flow, color, gpx</p>
</div>
<div class="example" data-date="2020-10-25">
<a class="mainlink" href="examples/style/map.style.profile.html">
<strong>Profile style</strong><br>
</a>
<p class="description">
<i>ol/style/Profile</i> is a style to draw line profiles on a map.
</p>
<p class="tag">style, vector, profile, 3D, gpx</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.textpath.html">
<strong>Textpath style</strong><br>
</a>
<p class="description">
The ol.vector.setTextPathStyle() is a function to draw text along a linear feature (ol.geom.lineString) on postcompose.
</p>
<p class="tag">style, vector, textpath, text, along</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.hashlines.html">
<strong>Hash lines style</strong><br>
</a>
<p class="description">
This example uses the <i>ol.geom.offsetCoords()</i> function to draw an offset line with a dash symbol.
</p>
<p class="tag">style, vector, hash, stroke, offset</p>
</div>
<div class="example">
<a class="mainlink" href="examples/style/map.style.scribblefill.html">
<strong>Scribble fill</strong><br>
</a>
<p class="description">
The <i>scribbleFill</i> function calculates a MultiPolyline to fill a Polygon
with a scribble effect that appear hand-made.
</p>
<p class="tag">style, vector, hatch, fill, scribble</p>
</div>
</div>
<h2>Animation</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/animation/map.animatedcluster.html" data-img='gif'>
<strong>Animated clusters</strong><br>
</a>
<p class="description"><i>ol.layer.AnimatedCluster</i> is a layer that animates clusters on zoom change.</p>
<p class="tag">map, layer, animation, cluster, animated</p>
</div>
<div class="example">
<a class="mainlink" href="examples/animation/map.featureanimation.html">
<strong>Feature animation</strong><br>
</a>
<p class="description"><i>ol.featureAnimation</i> provides animations to animate features on a map.</p>
<p class="tag">map, feature, animation, bounce, drop</p>
</div>
<div class="example">
<a class="mainlink" href="examples/animation/map.featureanimation.select.html">
<strong>Feature animation with select</strong><br>
</a>
<p class="description">This example shows how to use a transparent style to let the features selectable when animated.</p>
<p class="tag">map, feature, animation, bounce, drop, select</p>
</div>
<div class="example">
<a class="mainlink" href="examples/animation/map.featureanimation.path.html">
<strong>Animate features along a path</strong><br>
</a>
<p class="description">This example animates features along a path.</p>
<p class="tag">map, feature, animation, path</p>
</div>
<div class="example">
<a class="mainlink" href="examples/animation/map.pulse.html">
<strong>Pulse!</strong><br>
</a>
<p class="description">A pulse function to pulse points on a map.</p>
<p class="tag">map, animation, pulse</p>
</div>
</div>
<h2>Filter</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.crop.html">
<strong>Crop/mask filter</strong><br>
</a>
<p class="description">Filter to crop or mask a map or a layer using an area (ol.feature).</p>
<p class="tag">filter, crop, mask</p>
</div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.clip.html">
<strong>Clip filter</strong><br>
</a>
<p class="description">Filter to clip a map or a layer.</p>
<p class="tag">filter, clip</p>
</div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.colorize.html">
<strong>Colorize filter</strong><br>
</a>
<p class="description">Filter to add color effects on maps or layers (hue, color, grayscale, enhance...).</p>
<p class="tag">filter, effect, color, hue, saturation, invert, grayscale</p>
</div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.texture.html">
<strong>Texture filter</strong><br>
</a>
<p class="description">Filter to add texture effects on maps or layers.</p>
<p class="tag">filter, effect, texture</p>
</div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.composite.html">
<strong>Composite filter</strong><br>
</a>
<p class="description">This filter applies a composite operation on layer drawing.</p>
<p class="tag">filter, effect, composite, color, canvas</p>
</div>
<div class="example" data-date="2021-01-03">
<a class="mainlink" href="examples/filter/map.filter.canvasfilter.html">
<strong>Canvas filter</strong><br>
</a>
<p class="description">Apply canvas filter on layer drawing.</p>
<p class="tag">filter, effect, svg, blur, huerotate, canvas</p>
</div>
<div class="example" data-date="2021-08-01">
<a class="mainlink" href="examples/filter/map.filter.css.html">
<strong>Mix blend mode filter</strong><br>
</a>
<p class="description">Apply CSS filter on layers (mix-blend-mode).</p>
<p class="tag">filter, effect, ol6, blend</p>
</div>
<div class="example">
<a class="mainlink" href="examples/filter/map.filter.fold.html" data-img='png'>
<strong>Folding map</strong><br>
</a>
<p class="description">This filter creates a folding effect on the map.</p>
<p class="tag">filter, effect, fold, folding, map, canvas</p>
</div>
<div class="example" data-date="2021-01">
<a class="mainlink" href="examples/filter/map.filter.pencilsketch.html">
<strong>Pencil sketch filter</strong><br>
</a>
<p class="description">A filter to turn your maps into pencil sketchs.</p>
<p class="tag">filter, pencil, sketch, map, canvas</p>
</div>
<div class="example" data-date="2021-04">
<a class="mainlink" href="examples/filter/map.filter.edgedetection.html">
<strong>Edge detection filter</strong><br>
</a>
<p class="description">A set of filters to turn detect edges on map layers.</p>
<p class="tag">filter, SVG, map, canvas, Sobel, Roberts, Prewitt</p>
</div>
</div>
<h2>Controls</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/control/map.switcher.html">
<strong>Layer switcher control example</strong><br>
</a>
<p class="description">Example of a layer switcher control with visibility, opacity and ordering.</p>
<p class="tag">layer, switcher, control</p>
</div>
<div class="example" data-date="2019-01-15">
<a class="mainlink" href="examples/control/map.switcher.filter.html">
<strong>Switcher with layer filter option</strong><br>
</a>
<p class="description">Example of a layer switcher control with a filter to filter layers on names.</p>
<p class="tag">layer, switcher, control, filter</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.switcher.image.html">
<strong>LayerSwitcher image</strong><br>
</a>
<p class="description">A simple layer switcher with image buttons.</p>
<p class="tag">layerswitcher, control, preview</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.switcher.popup.html">
<strong>LayerSwitcher popup</strong><br>
</a>
<p class="description">A simple layer switcher as a menu.</p>
<p class="tag">layerswitcher, control</p>
</div>
<div class="example" data-date="2020-10-21">
<a class="mainlink" href="examples/layer/map.wmscapabilities.html">
<strong>WMS Capabilities control</strong><br>
</a>
<p class="description">A control to help adding WMS on your maps.</p>
<p class="tag">map, control, layer, WMS, capabilities, getCapabilities</p>
</div>
<div class="example" data-date="2021-08-01">
<a class="mainlink" href="examples/layer/map.wmtscapabilities.html">
<strong>WMTS Capabilities control</strong><br>
</a>
<p class="description">A control to help adding WMTS on your maps.</p>
<p class="tag">map, control, layer, WMTS, capabilities, getCapabilities</p>
</div>
<div class="example" data-date="2019-02-09">
<a class="mainlink" href="examples/control/map.control.mapzone.html">
<strong>MapZone control</strong><br>
</a>
<p class="description">A control to jump from a map zone to another.</p>
<p class="tag">map, control, zone, locate</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.overlay.menu.html">
<strong>Overlay menu</strong><br>
</a>
<p class="description">The overlay control can be used to display a menu on to of the map.</p>
<p class="tag">overlay, control, menu</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.overview.html">
<strong>Overview map</strong><br>
</a>
<p class="description">An overview map with zoom limit and custom styles. Click on the overview will center the map.</p>
<p class="tag">overview, control</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.geobookmark.html">
<strong>Geo bookmarks control</strong><br>
</a>
<p class="description"><i>ol.control.GeoBookmark</i> adds a control to handle geo bookmarks, ie. save places.</p>
<p class="tag">control, bookmark, place</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.profil.html">
<strong>Profil control</strong><br>
</a>
<p class="description"><i>ol.control.Profil</i> is a control that draw a profil of a 3D lineString (with a XYZ or XYZM layout).</p>
<p class="tag">control, profil, Z, altitude, GPX, GPS</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.permalink.html">
<strong>Permalink control</strong><br>
</a>
<p class="description">The <i>ol.control.Permalink</i> is hyperlink that will return the user to the current map view.</p>
<p class="tag">control, permalink</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.swipe.html">
<strong>Swipe control</strong><br>
</a>
<p class="description">The <i>ol.control.Swipe</i> is a control that add a split screen to compare two map overlays. </p>
<p class="tag">control, globe, overview</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.notification.html" data-img="gif">
<strong>Notification control</strong><br>
</a>
<p class="description">The <i>ol.control.Swipe</i> is a control that add a split screen to compare two map overlays. </p>
<p class="tag">control, globe, overview</p>
</div>
<div class="example">
<a class="mainlink" href="examples/control/map.control.globe.html">
<strong>Globe control</strong><br>
</a>
<p class="description">The <i>ol.control.Globe</i> add a small globe on the map to display a position marker. </p>
<p class="tag">control, swipe, overlay, split</p>
</div>
<div class="example" data-date="2019-07-22">
<a class="mainlink" href="examples/control/map.control.scale.html">
<strong>Scale control</strong><br>
</a>
<p class="description"><i>ol.control.Scale</i> displays the cuurent scale in a control on the map.</p>
<p class="tag">control, scale</p>
</div>
</div>
<h2>Control bar</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/bar/map.control.button.html">
<strong>Control button</strong><br>
</a>
<p class="description">The <i>ol.control.Button</i> is simple control button.</p>
<p class="tag">control, button, toolbar</p>
</div>
<div class="example">
<a class="mainlink" href="examples/bar/map.control.toggle.html">
<strong>Control Toggle</strong><br>
</a>
<p class="description"><i>ol.control.Toggle</i> is an <i>ol.control.Button</i> with an active/deactive state. </p>
<p class="tag">control, button, toggle, toolbar</p>
</div>
<div class="example">
<a class="mainlink" href="examples/bar/map.control.bar.html">
<strong>Control bar</strong><br>
</a>
<p class="description">The <i>ol.control.Bar</i> is a panel that contains other controls. You can compose toolbars with it.</p>
<p class="tag">control, bar, toolbar, button, panel</p>
</div>
<div class="example">
<a class="mainlink" href="examples/bar/map.control.subbar.html">
<strong>Control subbar</strong><br>
</a>
<p class="description"><i>ol.control.Bar</i> an be bested using an ol.control.Toggle to add subbar.</p>
<p class="tag">control, bar, subbar, toolbar, button, panel</p>
</div>
<div class="example">
<a class="mainlink" href="examples/bar/map.control.editionbar.html">
<strong>Edition bar</strong><br>
</a>
<p class="description">An example of <i>ol.control.Bar</i> to handle an edit toolbar.</p>
<p class="tag">control, edit, bar, toolbar, button, panel</p>
</div>
</div>
<h2>Canvas controls</h2>
<div>
<div class="example" data-date="2019-04-01">
<a class="mainlink" href="examples/canvas/map.control.print.html">
<strong>Print control</strong><br>
</a>
<p class="description">A control to print the map.</p>
<p class="tag">control, canvas, print, map, export</p>
</div>
<div class="example" data-date="2021-05">
<a class="mainlink" href="examples/canvas/map.control.printdialog.html">
<strong>Print dialog control</strong><br>
</a>
<p class="description">Add a dialog to print the map.</p>
<p class="tag">control, canvas, print, map, export, dialog</p>
</div>
<div class="example">
<a class="mainlink" href="examples/canvas/map.canvas.control.html">
<strong>Canvas control</strong><br>
</a>
<p class="description">Example of canvas controls, ie. controls that are drawn on the canvas to use with export (jpeg/png) functions.</p>
<p class="tag">control, canvas, scale line, attribution, title, export</p>
</div>
<div class="example">
<a class="mainlink" href="examples/canvas/map.control.compass.html">
<strong>Compass control.</strong><br>
</a>
<p class="description">The <i>ol.control.Compass </i> draw a compass on the map.</p>
<p class="tag">control, canvas, compass</p>
</div>
<div class="example">
<a class="mainlink" href="examples/canvas/map.control.graticule.html">
<strong>Graticule control.</strong><br>
</a>
<p class="description">The <i>ol.control.Graticule </i> draw a graticule and coordinate labels on the map.</p>
<p class="tag">control, canvas, graticule</p>
</div>
<div class="example">
<a class="mainlink" href="examples/canvas/map.control.gridreference.html">
<strong>Grid reference control.</strong><br>
</a>
<p class="description">The <i>ol.control.GridReference</i> display a grid reference on the map associated with an index map.</p>
<p class="tag">control, canvas, grid, reference, index</p>
</div>
<div class="example">
<a class="mainlink" href="examples/canvas/map.target.control.html">
<strong>Target control.</strong><br>
</a>
<p class="description">The <i>ol.control.Target </i> draw a target to materialize the center of the map.</p>
<p class="tag">control, canvas, target</p>
</div>
</div>
<h2>Interactions</h2>
<div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.transform.html">
<strong>Transform interaction</strong><br>
</a>
<p class="description">The <i>ol.interaction.Transform</i> is an interaction to transform features (scale, translate, rotate).</p>
<p class="tag">interaction, transform, scale, translate, rotate, vector</p>
</div>
<div class="example" data-date="2019-05-24">
<a class="mainlink" href="examples/interaction/map.interaction.copypaste.html">
<strong>An interaction to copy / paste features on the map</strong><br>
</a>
<p class="description"><i>ol.interaction.CopyPaste</i> is an interaction to copy, cut, paste features.</p>
<p class="tag">interaction, feature, copy, cut, paste</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.drawhole.html">
<strong>An interaction to draw holes in polygons</strong><br>
</a>
<p class="description"><i>ol.interaction.DrawHole</i> is an interaction to draw holes in poglygon features.</p>
<p class="tag">interaction, draw, hole, polygon, donut</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.split.html">
<strong>Split feature interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.Split</i> is an interaction to split feature geometry (ol.geom.LineString).</p>
<p class="tag">interaction, split, linestring</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.splitter.html">
<strong>Splitter interaction</strong><br>
</a>
<p class="description">An interaction that acts as a split feature agent while editing vector features (LineString). </p>
<p class="tag">interaction, split, linestring</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.modifyfeature.html">
<strong>Modify feature</strong><br>
</a>
<p class="description">A modify interaction that support undo/redo.</p>
<p class="tag">interaction, modify, undo</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.drawregular.html">
<strong>Draw regular interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.DrawRegular</i> is an interaction to draw regular polygon (circle/ellipse, triangle, square/rectangles, etc).</p>
<p class="tag">interaction, regular, interaction, draw, circle, triangle</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.offset.html">
<strong>Offset interaction</strong><br>
</a>
<p class="description">An interaction to offset the feature geometry.</p>
<p class="tag">interaction, vector, transform, offset</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.hover.html">
<strong>Hover interaction</strong><br>
</a>
<p class="description">An interaction to do something when hovering a feature (change cursor, show a popup, display information, etc.)</p>
<p class="tag">interaction, hover, cursor</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.snapguides.html">
<strong>Snap guide interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.SnapGuide</i> handles snapping of vector features using guides lines while modifying or drawing them.</p>
<p class="tag">interaction, sna, guide</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.interaction.clip.html">
<strong>Clip interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.Clip</i> clip layers by a circle on the map.</p>
<p class="tag">interaction, clip, circle, canvas</p>
</div>
<div class="example">
<a class="mainlink" href="examples/interaction/map.ddrop.html">
<strong>Dropfile interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.DropFile</i> is a drag and drop interaction. It fires a loadstart and loadend and errors.</p>
<p class="tag">interaction, drag, drop</p>
</div>
<div class="example" data-date="2018-12-10">
<a class="mainlink" href="examples/interaction/map.interaction.dragoverlay.html">
<strong>Drag overlays interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.DraOverlay</i> is an interaction to drag overlays on the map.</p>
<p class="tag">interaction, drag, popup, placemark, overlay</p>
</div>
</div>
<h2>Undo/redo interaction</h2>
<div>
<div class="example" data-date="2018-12">
<a class="mainlink" href="examples/interaction/map.interaction.undoredo.html">
<strong>Undo/redo interaction</strong><br>
</a>
<p class="description"><i>ol/interaction/UndoRedo</i> is an interaction to handle undo/redo on a map.</p>
<p class="tag">interaction, undo, redo</p>
</div>
</div>
<div>
<div class="example" data-date="2019-01">
<a class="mainlink" href="examples/interaction/map.interaction.undoredo2.html">
<strong>Undo/redo attributes</strong><br>
</a>
<p class="description"><i>ol/interaction/FillAttribute</i> is a cancelable interaction to modify attributes.</p>
<p class="tag">interaction, undo, redo, attributes</p>
</div>
</div>
<div>
<div class="example" data-date="2019-02-23">
<a class="mainlink" href="examples/interaction/map.interaction.undocustom.html">