Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
db62af72
Commit
db62af72
authored
Dec 03, 2015
by
Alexander Basov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Map layers. Fixed select appropriate radiobutton in dropdown
parent
cff88353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/main/webapp/WEB-INF/jsp/accession/map.jsp
src/main/webapp/WEB-INF/jsp/accession/map.jsp
+7
-5
No files found.
src/main/webapp/WEB-INF/jsp/accession/map.jsp
View file @
db62af72
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<li>
<li>
<label><input
class=
"map-provider"
name=
"provider"
style=
'margin-right: 10px;margin-left: 5px'
<label
class=
"label-map-provider"
><input
class=
"map-provider"
name=
"provider"
style=
'margin-right: 10px;margin-left: 5px'
type=
'radio'
>
MapQuest
</label>
type=
'radio'
>
MapQuest
</label>
<label><input
name=
"provider"
class=
"map-provider"
style=
'margin-right: 10px;margin-left: 5px'
<label
class=
"label-map-provider"
><input
name=
"provider"
class=
"map-provider"
style=
'margin-right: 10px;margin-left: 5px'
type=
'radio'
>
Openstreetmap
</label>
type=
'radio'
>
Openstreetmap
</label>
</li>
</li>
</ul>
</ul>
...
@@ -187,6 +187,10 @@
...
@@ -187,6 +187,10 @@
})
})
}
}
};
};
[].
forEach
.
call
(
$
(
'
.label-map-provider
'
),
function
(
label
){
label
.
innerText
==
cookieUtils
.
getCookie
(
'
mapProviders
'
)?
$
(
label
).
find
(
'
input:radio
'
).
prop
(
'
checked
'
,
true
)
:
$
(
label
).
find
(
'
input:radio
'
).
prop
(
'
checked
'
,
false
);
});
if
(
cookieUtils
.
getCookie
(
'
mapProviders
'
)
&&
cookieUtils
.
getCookie
(
'
mapProviders
'
)
!=
''
)
{
if
(
cookieUtils
.
getCookie
(
'
mapProviders
'
)
&&
cookieUtils
.
getCookie
(
'
mapProviders
'
)
!=
''
)
{
mapProviders
[
cookieUtils
.
getCookie
(
'
mapProviders
'
)].
addTo
(
map
);
mapProviders
[
cookieUtils
.
getCookie
(
'
mapProviders
'
)].
addTo
(
map
);
topPane
.
appendChild
(
mapProviders
[
cookieUtils
.
getCookie
(
'
mapProviders
'
)].
getContainer
());
topPane
.
appendChild
(
mapProviders
[
cookieUtils
.
getCookie
(
'
mapProviders
'
)].
getContainer
());
...
@@ -212,8 +216,6 @@
...
@@ -212,8 +216,6 @@
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
.map-provider
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.map-provider
"
,
function
(
e
)
{
var
providerName
=
$
(
this
).
parent
().
text
();
var
providerName
=
$
(
this
).
parent
().
text
();
console
.
log
(
$
(
this
).
parent
().
text
());
console
.
log
(
providerName
);
if
(
$
(
this
).
is
(
"
:checked
"
))
{
if
(
$
(
this
).
is
(
"
:checked
"
))
{
cookieUtils
.
setCookie
(
'
mapProviders
'
,
providerName
,
0
);
cookieUtils
.
setCookie
(
'
mapProviders
'
,
providerName
,
0
);
$
(
document
).
trigger
(
'
cookieUpdate
'
);
$
(
document
).
trigger
(
'
cookieUpdate
'
);
...
@@ -372,7 +374,7 @@
...
@@ -372,7 +374,7 @@
loadDetailsTimeout
=
setTimeout
(
function
()
{
loadDetailsTimeout
=
setTimeout
(
function
()
{
var
filterBounds
=
filterJsonObj
;
var
filterBounds
=
filterJsonObj
;
console
.
log
(
filterBounds
)
console
.
log
(
filterBounds
)
;
filterBounds
[
'
geo.latitude
'
]
=
[{
range
:
[
sw
.
lat
,
ne
.
lat
]}];
filterBounds
[
'
geo.latitude
'
]
=
[{
range
:
[
sw
.
lat
,
ne
.
lat
]}];
filterBounds
[
'
geo.longitude
'
]
=
[{
range
:
[
sw
.
lng
,
ne
.
lng
]}];
filterBounds
[
'
geo.longitude
'
]
=
[{
range
:
[
sw
.
lng
,
ne
.
lng
]}];
//console.log(JSON.stringify(filterBounds));
//console.log(JSON.stringify(filterBounds));
...
...
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