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
50c1938b
Commit
50c1938b
authored
18 years ago
by
webgeer
Browse files
Options
Downloads
Patches
Plain Diff
fixed final bug in
http://drupal.org/node/63951
parent
2b06b757
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gmap_location.module
+4
-3
4 additions, 3 deletions
gmap_location.module
with
4 additions
and
3 deletions
gmap_location.module
+
4
−
3
View file @
50c1938b
...
@@ -76,10 +76,11 @@ function gmap_location_users_page() {
...
@@ -76,10 +76,11 @@ function gmap_location_users_page() {
$newmarker
[
'label'
]
.
=
theme
(
'username'
,
$account
);
$newmarker
[
'label'
]
.
=
theme
(
'username'
,
$account
);
$newmarker
[
'point'
]
=
$u
->
latitude
.
','
.
$u
->
longitude
;
$newmarker
[
'point'
]
=
$u
->
latitude
.
','
.
$u
->
longitude
;
$newmarker
[
'markername'
]
=
variable_get
(
'gmap_user_map_marker'
,
'drupal'
);
$newmarker
[
'markername'
]
=
variable_get
(
'gmap_user_map_marker'
,
'drupal'
);
$newmarker
[
'tooltip'
]
=
$account
->
name
;
$newmarker
[
'tooltip'
]
=
check_plain
(
$account
->
name
)
;
}
}
else
{
else
{
$newmarker
[
'point'
]
=
$u
->
latitude
.
', '
.
$u
->
longitude
;
$newmarker
[
'point'
]
=
$u
->
latitude
.
', '
.
$u
->
longitude
;
$newmarker
[
'markername'
]
=
variable_get
(
'gmap_user_map_marker'
,
'drupal'
);
}
}
$thismap
[
'markers'
][]
=
$newmarker
;
$thismap
[
'markers'
][]
=
$newmarker
;
}
}
...
@@ -131,7 +132,7 @@ function gmap_location_node_page($nn=null) {
...
@@ -131,7 +132,7 @@ function gmap_location_node_page($nn=null) {
// strtr($newmarker['label'],"'\n",'" ');
// strtr($newmarker['label'],"'\n",'" ');
break
;
break
;
case
'image'
:
case
'image'
:
$newmarker
[
'label'
]
=
'<a href="'
.
url
(
'node/'
.
$
loc
n
->
o
id
)
.
'">'
.
$n
->
title
.
'</a> <br>'
;
$newmarker
[
'label'
]
=
'<a href="'
.
url
(
'node/'
.
$n
->
n
id
)
.
'">'
.
check_plain
(
$n
->
title
)
.
'</a> <br>'
;
$newmarker
[
'label'
]
.
=
image_display
(
$n
,
'thumbnail'
);
$newmarker
[
'label'
]
.
=
image_display
(
$n
,
'thumbnail'
);
break
;
break
;
default
:
default
:
...
@@ -139,7 +140,7 @@ function gmap_location_node_page($nn=null) {
...
@@ -139,7 +140,7 @@ function gmap_location_node_page($nn=null) {
}
}
$newmarker
[
'point'
]
=
$locn
->
latitude
.
','
.
$locn
->
longitude
;
$newmarker
[
'point'
]
=
$locn
->
latitude
.
','
.
$locn
->
longitude
;
$newmarker
[
'markername'
]
=
variable_get
(
'gmap_node_map_marker_'
.
$n
->
type
,
''
);
$newmarker
[
'markername'
]
=
variable_get
(
'gmap_node_map_marker_'
.
$n
->
type
,
''
);
$newmarker
[
'tooltip'
]
=
$n
->
title
;
$newmarker
[
'tooltip'
]
=
check_plain
(
$n
->
title
)
;
$thismap
[
'markers'
][]
=
$newmarker
;
$thismap
[
'markers'
][]
=
$newmarker
;
}
}
}
}
...
...
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