Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgdown #377

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ reference:
Functions that help get access data. (all U.S. context)
- contents:
- '`download_nhdplushr`'
- '`get_3dhp`'
- '`get_nhdplus`'
- '`get_nhdplushr`'
- '`get_hr_data`'
Expand Down Expand Up @@ -79,6 +80,7 @@ reference:
desc: >
Functions that make the package easier to work with.
- contents:
- '`nhdplusTools_cache_settings`'
- '`st_compatibalize`'
- '`rename_geometry`'
- '`align_nhdplus_names`'
Expand Down
5 changes: 4 additions & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion docs/DISCLAIMER.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

206 changes: 206 additions & 0 deletions docs/articles/get_3dhp_data.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/articles/get_3dhp_data_files/HomeButton-0.0.1/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (C) 2014 Daniel Montague

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions docs/articles/get_3dhp_data_files/HomeButton-0.0.1/home-button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.leaflet-bar button/*,
.leaflet-bar button:hover*/ {
background-color: rgba(255,255,255, 0.95) /*#fff*/;
border: none;
width: 100%;
height: 20px;
line-height: 15px;
font-size: 85%;
/*display: block;*/
text-align: center;
text-decoration: none;
color: black;
cursor: pointer;
overflow-x: visible;
overflow-y: hidden;
opacity: 0.25;
filter: alpha(opacity = 25);
background-position: 50% 50%;
background-repeat: no-repeat;
display: inline-block;
}

.leaflet-bar button:hover {
background-color: #00ffff; /* #909090 */;
text-decoration: underline;
opacity: 0.9;
filter: alpha(opacity=90);
}

/* uncomment this to get rid of button borders, this also removes border from zoom buttons
.leaflet-touch .leaflet-bar {
border: none;
}

/*.leaflet-bar button:first-of-type {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}

.leaflet-bar button:last-of-type {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom: none;
}

.leaflet-bar.disabled,
.leaflet-bar button.disabled {
cursor: default;
pointer-events: none;
opacity: .4;
}

.easy-button-button .button-state{
display: block;
width: 100%;
height: 100%;
position: relative;
}


/*.leaflet-touch .leaflet-bar button {
width: 100%;
height: 20px;
line-height: 18px;
overflow-y: hidden;
opacity: .5;
filter: alpha(opacity=50);
white-space: nowrap;
}*/
40 changes: 40 additions & 0 deletions docs/articles/get_3dhp_data_files/HomeButton-0.0.1/home-button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
LeafletWidget.methods.addHomeButton = function (xmin, ymin, xmax, ymax, useext,
group, label, icon, position) {

if (this.easyButton) {
this.easyButton.removeFrom(this);
}

var bx = [];
if (useext) {
bx = [[ymin, xmin], [ymax, xmax]];
} else {
bx = this.layerManager._groupContainers[group].getBounds();
}

var easyButton = new L.easyButton({
position: position,
states: [{
stateName: label, // name the state
icon: icon, // and define its properties
title: label, // like its title
onClick: function(btn, map){
map.fitBounds(bx, {maxZoom: 18});
btn.state(label);
}
}]
});

easyButton.addTo(this);

this.currentEasyButton = easyButton;

};


LeafletWidget.methods.removeHomeButton = function () {
if (this.currentEasyButton) {
this.currentEasyButton.removeFrom(this);
this.currentEasyButton = null;
}
};
Loading
Loading