Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6839ea2 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
DDorch committed Feb 22, 2024
1 parent d966a87 commit bbd8ace
Show file tree
Hide file tree
Showing 55 changed files with 6,648 additions and 187 deletions.
5 changes: 4 additions & 1 deletion dev/CONTRIBUTING.html

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

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

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

5 changes: 4 additions & 1 deletion dev/LICENSE.html

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

182 changes: 64 additions & 118 deletions dev/articles/data_extraction_naiades.html

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions dev/articles/example_ecoulement_api.html

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions dev/articles/example_niveaux_nappes_api.html

Large diffs are not rendered by default.

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.
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;
}*/
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

0 comments on commit bbd8ace

Please sign in to comment.