Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
accessibility-tools
accessible_gmaps
Commits
64033713
Commit
64033713
authored
May 06, 2016
by
Byrd
Browse files
Properly handle non-visible markers
parent
c9ec95f3
Pipeline
#16015
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
accessible_gmaps.js
View file @
64033713
...
...
@@ -297,6 +297,14 @@ function accessible_gmaps_infowindows_trapTabKey(object,evt, markerIndex) {
*/
function
accessible_gmaps_resetMarker
(
markerIndex
){
marker
=
markers
[
markerIndex
];
var
markerID
=
"
mkr-
"
+
markerIndex
;
// If marker isn't visible, hide the div and move on.
if
(
!
marker
.
getVisible
()){
jQuery
(
'
div#
'
+
markerID
).
css
(
'
display
'
,
'
none
'
);
return
;
}
var
offset
=
accessible_gmaps_getMarkerPos
(
marker
);
// These values should be adjusted based on your marker size.
...
...
@@ -306,7 +314,6 @@ function accessible_gmaps_resetMarker(markerIndex){
var
mapWidth
=
jQuery
(
mapIdentifier
).
width
();
var
mapHeight
=
jQuery
(
mapIdentifier
).
height
();
var
markerID
=
"
mkr-
"
+
markerIndex
;
var
markerWidth
=
jQuery
(
'
div#
'
+
markerID
).
width
();
var
markerHeight
=
jQuery
(
'
div#
'
+
markerID
).
height
();
...
...
Write
Preview
Supports
Markdown
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