Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaflet-oilspill-control
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
leaflet-oilspill-control
Commits
b2a844f6
Commit
b2a844f6
authored
Aug 28, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guide fixes
parent
e44d079c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
3 deletions
+62
-3
demo/server.js
demo/server.js
+2
-1
dist/leaflet-oilspill-control.js
dist/leaflet-oilspill-control.js
+20
-0
src/leaflet-oilspill-control.js
src/leaflet-oilspill-control.js
+20
-0
src/leaflet-oilspill-control.js.map
src/leaflet-oilspill-control.js.map
+1
-1
src/leaflet-oilspill-control.ts
src/leaflet-oilspill-control.ts
+19
-1
No files found.
demo/server.js
View file @
b2a844f6
...
...
@@ -157,7 +157,8 @@ app.get('/demo/guide/os',
exitOnOverlayClick
:
false
,
disableInteraction
:
false
,
showBullets
:
false
,
scrollToElement
:
false
scrollToElement
:
false
,
skipLabel
:
"
Cancel
"
}
);
});
...
...
dist/leaflet-oilspill-control.js
View file @
b2a844f6
...
...
@@ -1242,6 +1242,13 @@ var L;
}
return
false
;
};
OilSpill
.
prototype
.
deleteParam
=
function
(
name
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
params
.
splice
(
i
,
1
);
;
}
};
OilSpill
.
prototype
.
replaceParam
=
function
(
name
,
newid
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
...
...
@@ -1293,6 +1300,16 @@ var L;
var
intro
=
introJs
();
intro
.
setOptions
(
guide
);
var
prevElement
=
null
;
function
finish
()
{
var
param
=
self
.
getURLParams
();
if
(
self
.
hasParam
(
'
guide
'
,
'
os
'
,
param
))
self
.
deleteParam
(
'
guide
'
,
param
);
var
search
=
self
.
getSearchUrl
(
param
);
if
(
history
.
pushState
)
{
var
newurl
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
+
window
.
location
.
pathname
+
search
;
window
.
history
.
pushState
({
path
:
newurl
},
''
,
newurl
);
}
}
intro
.
onbeforechange
(
function
(
targetElement
)
{
(
prevElement
&&
prevElement
.
guideFn
&&
prevElement
.
guideFn
());
prevElement
=
targetElement
;
...
...
@@ -1300,6 +1317,9 @@ var L;
intro
.
oncomplete
(
function
()
{
self
.
startButton
.
click
();
});
intro
.
onexit
(
function
()
{
finish
();
});
intro
.
start
();
}
});
...
...
src/leaflet-oilspill-control.js
View file @
b2a844f6
...
...
@@ -334,6 +334,13 @@ var L;
}
return
false
;
};
OilSpill
.
prototype
.
deleteParam
=
function
(
name
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
params
.
splice
(
i
,
1
);
;
}
};
OilSpill
.
prototype
.
replaceParam
=
function
(
name
,
newid
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
...
...
@@ -385,6 +392,16 @@ var L;
var
intro
=
introJs
();
intro
.
setOptions
(
guide
);
var
prevElement
=
null
;
function
finish
()
{
var
param
=
self
.
getURLParams
();
if
(
self
.
hasParam
(
'
guide
'
,
'
os
'
,
param
))
self
.
deleteParam
(
'
guide
'
,
param
);
var
search
=
self
.
getSearchUrl
(
param
);
if
(
history
.
pushState
)
{
var
newurl
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
+
window
.
location
.
pathname
+
search
;
window
.
history
.
pushState
({
path
:
newurl
},
''
,
newurl
);
}
}
intro
.
onbeforechange
(
function
(
targetElement
)
{
(
prevElement
&&
prevElement
.
guideFn
&&
prevElement
.
guideFn
());
prevElement
=
targetElement
;
...
...
@@ -392,6 +409,9 @@ var L;
intro
.
oncomplete
(
function
()
{
self
.
startButton
.
click
();
});
intro
.
onexit
(
function
()
{
finish
();
});
intro
.
start
();
}
});
...
...
src/leaflet-oilspill-control.js.map
View file @
b2a844f6
This diff is collapsed.
Click to expand it.
src/leaflet-oilspill-control.ts
View file @
b2a844f6
...
...
@@ -345,6 +345,12 @@ module L.Control {
return
false
;
}
private
deleteParam
(
name
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
params
.
splice
(
i
,
1
);;
}
}
private
replaceParam
(
name
,
newid
,
params
)
{
for
(
var
i
=
0
;
i
<
params
.
length
;
i
++
)
{
if
(
params
[
i
][
0
]
==
name
)
params
[
i
][
1
]
=
newid
;
...
...
@@ -400,13 +406,25 @@ module L.Control {
var
intro
=
introJs
();
intro
.
setOptions
(
guide
);
var
prevElement
=
null
;
function
finish
()
{
var
param
=
self
.
getURLParams
();
if
(
self
.
hasParam
(
'
guide
'
,
'
os
'
,
param
))
self
.
deleteParam
(
'
guide
'
,
param
);
var
search
=
self
.
getSearchUrl
(
param
);
if
(
history
.
pushState
)
{
var
newurl
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
+
window
.
location
.
pathname
+
search
;
window
.
history
.
pushState
({
path
:
newurl
},
''
,
newurl
);
}
}
intro
.
onbeforechange
(
function
(
targetElement
)
{
(
prevElement
&&
prevElement
.
guideFn
&&
prevElement
.
guideFn
())
prevElement
=
targetElement
;
});
intro
.
oncomplete
(
function
()
{
self
.
startButton
.
click
();
});
});
intro
.
onexit
(
function
()
{
finish
();
});
intro
.
start
();
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment