Skip to content

Commit f9d6d27

Browse files
committed
update docs
1 parent 6343d24 commit f9d6d27

File tree

354 files changed

+163622
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+163622
-18
lines changed

.Rbuildignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
^inst/htmlwidgets/lib/leaflet/.bower.json
44
^.travis.yml
55
^basic_small.png
6-
76
^docs$

R/viewRGB.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ if ( !isGeneric('viewRGB') ) {
3333
#' Tim Appelhans
3434
#'
3535
#' @examples
36-
#' ### raster data ###
36+
#' \dontrun{
3737
#' library(raster)
3838
#'
3939
#' viewRGB(poppendorf, 4, 3, 2) # true-color
4040
#' viewRGB(poppendorf, 5, 4, 3) # false-color
41+
#' }
4142
#'
4243
#'
4344
#' @export

docs/articles/articles/mapview_01-basics.html

+202
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (C) 2014 Daniel Montague
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/articles/articles/mapview_01-basics_files/HomeButton-0.0.1/easy-button-src.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.leaflet-bar button/*,
2+
.leaflet-bar button:hover*/ {
3+
background-color: rgba(255,255,255, 0.95) /*#fff*/;
4+
border: none;
5+
width: 100%;
6+
height: 20px;
7+
line-height: 20px;
8+
font-size: 85%;
9+
/*display: block;*/
10+
text-align: center;
11+
text-decoration: none;
12+
color: black;
13+
cursor: pointer;
14+
overflow-x: visible;
15+
overflow-y: hidden;
16+
opacity: 0.25;
17+
filter: alpha(opacity = 25);
18+
background-position: 50% 50%;
19+
background-repeat: no-repeat;
20+
display: inline-block;
21+
}
22+
23+
.leaflet-bar button:hover {
24+
background-color: #00ffff; /* #909090 */;
25+
text-decoration: underline;
26+
opacity: 0.9;
27+
filter: alpha(opacity=90);
28+
}
29+
30+
/* uncomment this to get rid of button borders, this also removes border from zoom buttons
31+
.leaflet-touch .leaflet-bar {
32+
border: none;
33+
}
34+
35+
/*.leaflet-bar button:first-of-type {
36+
border-top-left-radius: 3px;
37+
border-top-right-radius: 3px;
38+
}
39+
40+
.leaflet-bar button:last-of-type {
41+
border-bottom-left-radius: 3px;
42+
border-bottom-right-radius: 3px;
43+
border-bottom: none;
44+
}
45+
46+
.leaflet-bar.disabled,
47+
.leaflet-bar button.disabled {
48+
cursor: default;
49+
pointer-events: none;
50+
opacity: .4;
51+
}
52+
53+
.easy-button-button .button-state{
54+
display: block;
55+
width: 100%;
56+
height: 100%;
57+
position: relative;
58+
}
59+
60+
61+
/*.leaflet-touch .leaflet-bar button {
62+
width: 100%;
63+
height: 20px;
64+
line-height: 18px;
65+
overflow-y: hidden;
66+
opacity: .5;
67+
filter: alpha(opacity=50);
68+
white-space: nowrap;
69+
}*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
LeafletWidget.methods.addHomeButton = function (xmin, ymin, xmax, ymax,
2+
label, icon, position) {
3+
4+
if (this.easyButton) {
5+
this.easyButton.removeFrom(this);
6+
}
7+
8+
var bx = [[ymin, xmin], [ymax, xmax]];
9+
10+
var easyButton = new L.easyButton({
11+
position: position,
12+
states: [{
13+
stateName: label, // name the state
14+
icon: icon, // and define its properties
15+
title: label, // like its title
16+
onClick: function(btn, map){
17+
map.fitBounds(bx);
18+
btn.state(label);
19+
}
20+
}]
21+
});
22+
23+
easyButton.addTo(this);
24+
25+
this.currentEasyButton = easyButton;
26+
27+
};
28+
29+
30+
LeafletWidget.methods.removeHomeButton = function () {
31+
if (this.currentEasyButton) {
32+
this.currentEasyButton.removeFrom(this);
33+
this.currentEasyButton = null;
34+
}
35+
};

docs/articles/articles/mapview_01-basics_files/Proj4Leaflet-0.7.2/proj4-compressed.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)