Commit d8065acc authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

namechange

parent e5b0ff17
......@@ -2,18 +2,17 @@
## Description
A leaflet control for used navigation. Built with uikit.
A component used for navigation. Built with uikit.
![](image.png)
Note that a component must be extending L.Control.
## Installation
You will need node.js, npm and bower for demo
### bower
`bower install https://git.smhi.se/stw/leaflet-navigation-control.git --save`
`bower install https://git.smhi.se/stw/leaflet-navigation.git --save`
## Demo
......@@ -31,21 +30,44 @@ Open browser on http://localhost:8080/demo
## Usage example
var map = L.map('map').setView([ 58.5, 19.0 ], 5);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom : 18,
attribution : '&copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors</a>'
}).addTo(map);
var hash = new L.Hash(map);
var language = 'en';
var navLangData = {
"tMarkerstart": "Click map to place point.",
"cCoordinates": "Coordinates"
"tTitle": "Navigation",
"tLogin" : "Login",
"tLogout" : "Logout"
};
var navControl = new L.Control.Navigation({
position: 'topright',
var navControl = new N2("navigation", {
"user" : {
"name" : "Firstname Surname",
"id" : "k000000",
"url" : "/demo"
},
"navigation": {
"Link1" : "path",
"Link2" : "path",
"Link3" : "path"
},
"showSearch" : true,
"showNavigation" : true,
"showHelp" : true,
"showUser" : true,
"showLanguage" : true,
"lang" : language,
"langdata" : navLangData,
"proxy" : 'proxy',
"url" : '/demo'
});
map.addControl(navControl);
### Options
......
......@@ -14,7 +14,7 @@
<link rel="stylesheet" href="../bower_components/uikit/css/components/notify.almost-flat.min.css" />
<link rel="stylesheet" href="../bower_components/uikit/css/components/autocomplete.almost-flat.min.css" />
<link rel="stylesheet" href="../bower_components/uikit/css/components/search.almost-flat.min.css" />
<link rel="stylesheet" href="../src/n2.css" />
<link rel="stylesheet" href="../src/leaflet-navigation.css" />
<!-- endbower -->
......@@ -84,7 +84,7 @@
<script src="../bower_components/uikit/js/components/notify.min.js"></script>
<script src="../bower_components/uikit/js/components/search.min.js"></script>
<script src="../bower_components/uikit/js/components/autocomplete.min.js"></script>
<script src="../src/n2.js"></script>
<script src="../src/leaflet-navigation.js"></script>
<!-- endbower -->
<script>
......
.navigation-help-smallfont {
font-size: 14px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 400;
}
@media (min-width: 768px) {
.navigation-help-button {
position: absolute;
bottom: 0;
}
.navigation-help-txt {
min-height: 170px;
}
}
.navigation {
background-color: #f8f8f8;
border-color: #e7e7e7;
}
.navigation-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navigationbar-fixed-top, .navigationbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 999;
-webkit-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
.navigationbar {
position: relative;
min-height: 50px;
border: 1px solid transparent;
}
.navigation-links > li > div > .languageImg {
width: 16px;
position: relative;
top: -2px;
}
.navigation-links > li > span > .userImg {
position: relative;
top: -2px;
}
.navigationcontainer {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.navigationcontainer>.navigationbar-header, .navigationcontainer>.navigationbarbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
.navigationcontainer a {
background: 0 0;
text-decoration: none;
color: #777;
}
.navigationcontainer div {
background: 0 0;
text-decoration: none;
color: #777;
}
.navigationbar-header {
height: 50px;
}
.navigation-links {
padding-left: 0;
margin-bottom: 0;
list-style: none;
margin-top: 0px;
}
.navigation-links > li > a {
padding-top: 10px;
padding-left: 15px;
padding-bottom: 10px;
padding-right: 15px;
line-height: 20px;
display: block;
}
.navigation-links > li > div {
padding-top: 10px;
padding-left: 15px;
padding-bottom: 10px;
padding-right: 15px;
line-height: 20px;
display: block;
}
.navigation-links > li > a:hover {
color: #555;
background-color: #e7e7e7;
}
.navigation-links > li > div:hover {
color: #555;
background-color: #e7e7e7;
}
.dropdown-menu > li > a:hover {
color: #555;
background-color: #e7e7e7;
}
.dropdown-menu > li > div:hover {
color: #555;
background-color: #e7e7e7;
}
.navigationbar-collapse {
max-height: 340px;
display: none;
}
.navigationbar-collapse .in {
display: block;
}
.navigationbar-title {
float: left;
padding-top: 14px;
padding-left: 40px;
padding-bottom: 14px;
font-size: x-large;
line-height: 20px;
}
.navigationbar-img {
position: relative;
top: 0px;
right: 35px;
border:none;
outline:none
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid \9;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
.open > .dropdown-menu {
display: block;
}
.dropdown {
position: relative;
}
.dropdown-menu {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
position: absolute;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: 400;
line-height: 1.42857143;
color: #333;
white-space: nowrap;
}
.dropdown-menu > li > div {
display: block;
padding: 3px 20px;
clear: both;
font-weight: 400;
line-height: 1.42857143;
color: #333;
white-space: nowrap;
}
.navigationbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 8px;
margin-right: 15px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
border-color: #ddd;
}
.navigationbar-toggle .navigationbar-icon {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
background-color: #888;
margin-top: 3px;
}
@media (min-width: 600px) {
.navigationbar-header {
float: left;
}
.navigation-links > li > a {
padding-top: 15px;
padding-left: 15px;
padding-bottom: 15px;
display: inline-block;
}
.navigation-links > li > div {
padding-top: 15px;
padding-left: 15px;
padding-bottom: 15px;
display: inline-block;
}
.navigation-links > li {
display: inline;
}
.navigationbar-links {
float: left;
margin: 0;
}
.navigationbar-toggle {
display: none;
}
.navigationbar-collapse {
display: block!important;
float: right;
margin-left: 15px
}
}
This diff is collapsed.
{"version":3,"sources":["leaflet-navigation-control.js"],"names":["N2","navDivId","options","self","this","lang","replace","langdata","langData","showSearch","showHelp","showLanguage","showUser","showNavigation","userUrl","user","url","navigation","setup","tTitle","reqwest","method","type","success","prototype","title","navDiv","document","getElementById","nav","L","DomUtil","create","backLink","href","flip","large","largeNavigation","setAttribute","largeNavigationLink","textContent","largeNavigationDropdown","largeNavigationList","key","hasOwnProperty","link","largeHelp","helpModal","id","helpDialog","helpHeader","helpHeadline","helpPreTxt","helpGrid","helpGuide","helpGuideHead","helpGuideTxt","helpGuideButton","helpPrompt","helpPromptHead","helpPromptTxt","innerHTML","helpClassic","helpClassicHead","helpClassicTxt","helpClassicButton","helpInDepth","helpInDepthHead","helpInDepthTxt","helpInDepthButton","helpFooter","helpPostTxt","largeLanguage","largeLanguageLink","largeLanguageSpan","largeLanguageDropdown","largeLanguageList","largeLanguageEnglish","largeLanguageArabic","onclick","window","location","search","getSearchUrl","largeUser","largeUserLink","largeUserDropdown","largeUserList","largeUserSpan","largeUserLogin","tLogin","login","largeUserLogout","tLogout","logout","small","smallParent","smallDropdown","smallDropdownList","smallNavigationHeader","smallNavigationSpan","smallHelpHeader","smallHelpSpan","smallHelp","smallLanguageHeader","smallLanguageSpan","smallLanguageEnglish","smallLanguageArabic","smallUserSpan","smallUserLogin","smallUserLogout","name","style","display","JSON","parse","parameter","value","match","pl","decode","s","decodeURIComponent","query","substring","urlPar","exec","push","length","hasParameter","i","Navigation","playerLink","playerLinkFn","inputLink","inputLinkFn","aisLink","aisLinkFn","graphLink","graphLinkFn","simulationLink","simulationLinkFn","userLink","languageLink","generalLinkArray","doneFn","className","addNavigation","addUser","container","text","li","createElement","span","appendChild","createTextNode","position","img","src","addLink","a","showNavContent","navCollapse","test","console","log","addLinkDiv","div","addLinkFn","fn","addDropdownDiv","dropdownmenu","open","width","b","navContainer","navHeader","navButton","spanb1","spanb2","spanb3","navTitle","navImg","navLinks","tViewpreviousresults","tViewinputs","tViewais","tViewgraphs","tLoadsimulations","langLinks","languageFn"],"mappings":";;AAAA,GAAIA,IAAM,WACN,QAASA,GAAGC,EAAUC,GAClB,GAAIC,GAAOC,IACXA,MAAKC,KAAO,KACRH,EAAQG,OACRD,KAAKC,KAAOH,EAAQG,KAAKC,QAAQ,KAAM,KAEvCJ,EAAQK,WACRH,KAAKI,SAAWN,EAAQK,UAET,GAAnBH,KAAKK,WACY,GAAjBL,KAAKM,SACgB,GAArBN,KAAKO,aACY,GAAjBP,KAAKQ,SACkB,GAAvBR,KAAKS,eACDX,EAAQO,aACRL,KAAKK,WAAaP,EAAQO,YAC1BP,EAAQS,eACRP,KAAKO,aAAeT,EAAQS,cAC5BT,EAAQQ,WACRN,KAAKM,SAAWR,EAAQQ,UACxBR,EAAQU,WACRR,KAAKQ,SAAWV,EAAQU,UACxBV,EAAQW,iBACRT,KAAKS,eAAiBX,EAAQW,gBAClCT,KAAKU,QAAU,IACXZ,EAAQa,OACRX,KAAKW,KAAOb,EAAQa,KAChBX,KAAKW,KAAKC,MACVZ,KAAKU,QAAUV,KAAKW,KAAKC,MAI7Bd,EAAQe,aACRb,KAAKa,WAAaf,EAAQe,YAG1Bd,EAAKK,SACLL,EAAKe,MAAMf,EAAKK,SAASW,OAAQlB,GAGjCmB,SACIJ,IAAK,mBAAqBb,EAAKE,KAAO,QACtCgB,OAAQ,MACRC,KAAM,OACNC,QAAS,SAAUlB,GACfF,EAAKK,SAAWH,EAChBF,EAAKe,MAAMf,EAAKK,SAASW,OAAQlB,MAgQjD,MA3PAD,GAAGwB,UAAUN,MAAQ,SAAUO,EAAOxB,GAClC,GAAIE,GAAOC,IACXD,GAAKuB,OAASC,SAASC,eAAe3B,EACtC,IAAI4B,G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,GAAK,IAAML,EAAOK,GAAG,EAE1C,OAAOlH,IAGRmH","file":"leaflet-navigation-control.min.js"}
\ No newline at end of file
.navigation-help-smallfont{font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}@media (min-width:768px){.navigation-help-button{position:absolute;bottom:0}.navigation-help-txt{min-height:170px}}.navigation{background-color:#f8f8f8;border-color:#e7e7e7}.navigation-fixed-top{top:0;border-width:0 0 1px}.navigationbar-fixed-bottom,.navigationbar-fixed-top{position:fixed;right:0;left:0;z-index:999;-webkit-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.navigationbar{position:relative;min-height:50px;border:1px solid transparent}.navigation-links>li>div>.languageImg{width:16px;position:relative;top:-2px}.navigation-links>li>span>.userImg{position:relative;top:-2px}.navigationcontainer{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.navigationcontainer>.navigationbar-header,.navigationcontainer>.navigationbarbar-collapse{margin-right:-15px;margin-left:-15px}.navigationcontainer a,.navigationcontainer div{background:0 0;text-decoration:none;color:#777}.navigationbar-header{height:50px}.navigation-links{padding-left:0;margin-bottom:0;list-style:none;margin-top:0}.navigation-links>li>a,.navigation-links>li>div{padding-top:10px;padding-left:15px;padding-bottom:10px;padding-right:15px;line-height:20px;display:block}.dropdown-menu>li>a:hover,.dropdown-menu>li>div:hover,.navigation-links>li>a:hover,.navigation-links>li>div:hover{color:#555;background-color:#e7e7e7}.navigationbar-collapse{max-height:340px;display:none}.navigationbar-collapse .in{display:block}.navigationbar-title{float:left;padding-top:14px;padding-left:40px;padding-bottom:14px;font-size:x-large;line-height:20px}.navigationbar-img{position:relative;top:0;right:35px;border:none;outline:0}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.open>.dropdown-menu{display:block}.dropdown{position:relative}.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0;position:absolute;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu>li>a,.dropdown-menu>li>div{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.navigationbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px;border-color:#ddd}.navigationbar-toggle .navigationbar-icon{display:block;width:22px;height:2px;border-radius:1px;background-color:#888;margin-top:3px}@media (min-width:600px){.navigationbar-header{float:left}.navigation-links>li>a,.navigation-links>li>div{padding-top:15px;padding-left:15px;padding-bottom:15px;display:inline-block}.navigation-links>li{display:inline}.navigationbar-links{float:left;margin:0}.navigationbar-toggle{display:none}.navigationbar-collapse{display:block!important;float:right;margin-left:15px}}
\ No newline at end of file
/*! leaflet-navigation-control 2016-08-24 */
var N2=function(){function a(a,b){var c=this;this.lang="en",b.lang&&(this.lang=b.lang.replace(/#/g,"")),b.langdata&&(this.langData=b.langdata),1==this.showSearch,1==this.showHelp,1==this.showLanguage,1==this.showUser,1==this.showNavigation,b.showSearch&&(this.showSearch=b.showSearch),b.showLanguage&&(this.showLanguage=b.showLanguage),b.showHelp&&(this.showHelp=b.showHelp),b.showUser&&(this.showUser=b.showUser),b.showNavigation&&(this.showNavigation=b.showNavigation),this.userUrl="/",b.user&&(this.user=b.user,this.user.url&&(this.userUrl=this.user.url)),b.navigation&&(this.navigation=b.navigation),c.langData?c.setup(c.langData.tTitle,a):reqwest({url:"lang/navigation."+c.lang+".json",method:"get",type:"json",success:function(b){c.langData=b,c.setup(c.langData.tTitle,a)}})}return a.prototype.setup=function(a,b){var c=this;c.navDiv=document.getElementById(b);var d=L.DomUtil.create("nav","uk-navbar",c.navDiv),e=L.DomUtil.create("a","",L.DomUtil.create("li","",L.DomUtil.create("ul","uk-navbar-nav",d)));e.href="/",L.DomUtil.create("span","uk-icon-arrow-left",e);L.DomUtil.create("a","",L.DomUtil.create("li","",L.DomUtil.create("ul","uk-navbar-nav",d)));e.href="/",L.DomUtil.create("span","uk-icon-arrow-left",e);var f=L.DomUtil.create("div","uk-navbar-flip",d),g=L.DomUtil.create("ul","uk-navbar-nav uk-hidden-small",f);if(c.showNavigation&&c.navigation){var h=L.DomUtil.create("li","uk-parent",g);h.setAttribute("data-uk-dropdown","{mode:'click'}");var i=L.DomUtil.create("a","",h);i.textContent="Navigation";var j=L.DomUtil.create("div","uk-dropdown uk-dropdown-navbar uk-dropdown-bottom",h),k=L.DomUtil.create("ul","uk-nav uk-nav-navbar",j);for(var l in c.navigation)if(c.navigation.hasOwnProperty(l)){var m=L.DomUtil.create("a","",L.DomUtil.create("li","",k));m.textContent=l,m.href=c.navigation[l]}}if(c.showHelp){var n=L.DomUtil.create("a","",L.DomUtil.create("li","",g));n.textContent="Help",n.href="#help",n.setAttribute("data-uk-modal","{target:'#help'}");var o=L.DomUtil.create("div","uk-modal",c.navDiv);o.id="help";var p=L.DomUtil.create("div","uk-modal-dialog uk-modal-dialog-large",o),q=(L.DomUtil.create("a","uk-modal-close uk-close",p),L.DomUtil.create("div","uk-modal-header",p)),r=L.DomUtil.create("h2","",q);r.textContent="Help & Support";var s=L.DomUtil.create("p","navigation-help-smallfont",p);s.textContent="To provide the best experience possible, we provide several reasources to assist you";var t=L.DomUtil.create("div","uk-grid uk-grid-match",p);t.setAttribute("data-uk-grid-match","{target:'.uk-panel'}");var u=L.DomUtil.create("div","uk-panel uk-panel-header uk-margin-bottom",L.DomUtil.create("div","uk-width-medium-1-4",t)),v=L.DomUtil.create("h3","uk-panel-title",u);v.textContent="Interactive Guides";var w=L.DomUtil.create("p","navigation-help-smallfont navigation-help-txt",u);w.textContent="An interactive guide shows the basics on how to fill out a feature or performing a task. Start the interactive guide quickly learn how Seatrack Web works. ";var x=L.DomUtil.create("button","uk-button navigation-help-button",u);x.textContent="Start Interactive Guide";var y=L.DomUtil.create("div","uk-panel uk-panel-header uk-margin-bottom",L.DomUtil.create("div","uk-width-medium-1-4",t)),z=L.DomUtil.create("h3","uk-panel-title",y);z.textContent="Prompts ";var A=(L.DomUtil.create("span","uk-icon-info-circle",z),L.DomUtil.create("p","navigation-help-smallfont navigation-help-txt",y));A.innerHTML="Anywhere you see a <span class='uk-icon-info-circle'></span> in the application you can click it to see a short explanation of the option or feature it refers to. These are great for a quick reminder of how a feature works.";var B=L.DomUtil.create("div","uk-panel uk-panel-header uk-margin-bottom",L.DomUtil.create("div","uk-width-medium-1-4",t)),C=L.DomUtil.create("h3","uk-panel-title",B);C.textContent="Classic documentation";var D=L.DomUtil.create("p","navigation-help-smallfont navigation-help-txt",B);D.textContent="The classic documentation is the equivalent to a User Manual. This document describes parts of Seatrack Web in depth and is printable or accessable on the web. ";var E=L.DomUtil.create("button","uk-button navigation-help-button",B);E.textContent="Open documentation";var F=L.DomUtil.create("div","uk-panel uk-panel-header uk-margin-bottom",L.DomUtil.create("div","uk-width-medium-1-4",t)),G=L.DomUtil.create("h3","uk-panel-title",F);G.textContent="In Depth";var H=L.DomUtil.create("p","navigation-help-smallfont navigation-help-txt",F);H.textContent="When the need for deeper understanding arises, look into our in depth sections for behind the scenes explanations.";var I=L.DomUtil.create("button","uk-button navigation-help-button",F);I.textContent="Open documentation";var J=L.DomUtil.create("div","uk-modal-footer",p),K=L.DomUtil.create("p","navigation-help-smallfont",J);K.innerHTML='We continually strive to improve the experiences of our products, please feel welcome to send any feed-back to <a href="mailto:seatrackweb@smhi.se"><span class="uk-icon-envelope"></span> seatrackweb@smhi.se</a>'}if(c.showLanguage){var M=L.DomUtil.create("li","uk-parent",g);M.setAttribute("data-uk-dropdown","{mode:'click'}");var N=L.DomUtil.create("a","",M),O=L.DomUtil.create("span","uk-icon-language",N);O.textContent=" Language";var P=L.DomUtil.create("div","uk-dropdown uk-dropdown-navbar uk-dropdown-bottom",M),Q=L.DomUtil.create("ul","uk-nav uk-nav-navbar",P),R=L.DomUtil.create("a","",L.DomUtil.create("li","",Q));R.textContent="English";var S=L.DomUtil.create("a","",L.DomUtil.create("li","",Q));S.textContent="العربية",R.onclick=function(){window.location.search=c.getSearchUrl("language","en")},S.onclick=function(){window.location.search=c.getSearchUrl("language","ar")}}if(c.user&&c.showUser){var T=L.DomUtil.create("li","uk-parent",g);T.setAttribute("data-uk-dropdown","{mode:'click'}");var U=L.DomUtil.create("a","",T),V=(L.DomUtil.create("span","uk-icon-user",U),L.DomUtil.create("div","uk-dropdown uk-dropdown-navbar uk-dropdown-bottom",T)),W=L.DomUtil.create("ul","uk-nav uk-nav-navbar",V);c.largeUserSpan=L.DomUtil.create("span","",L.DomUtil.create("li","uk-nav-header",W)),c.largeUserLogin=L.DomUtil.create("a","",L.DomUtil.create("li","",W)),c.largeUserLogin.textContent=c.langData.tLogin,c.largeUserLogin.onclick=function(){c.login()},c.largeUserLogout=L.DomUtil.create("a","",L.DomUtil.create("li","",W)),c.largeUserLogout.textContent=c.langData.tLogout,c.largeUserLogout.onclick=function(){c.logout()}}var X=L.DomUtil.create("ul","uk-navbar-nav uk-visible-small",f),Y=L.DomUtil.create("li","uk-parent",X);Y.setAttribute("data-uk-dropdown","{mode:'click'}");var Z=(L.DomUtil.create("a","uk-navbar-toggle",Y),L.DomUtil.create("div","uk-dropdown uk-dropdown-navbar uk-dropdown-bottom",Y)),$=L.DomUtil.create("ul","uk-nav uk-nav-navbar",Z);if(c.showNavigation&&c.navigation){var _=L.DomUtil.create("li","uk-nav-header",$),aa=L.DomUtil.create("span","",_);aa.textContent="Navigation";for(var l in c.navigation)if(c.navigation.hasOwnProperty(l)){var m=L.DomUtil.create("a","",L.DomUtil.create("li","",$));m.textContent=l,m.href=c.navigation[l]}}if(c.showHelp){var ba=L.DomUtil.create("li","uk-nav-header",$),ca=L.DomUtil.create("span","",ba);ca.textContent="Help";var da=L.DomUtil.create("a","",L.DomUtil.create("li","",$));da.textContent="Help",da.href="#help",da.setAttribute("data-uk-modal","{target:'#help'}")}if(c.showLanguage){var ea=L.DomUtil.create("li","uk-nav-header",$),fa=L.DomUtil.create("span","uk-icon-language",ea);fa.textContent=" Language";var ga=L.DomUtil.create("a","",L.DomUtil.create("li","",$));ga.textContent="English";var ha=L.DomUtil.create("a","",L.DomUtil.create("li","",$));ha.textContent="العربية",ga.onclick=function(){window.location.search=c.getSearchUrl("language","en")},ha.onclick=function(){window.location.search=c.getSearchUrl("language","ar")}}if(c.user&&c.showUser){L.DomUtil.create("li","uk-nav-header",$);c.smallUserSpan=L.DomUtil.create("span","uk-icon-user",L.DomUtil.create("li","uk-nav-header",$)),c.smallUserLogin=L.DomUtil.create("a","",L.DomUtil.create("li","",$)),c.smallUserLogin.textContent=c.langData.tLogin,c.smallUserLogin.onclick=function(){c.login()},c.smallUserLogout=L.DomUtil.create("a","",L.DomUtil.create("li","",$)),c.smallUserLogout.textContent=c.langData.tLogout,c.smallUserLogout.onclick=function(){c.logout()},c.login()}},a.prototype.login=function(){var a=this;a.user&&a.user.id?(a.smallUserSpan.textContent=" "+a.user.name+" ("+a.user.id+")",a.smallUserLogin.style.display="none",a.smallUserLogout.style.display="block",a.largeUserSpan.textContent=" "+a.user.name+" ("+a.user.id+")",a.largeUserLogin.style.display="none",a.largeUserLogout.style.display="block"):reqwest({url:a.userUrl+"/login",method:"get",type:"json",success:function(b){a.user=JSON.parse(b),a.smallUserSpan.textContent=" "+a.user.name+" ("+a.user.id+")",a.smallUserLogin.style.display="none",a.smallUserLogout.style.display="block",a.largeUserSpan.textContent=" "+a.user.name+" ("+a.user.id+")",a.largeUserLogin.style.display="none",a.largeUserLogout.style.display="block"}})},a.prototype.logout=function(){var a=this;reqwest({url:a.userUrl+"/logout",method:"get",success:function(b){a.user=null,a.smallUserSpan.textContent="",a.smallUserLogin.style.display="block",a.smallUserLogout.style.display="none",a.largeUserSpan.textContent="",a.largeUserLogin.style.display="block",a.largeUserLogout.style.display="none"}})},a.prototype.getSearchUrl=function(a,b){for(var c,d=/\+/g,e=/([^&=]+)=?([^&]*)/g,f=function(a){return decodeURIComponent(a.replace(d," "))},g=window.location.search.substring(1),h=[];c=e.exec(g);)h.push(),h[h.length]=[f(c[1]),f(c[2])];if(0==h.length)return"?"+a+"="+b;for(var i=!1,j=0;j<h.length;j++)h[j][0]==a&&(h[j][1]=b,i=!0);i||(h.push(),h[h.length]=[a,b]);for(var k="?",j=0;j<h.length;j++)j>0&&(k+="&"),k+=h[j][0]+"="+h[j][1];return k},a}(),Navigation=function(){function a(a,b){b.playerLink&&(this.playerLink=b.playerLink),b.playerLinkFn&&(this.playerLinkFn=b.playerLinkFn),b.inputLink&&(this.inputLink=b.inputLink),b.inputLinkFn&&(this.inputLinkFn=b.inputLinkFn),b.aisLink&&(this.aisLink=b.aisLink),b.aisLinkFn&&(this.aisLinkFn=b.aisLinkFn),b.graphLink&&(this.graphLink=b.graphLink),b.graphLinkFn&&(this.graphLinkFn=b.graphLinkFn),b.simulationLink&&(this.simulationLink=b.simulationLink),b.simulationLinkFn&&(this.simulationLinkFn=b.simulationLinkFn),b.userLink&&(this.userLink=b.userLink),b.languageLink&&(this.languageLink=b.languageLink),b.generalLinkArray&&(this.generalLinkArray=b.generalLinkArray),this.lang="en",b.lang&&(this.lang=b.lang.replace(/#/g,"")),b.langdata&&(this.langData=b.langdata),b.doneFn&&(this.doneFn=b.doneFn);var c=this;c.langData?c.setup(c.langData.tTitle,a):reqwest({url:"lang/navigation."+c.lang+".json",method:"get",type:"json",success:function(b){c.langData=b,c.setup(title,a)}})}return a.prototype.setup=function(a,b){var c=this;c.navDiv=document.getElementById(b),c.navDiv.className="navigationbar navigationbar-fixed-top navigation",c.addNavigation(a),c.doneFn&&c.doneFn()},a.prototype.addUser=function(a,b,c){var d=document.createElement("li"),e=document.createElement("span");e.id=c,e.appendChild(document.createTextNode(b)),e.style.position="relative";var f=document.createElement("img");f.src="images/user.png",f.className="userImg",e.appendChild(f),d.appendChild(e),a.appendChild(d)},a.prototype.addLink=function(a,b,c,d){var e=this,f=document.createElement("li"),g=document.createElement("a");g.href=d,g.id=c,g.onclick=function(){e.showNavContent=!1,e.navCollapse.className="navigationbar-collapse",e.navCollapse.style.display="none"},g.appendChild(document.createTextNode(b)),f.appendChild(g),a.appendChild(f)},a.prototype.test=function(){console.log("hej")},a.prototype.addLinkDiv=function(a,b,c,d){var e=this,f=document.createElement("li"),g=document.createElement("div");g.id=c,g.onclick=function(){e.showNavContent=!1,e.navCollapse.className="navigationbar-collapse",e.navCollapse.style.display="none"},g.appendChild(document.createTextNode(b)),f.appendChild(g),a.appendChild(f)},a.prototype.addLinkFn=function(a,b,c,d){var e=this,f=document.createElement("li"),g=document.createElement("div");g.id=c,g.onclick=function(){e.showNavContent=!1,e.navCollapse.className="navigationbar-collapse",e.navCollapse.style.display="none",d(c)},g.appendChild(document.createTextNode(b)),f.appendChild(g),a.appendChild(f)},a.prototype.addDropdownDiv=function(a,b,c){var d=document.createElement("li");d.className="dropdown";var e=document.createElement("div"),f=!1;e.onclick=function(){f=!f,f?d.className="dropdown open":d.className="dropdown"};var g=document.createElement("img");g.src="images/language.png",g.width=16,g.className="navigationbar-languageImg",e.appendChild(g),e.appendChild(document.createTextNode(" "+b+" "));var h=document.createElement("b");h.className="caret",e.appendChild(h),d.appendChild(e),d.appendChild(c),a.appendChild(d)},a.prototype.addNavigation=function(a){var b=this,c=document.createElement("div");c.className="navigationcontainer",b.navDiv.appendChild(c);var d=document.createElement("div");d.className="navigationbar-header",c.appendChild(d);var e=document.createElement("button");e.className="navigationbar-toggle",d.appendChild(e);var f=document.createElement("span");f.className="navigationbar-icon";var g=document.createElement("span");g.className="navigationbar-icon";var h=document.createElement("span");h.className="navigationbar-icon",e.appendChild(f),e.appendChild(g),e.appendChild(h);var i=document.createElement("a");i.className="navigationbar-title",i.href="/";var j=document.createElement("img");j.id="back",j.className="navigationbar-img",j.src="images/24back.png",i.appendChild(j),i.appendChild(document.createTextNode(a)),d.appendChild(i),b.navCollapse=document.createElement("div"),b.navCollapse.className="navigationbar-collapse";var k=document.createElement("ul");if(k.className="navigation-links",b.generalLinkArray)for(var l=0;l<b.generalLinkArray.length;l++)b.addLink(k,b.generalLinkArray[l].name,"",b.generalLinkArray[l].href);if(b.playerLink&&b.addLink(k,b.langData.tViewpreviousresults,"playerButton",b.playerLink),b.playerLinkFn&&b.addLinkFn(k,b.langData.tViewpreviousresults,"playerButton",b.playerLinkFn),b.inputLink&&b.addLink(k,b.langData.tViewinputs,"inputButton",b.inputLink),b.inputLinkFn&&b.addLinkFn(k,b.langData.tViewinputs,"inputButton",b.inputLinkFn),b.aisLink&&b.addLink(k,b.langData.tViewais,"aisButton",b.aisLink),b.aisLinkFn&&b.addLinkFn(k,b.langData.tViewais,"aisButton",b.aisLinkFn),b.graphLink&&b.addLink(k,b.langData.tViewgraphs,"graphButton",b.graphLink),b.graphLinkFn&&b.addLinkFn(k,b.langData.tViewgraphs,"graphButton",b.graphLinkFn),b.simulationLink&&b.addLinkDiv(k,b.langData.tLoadsimulations,"loadSimulationButton",b.simulationLink),b.simulationLinkFn&&b.addLinkFn(k,b.langData.tLoadsimulations,"loadSimulationButton",b.simulationLinkFn),b.languageLink){var m=document.createElement("ul");m.className="dropdown-menu";var n=function(a){window.location.search=b.getSearchUrl("language",a.substring(4))};b.addLinkFn(m,"English","langen",n),b.addLinkFn(m,"العربية","langar",n),b.addDropdownDiv(k,"Language",m)}b.userLink&&(b.addUser(k,"","userId"),b.addLink(k,b.langData.tLogin,"login","#"),b.addLink(k,b.langData.tLogout,"logout","#")),b.navCollapse.appendChild(k),c.appendChild(b.navCollapse),b.showNavContent=!1,e.onclick=function(){b.showNavContent=!b.showNavContent,b.showNavContent?(b.navCollapse.className="navigationbar-collapse navigation in",b.navCollapse.style.display="block"):(b.navCollapse.className="navigationbar-collapse",b.navCollapse.style.display="none")}},a.prototype.getSearchUrl=function(a,b){for(var c,d=/\+/g,e=/([^&=]+)=?([^&]*)/g,f=function(a){return decodeURIComponent(a.replace(d," "))},g=window.location.search.substring(1),h=[];c=e.exec(g);)h.push(),h[h.length]=[f(c[1]),f(c[2])];if(0==h.length)return"?"+a+"="+b;for(var i=!1,j=0;j<h.length;j++)h[j][0]==a&&(h[j][1]=b,i=!0);i||(h.push(),h[h.length]=[a,b]);for(var k="?",j=0;j<h.length;j++)j>0&&(k+="&"),k+=h[j][0]+"="+h[j][1];return k},a}();
//# sourceMappingURL=leaflet-navigation-control.map
\ No newline at end of file
image.png

340 KB

{
"name": "leaflet-navigation-control",
"name": "leaflet-navigation",
"description": "Used for demo folder and creating dist folder",
"version": "0.0.1",
"private": true,
......
.navigation {
background-color: #f8f8f8;
border-color: #e7e7e7;
}
.navigation-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navigationbar-fixed-top, .navigationbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 999;
-webkit-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
.navigationbar {
position: relative;
min-height: 50px;
border: 1px solid transparent;
}
.navigation-links > li > div > .languageImg {
width: 16px;
position: relative;
top: -2px;
}
.navigation-links > li > span > .userImg {
position: relative;
top: -2px;
}
.navigationcontainer {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.navigationcontainer>.navigationbar-header, .navigationcontainer>.navigationbarbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
.navigationcontainer a {
background: 0 0;
text-decoration: none;
color: #777;
}
.navigationcontainer div {
background: 0 0;
text-decoration: none;
color: #777;
}
.navigationbar-header {
height: 50px;
}
.navigation-links {
padding-left: 0;
margin-bottom: 0;
list-style: none;
margin-top: 0px;
}
.navigation-links > li > a {
padding-top: 10px;
padding-left: 15px;
padding-bottom: 10px;
padding-right: 15px;
line-height: 20px;
display: block;
}
.navigation-links > li > div {
padding-top: 10px;
padding-left: 15px;
padding-bottom: 10px;
padding-right: 15px;
line-height: 20px;
display: block;
}
.navigation-links > li > a:hover {
color: #555;
background-color: #e7e7e7;
}
.navigation-links > li > div:hover {
color: #555;
background-color: #e7e7e7;
}
.dropdown-menu > li > a:hover {
color: #555;
background-color: #e7e7e7;
}
.dropdown-menu > li > div:hover {
color: #555;