Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
2006Scape
wiki
Mediawiki Extensions Kartographer
Commits
e77fb1f4
Commit
e77fb1f4
authored
3 years ago
by
Jon@s
Browse files
Options
Download
Email Patches
Plain Diff
Fix bug where mapID=0 breaaks maplink features
parent
52ecfd31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/linkbox/Link.js
+14
-4
modules/linkbox/Link.js
with
14 additions
and
4 deletions
+14
-4
modules/linkbox/Link.js
+
14
-
4
View file @
e77fb1f4
...
...
@@ -43,8 +43,14 @@ module.Link = ( function ( $ ) {
link
.
$container
=
$
(
link
.
container
);
link
.
$container
.
addClass
(
'
mw-kartographer-link
'
);
link
.
mapID
=
options
.
mapID
||
'
auto
'
;
link
.
plane
=
options
.
plane
||
'
auto
'
;
link
.
mapID
=
'
auto
'
;
if
(
!
isNaN
(
options
.
mapID
)
)
{
link
.
mapID
=
options
.
mapID
;
}
link
.
plane
=
'
auto
'
;
if
(
!
isNaN
(
options
.
plane
)
)
{
link
.
plane
=
options
.
plane
;
}
link
.
mapVersion
=
options
.
mapVersion
||
null
;
link
.
plainTiles
=
options
.
plainTiles
||
false
;
link
.
center
=
options
.
center
||
'
auto
'
;
...
...
@@ -86,8 +92,12 @@ module.Link = ( function ( $ ) {
position
=
position
||
{};
position
.
center
=
position
.
center
||
link
.
center
;
position
.
zoom
=
typeof
position
.
zoom
===
'
number
'
?
position
.
zoom
:
link
.
zoom
;
position
.
mapID
=
position
.
mapID
||
link
.
mapID
;
position
.
plane
=
position
.
plane
||
link
.
plane
;
if
(
isNaN
(
position
.
mapID
)
)
{
position
.
mapID
=
link
.
mapID
;
}
if
(
isNaN
(
position
.
plane
)
)
{
position
.
plane
=
link
.
plane
;
}
position
.
mapVersion
=
position
.
mapVersion
||
link
.
mapVersion
||
null
;
position
.
plainTiles
=
position
.
plainTiles
||
link
.
plainTiles
||
false
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets