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
206779e8
Commit
206779e8
authored
11 years ago
by
johnv
Committed by
Andriy Podanenko
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1930424 by johnv | shenagarg: How to add animation to Gmap Markers?.
parent
90221c92
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gmap_plugin_style_gmap.inc
+11
-0
11 additions, 0 deletions
gmap_plugin_style_gmap.inc
with
11 additions
and
0 deletions
gmap_plugin_style_gmap.inc
+
11
−
0
View file @
206779e8
...
@@ -41,6 +41,8 @@ class gmap_plugin_style_gmap extends views_plugin_style {
...
@@ -41,6 +41,8 @@ class gmap_plugin_style_gmap extends views_plugin_style {
$options
[
'center_on_proximityarg'
]
=
array
(
'default'
=>
0
);
$options
[
'center_on_proximityarg'
]
=
array
(
'default'
=>
0
);
$options
[
'animation'
]
=
array
(
'default'
=>
0
);
$options
[
'highlight_nodearg'
]
=
array
(
'default'
=>
0
);
$options
[
'highlight_nodearg'
]
=
array
(
'default'
=>
0
);
$options
[
'highlight_nodearg_arg'
]
=
array
(
'default'
=>
''
);
$options
[
'highlight_nodearg_arg'
]
=
array
(
'default'
=>
''
);
$options
[
'highlight_nodearg_color'
]
=
array
(
'default'
=>
'#FF0000'
);
$options
[
'highlight_nodearg_color'
]
=
array
(
'default'
=>
'#FF0000'
);
...
@@ -252,6 +254,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
...
@@ -252,6 +254,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
'title'
=>
$tooltip
,
'title'
=>
$tooltip
,
'highlight'
=>
(
!
empty
(
$highlight_nid
)
&&
!
empty
(
$row_nid
)
&&
$highlight_nid
==
$row_nid
)
?
1
:
0
,
'highlight'
=>
(
!
empty
(
$highlight_nid
)
&&
!
empty
(
$row_nid
)
&&
$highlight_nid
==
$row_nid
)
?
1
:
0
,
'highlightcolor'
=>
$this
->
options
[
'highlight_nodearg_color'
],
'highlightcolor'
=>
$this
->
options
[
'highlight_nodearg_color'
],
'animation'
=>
$this
->
options
[
'animation'
],
),
),
);
);
...
@@ -453,6 +456,14 @@ class gmap_plugin_style_gmap extends views_plugin_style {
...
@@ -453,6 +456,14 @@ class gmap_plugin_style_gmap extends views_plugin_style {
);
);
}
}
// Use the values from google.maps.Animation. See https://developers.google.com/maps/documentation/javascript/reference
$form
[
'animation'
]
=
array
(
'#type'
=>
'select'
,
'#options'
=>
array
(
0
=>
'None'
,
1
=>
'Bounce'
,
2
=>
'Drop'
),
'#title'
=>
t
(
'Animation'
),
'#default_value'
=>
$this
->
options
[
'animation'
],
'#description'
=>
t
(
"Add animation to the markers."
),
);
$form
[
'highlight_nodearg'
]
=
array
(
$form
[
'highlight_nodearg'
]
=
array
(
'#type'
=>
'checkbox'
,
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Highlight marker for node argument'
),
'#title'
=>
t
(
'Highlight marker for node argument'
),
...
...
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