Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gmap
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
gmap
Commits
304bb991
Commit
304bb991
authored
9 years ago
by
rvallejo
Committed by
podarok
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2575705 by rvallejo: Scaling GMap Marker Icons for High Res Displays (Mobile, etc.)
parent
a9253b21
No related branches found
Branches containing commit
Tags
7.x-2.10-rc1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gmap_markerinfo.inc
+3
-2
3 additions, 2 deletions
gmap_markerinfo.inc
js/icon.js
+6
-2
6 additions, 2 deletions
js/icon.js
with
9 additions
and
4 deletions
gmap_markerinfo.inc
+
3
−
2
View file @
304bb991
...
...
@@ -200,14 +200,15 @@ function _gmap_compress_icon_def($iconset) {
'anchorY'
,
'infoX'
,
'infoY'
,
'scale'
,
'shadow'
,
'printImage'
,
'mozPrintImage'
,
'printShadow'
,
'transparent'
,
);
$ints
=
array
(
3
=>
TRUE
,
4
=>
TRUE
,
5
=>
TRUE
,
6
=>
TRUE
);
$nulls
=
array
(
''
,
''
,
array
(),
0
,
0
,
0
,
0
,
''
,
''
,
''
,
''
,
''
);
$ints
=
array
(
3
=>
TRUE
,
4
=>
TRUE
,
5
=>
TRUE
,
6
=>
TRUE
,
7
=>
TRUE
);
$nulls
=
array
(
''
,
''
,
array
(),
0
,
0
,
0
,
0
,
0
,
''
,
''
,
''
,
''
,
''
);
$a
=
array
();
for
(
$c0
=
0
;
$c0
<
count
(
$order
);
$c0
++
)
{
...
...
This diff is collapsed.
Click to expand it.
js/icon.js
+
6
−
2
View file @
304bb991
...
...
@@ -65,6 +65,10 @@ Drupal.gmap.getIcon = function (setname, sequence) {
null
,
new
google
.
maps
.
Point
(
q
.
anchorX
,
q
.
anchorY
)
);
// Only set scaledSize if the scale variable makes sense as a divisor
if
(
q
.
scale
>
1
)
{
t
.
scaledSize
=
new
google
.
maps
.
Size
(
q
.
sequence
[
i
].
w
/
q
.
scale
,
q
.
sequence
[
i
].
h
/
q
.
scale
);
}
if
(
q
.
shadow
.
f
!==
''
)
{
this
.
gshadows
[
setname
][
i
]
=
new
google
.
maps
.
MarkerImage
(
p
+
q
.
shadow
.
f
,
new
google
.
maps
.
Size
(
q
.
shadow
.
w
,
q
.
shadow
.
h
),
...
...
@@ -147,9 +151,9 @@ Drupal.gmap.expandArray = function (arr, len) {
*/
Drupal
.
gmap
.
expandIconDef
=
function
(
c
,
path
,
files
)
{
var
decomp
=
[
'
key
'
,
'
name
'
,
'
sequence
'
,
'
anchorX
'
,
'
anchorY
'
,
'
infoX
'
,
'
infoY
'
,
'
shadow
'
,
'
printImage
'
,
'
mozPrintImage
'
,
'
printShadow
'
,
'
infoY
'
,
'
scale
'
,
'
shadow
'
,
'
printImage
'
,
'
mozPrintImage
'
,
'
printShadow
'
,
'
transparent
'
];
var
fallback
=
[
''
,
''
,
[],
0
,
0
,
0
,
0
,
{
f
:
''
,
h
:
0
,
w
:
0
},
''
,
''
,
''
,
''
];
var
fallback
=
[
''
,
''
,
[],
0
,
0
,
0
,
0
,
0
,
{
f
:
''
,
h
:
0
,
w
:
0
},
''
,
''
,
''
,
''
];
var
imagerep
=
[
'
shadow
'
,
'
printImage
'
,
'
mozPrintImage
'
,
'
printShadow
'
,
'
transparent
'
];
var
defaults
=
{};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment