Skip to content

Commit 5def70e

Browse files
committed
Update ./docs
1 parent f3b9ec4 commit 5def70e

20 files changed

+271
-313
lines changed

docs/basemaps.html

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171

7272

73+
7374
<style type = "text/css">
7475
.main-container {
7576
max-width: 940px;
@@ -91,6 +92,9 @@
9192
summary {
9293
display: list-item;
9394
}
95+
details > summary > p:only-child {
96+
display: inline;
97+
}
9498
pre code {
9599
padding: 0;
96100
}
@@ -110,25 +114,18 @@
110114
border-radius: 4px;
111115
}
112116

113-
.tabset-dropdown > .nav-tabs > li.active:before {
114-
content: "";
117+
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
118+
content: "\e259";
115119
font-family: 'Glyphicons Halflings';
116120
display: inline-block;
117121
padding: 10px;
118122
border-right: 1px solid #ddd;
119123
}
120124

121125
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
122-
content: "&#xe258;";
123-
border: none;
124-
}
125-
126-
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
127-
content: "";
126+
content: "\e258";
128127
font-family: 'Glyphicons Halflings';
129-
display: inline-block;
130-
padding: 10px;
131-
border-right: 1px solid #ddd;
128+
border: none;
132129
}
133130

134131
.tabset-dropdown > .nav-tabs > li.active {
@@ -257,7 +254,7 @@ <h3>Default (OpenStreetMap) Tiles</h3>
257254
used.</p>
258255
<pre class="r"><code>m &lt;- leaflet() %&gt;% setView(lng = -71.0589, lat = 42.3601, zoom = 12)
259256
m %&gt;% addTiles()</code></pre>
260-
<div id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:240px;" class="leaflet html-widget"></div>
257+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:240px;"></div>
261258
<script type="application/json" data-for="htmlwidget-562da05387aef08f69fb">{
262259
"x": {
263260
"options": {
@@ -321,7 +318,7 @@ <h3>Third-Party Tiles</h3>
321318
You can also use <code>names(providers)</code> to view all of the
322319
options.</p>
323320
<pre class="r"><code>m %&gt;% addProviderTiles(providers$Stamen.Toner)</code></pre>
324-
<div id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:120px;" class="leaflet html-widget"></div>
321+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:120px;"></div>
325322
<script type="application/json" data-for="htmlwidget-92aa9ec4a26e6d2eb4c3">{
326323
"x": {
327324
"options": {
@@ -358,7 +355,7 @@ <h3>Third-Party Tiles</h3>
358355
"jsHooks": []
359356
}</script>
360357
<pre class="r"><code>m %&gt;% addProviderTiles(providers$CartoDB.Positron)</code></pre>
361-
<div id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:120px;" class="leaflet html-widget"></div>
358+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:120px;"></div>
362359
<script type="application/json" data-for="htmlwidget-fb03bf98e7202586eee1">{
363360
"x": {
364361
"options": {
@@ -395,7 +392,7 @@ <h3>Third-Party Tiles</h3>
395392
"jsHooks": []
396393
}</script>
397394
<pre class="r"><code>m %&gt;% addProviderTiles(providers$Esri.NatGeoWorldMap)</code></pre>
398-
<div id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:120px;" class="leaflet html-widget"></div>
395+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:120px;"></div>
399396
<script type="application/json" data-for="htmlwidget-b182c7e3d7d2f09bcc5e">{
400397
"x": {
401398
"options": {
@@ -457,7 +454,7 @@ <h3>WMS Tiles</h3>
457454
options = WMSTileOptions(format = &quot;image/png&quot;, transparent = TRUE),
458455
attribution = &quot;Weather data © 2012 IEM Nexrad&quot;
459456
)</code></pre>
460-
<div id="htmlwidget-2e17ae06f223c72250d9" style="width:100%;height:240px;" class="leaflet html-widget"></div>
457+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2e17ae06f223c72250d9" style="width:100%;height:240px;"></div>
461458
<script type="application/json" data-for="htmlwidget-2e17ae06f223c72250d9">{
462459
"x": {
463460
"options": {
@@ -530,7 +527,7 @@ <h3>Combining Tile Layers</h3>
530527
addProviderTiles(providers$Stamen.TonerLines,
531528
options = providerTileOptions(opacity = 0.35)) %&gt;%
532529
addProviderTiles(providers$Stamen.TonerLabels)</code></pre>
533-
<div id="htmlwidget-2f386608a10ed269577b" style="width:100%;height:168px;" class="leaflet html-widget"></div>
530+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2f386608a10ed269577b" style="width:100%;height:168px;"></div>
534531
<script type="application/json" data-for="htmlwidget-2f386608a10ed269577b">{
535532
"x": {
536533
"options": {

docs/choropleths.html

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171

7272

73+
7374
<style type = "text/css">
7475
.main-container {
7576
max-width: 940px;
@@ -91,6 +92,9 @@
9192
summary {
9293
display: list-item;
9394
}
95+
details > summary > p:only-child {
96+
display: inline;
97+
}
9498
pre code {
9599
padding: 0;
96100
}
@@ -110,25 +114,18 @@
110114
border-radius: 4px;
111115
}
112116

113-
.tabset-dropdown > .nav-tabs > li.active:before {
114-
content: "";
117+
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
118+
content: "\e259";
115119
font-family: 'Glyphicons Halflings';
116120
display: inline-block;
117121
padding: 10px;
118122
border-right: 1px solid #ddd;
119123
}
120124

121125
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
122-
content: "&#xe258;";
123-
border: none;
124-
}
125-
126-
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
127-
content: "";
126+
content: "\e258";
128127
font-family: 'Glyphicons Halflings';
129-
display: inline-block;
130-
padding: 10px;
131-
border-right: 1px solid #ddd;
128+
border: none;
132129
}
133130

134131
.tabset-dropdown > .nav-tabs > li.active {
@@ -254,7 +251,7 @@ <h2>Choropleths</h2>
254251
<pre><code>## Registered S3 method overwritten by &#39;geojsonsf&#39;:
255252
## method from
256253
## print.geojson geojson</code></pre>
257-
<div id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:456px;" class="leaflet html-widget"></div>
254+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:456px;"></div>
258255
<script type="application/json" data-for="htmlwidget-562da05387aef08f69fb">{
259256
"x": {
260257
"options": {
@@ -1175,7 +1172,7 @@ <h3>Basic states map</h3>
11751172
<p>To add uniform polygons with default styling, just call
11761173
<code>addPolygons</code> with no additional arguments.</p>
11771174
<pre class="r"><code>m %&gt;% addPolygons()</code></pre>
1178-
<div id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:216px;" class="leaflet html-widget"></div>
1175+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:216px;"></div>
11791176
<script type="application/json" data-for="htmlwidget-92aa9ec4a26e6d2eb4c3">{
11801177
"x": {
11811178
"options": {
@@ -2002,7 +1999,7 @@ <h3>Adding some color</h3>
20021999
color = &quot;white&quot;,
20032000
dashArray = &quot;3&quot;,
20042001
fillOpacity = 0.7)</code></pre>
2005-
<div id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:216px;" class="leaflet html-widget"></div>
2002+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:216px;"></div>
20062003
<script type="application/json" data-for="htmlwidget-fb03bf98e7202586eee1">{
20072004
"x": {
20082005
"options": {
@@ -2823,7 +2820,7 @@ <h3>Adding interaction</h3>
28232820
dashArray = &quot;&quot;,
28242821
fillOpacity = 0.7,
28252822
bringToFront = TRUE))</code></pre>
2826-
<div id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:216px;" class="leaflet html-widget"></div>
2823+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:216px;"></div>
28272824
<script type="application/json" data-for="htmlwidget-b182c7e3d7d2f09bcc5e">{
28282825
"x": {
28292826
"options": {
@@ -3671,7 +3668,7 @@ <h3>Custom info</h3>
36713668
textsize = &quot;15px&quot;,
36723669
direction = &quot;auto&quot;))
36733670
m</code></pre>
3674-
<div id="htmlwidget-2e17ae06f223c72250d9" style="width:100%;height:216px;" class="leaflet html-widget"></div>
3671+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2e17ae06f223c72250d9" style="width:100%;height:216px;"></div>
36753672
<script type="application/json" data-for="htmlwidget-2e17ae06f223c72250d9">{
36763673
"x": {
36773674
"options": {
@@ -4547,7 +4544,7 @@ <h3>Legend</h3>
45474544
intervals.</p>
45484545
<pre class="r"><code>m %&gt;% addLegend(pal = pal, values = ~density, opacity = 0.7, title = NULL,
45494546
position = &quot;bottomright&quot;)</code></pre>
4550-
<div id="htmlwidget-2f386608a10ed269577b" style="width:100%;height:216px;" class="leaflet html-widget"></div>
4547+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-2f386608a10ed269577b" style="width:100%;height:216px;"></div>
45514548
<script type="application/json" data-for="htmlwidget-2f386608a10ed269577b">{
45524549
"x": {
45534550
"options": {

docs/colors.html

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969

7070

71+
7172
<style type = "text/css">
7273
.main-container {
7374
max-width: 940px;
@@ -89,6 +90,9 @@
8990
summary {
9091
display: list-item;
9192
}
93+
details > summary > p:only-child {
94+
display: inline;
95+
}
9296
pre code {
9397
padding: 0;
9498
}
@@ -108,25 +112,18 @@
108112
border-radius: 4px;
109113
}
110114

111-
.tabset-dropdown > .nav-tabs > li.active:before {
112-
content: "";
115+
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
116+
content: "\e259";
113117
font-family: 'Glyphicons Halflings';
114118
display: inline-block;
115119
padding: 10px;
116120
border-right: 1px solid #ddd;
117121
}
118122

119123
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
120-
content: "&#xe258;";
121-
border: none;
122-
}
123-
124-
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
125-
content: "";
124+
content: "\e258";
126125
font-family: 'Glyphicons Halflings';
127-
display: inline-block;
128-
padding: 10px;
129-
border-right: 1px solid #ddd;
126+
border: none;
130127
}
131128

132129
.tabset-dropdown > .nav-tabs > li.active {
@@ -341,7 +338,7 @@ <h4>Continuous input, continuous colors (<code>colorNumeric</code>)</h4>
341338
map %&gt;%
342339
addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1,
343340
color = ~pal(gdp_md_est))</code></pre>
344-
<div id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:216px;" class="leaflet html-widget"></div>
341+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:216px;"></div>
345342
<script type="application/json" data-for="htmlwidget-562da05387aef08f69fb">{
346343
"x": {
347344
"options": {
@@ -2490,7 +2487,7 @@ <h4>Continuous input, discrete colors (<code>colorBin</code> and
24902487
map %&gt;%
24912488
addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1,
24922489
color = ~binpal(gdp_md_est))</code></pre>
2493-
<div id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:216px;" class="leaflet html-widget"></div>
2490+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-92aa9ec4a26e6d2eb4c3" style="width:100%;height:216px;"></div>
24942491
<script type="application/json" data-for="htmlwidget-92aa9ec4a26e6d2eb4c3">{
24952492
"x": {
24962493
"options": {
@@ -4630,7 +4627,7 @@ <h4>Continuous input, discrete colors (<code>colorBin</code> and
46304627
map %&gt;%
46314628
addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1,
46324629
color = ~qpal(gdp_md_est))</code></pre>
4633-
<div id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:216px;" class="leaflet html-widget"></div>
4630+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-fb03bf98e7202586eee1" style="width:100%;height:216px;"></div>
46344631
<script type="application/json" data-for="htmlwidget-fb03bf98e7202586eee1">{
46354632
"x": {
46364633
"options": {
@@ -6783,7 +6780,7 @@ <h3>Coloring categorical data</h3>
67836780
leaflet(countries) %&gt;%
67846781
addPolygons(stroke = FALSE, smoothFactor = 0.2, fillOpacity = 1,
67856782
color = ~factpal(category))</code></pre>
6786-
<div id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:216px;" class="leaflet html-widget"></div>
6783+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-b182c7e3d7d2f09bcc5e" style="width:100%;height:216px;"></div>
67876784
<script type="application/json" data-for="htmlwidget-b182c7e3d7d2f09bcc5e">{
67886785
"x": {
67896786
"options": {

docs/extending.html

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969

7070

7171

72+
7273
<style type = "text/css">
7374
.main-container {
7475
max-width: 940px;
@@ -90,6 +91,9 @@
9091
summary {
9192
display: list-item;
9293
}
94+
details > summary > p:only-child {
95+
display: inline;
96+
}
9397
pre code {
9498
padding: 0;
9599
}
@@ -109,25 +113,18 @@
109113
border-radius: 4px;
110114
}
111115

112-
.tabset-dropdown > .nav-tabs > li.active:before {
113-
content: "";
116+
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
117+
content: "\e259";
114118
font-family: 'Glyphicons Halflings';
115119
display: inline-block;
116120
padding: 10px;
117121
border-right: 1px solid #ddd;
118122
}
119123

120124
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
121-
content: "&#xe258;";
122-
border: none;
123-
}
124-
125-
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
126-
content: "";
125+
content: "\e258";
127126
font-family: 'Glyphicons Halflings';
128-
display: inline-block;
129-
padding: 10px;
130-
border-right: 1px solid #ddd;
127+
border: none;
131128
}
132129

133130
.tabset-dropdown > .nav-tabs > li.active {
@@ -320,7 +317,7 @@ <h3>Example</h3>
320317
{type: imagerySet});
321318
this.addLayer(bing);
322319
}&quot;)</code></pre>
323-
<div id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:384px;" class="leaflet html-widget"></div>
320+
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-562da05387aef08f69fb" style="width:100%;height:384px;"></div>
324321
<script type="application/json" data-for="htmlwidget-562da05387aef08f69fb">{
325322
"x": {
326323
"options": {

0 commit comments

Comments
 (0)