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
63ef55fd
Commit
63ef55fd
authored
18 years ago
by
webgeer
Browse files
Options
Downloads
Patches
Plain Diff
Various updates
parent
d511def1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
API.txt
+2
-0
2 additions, 0 deletions
API.txt
README.txt
+2
-2
2 additions, 2 deletions
README.txt
gmap_location.module
+30
-30
30 additions, 30 deletions
gmap_location.module
with
34 additions
and
32 deletions
API.txt
+
2
−
0
View file @
63ef55fd
...
@@ -143,6 +143,8 @@ The GMap Array is an associative array with the following definitions:
...
@@ -143,6 +143,8 @@ The GMap Array is an associative array with the following definitions:
should advertize layers in Transverse Mercator projection instead
should advertize layers in Transverse Mercator projection instead
of WGS84 projection. See discussion of this topic here:
of WGS84 projection. See discussion of this topic here:
http://johndeck.blogspot.com/#112679047816546118
http://johndeck.blogspot.com/#112679047816546118
'opacity' - (optional) Opacity level for this tile from 0.0 (transparent)
to 1.0 (opaque)
The gmap marker is converted to the javascript to display the map using the
The gmap marker is converted to the javascript to display the map using the
function gmap_draw_map($gmap, $javascript=''), where $gmap is a map
function gmap_draw_map($gmap, $javascript=''), where $gmap is a map
...
...
This diff is collapsed.
Click to expand it.
README.txt
+
2
−
2
View file @
63ef55fd
...
@@ -54,7 +54,7 @@ Instructions
...
@@ -54,7 +54,7 @@ Instructions
Macro
Macro
-----
-----
A gmap macro can be created on the
g
mapmacro page and the text can then be
A gmap macro can be created on the map
/
macro page and the text can then be
copied and pasted into any node where the gmap filter is enabled.
copied and pasted into any node where the gmap filter is enabled.
Default settings will be the initial settings and will be used for any
Default settings will be the initial settings and will be used for any
...
@@ -120,7 +120,7 @@ Demo
...
@@ -120,7 +120,7 @@ Demo
----
----
For a few pages that show some of the items mentioned above see:
For a few pages that show some of the items mentioned above see:
http://www.webgeer.com/
g
mapmacro
http://www.webgeer.com/map
/
macro
http://www.webgeer.com/gmapdemo
http://www.webgeer.com/gmapdemo
http://www.webgeer.com/map/users
http://www.webgeer.com/map/users
...
...
This diff is collapsed.
Click to expand it.
gmap_location.module
+
30
−
30
View file @
63ef55fd
...
@@ -607,41 +607,41 @@ function gmap_location_user($op, &$edit, &$user, $category = NULL) {
...
@@ -607,41 +607,41 @@ function gmap_location_user($op, &$edit, &$user, $category = NULL) {
function
gmap_location_form_alter
(
$form_id
,
&
$form
)
{
function
gmap_location_form_alter
(
$form_id
,
&
$form
)
{
$type
=
$form
[
'type'
][
'#value'
];
$node
=
$form
[
'#node'
];
if
(
module_exist
(
'location'
))
{
if
(
module_exist
(
'location'
))
{
return
;
return
;
}
}
switch
(
$form_id
)
{
if
(
isset
(
$form
[
'type'
]))
{
case
$type
.
'_node_settings'
:
$type
=
$form
[
'type'
][
'#value'
];
$markers
=
gmap_get_markers
();
switch
(
$form_id
)
{
case
$type
.
'_node_settings'
:
$form
[
'gmap'
]
=
array
(
$form
[
'gmap'
]
=
array
(
'#type'
=>
'fieldset'
,
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Google Maps'
),
'#title'
=>
t
(
'Google Maps'
),
'#weight'
=>
0
);
//0 puts at the top, 1 puts it at the bottom below the submit??
'#weight'
=>
0
,
//0 puts at the top, 1 puts it at the bottom below the submit??
$form
[
'gmap'
][
'gmap_node_'
.
$type
]
=
array
(
);
'#type'
=>
'checkbox'
,
$form
[
'gmap'
][
'gmap_node_'
.
$type
]
=
array
(
'#title'
=>
t
(
'Allow users to add Google Maps info to this node type'
),
'#type'
=>
'checkbox'
,
'#default_value'
=>
variable_get
(
'gmap_node_'
.
$type
,
0
),
'#title'
=>
t
(
'Allow users to add Google Maps info to this node type'
),
'#description'
=>
t
(
'The location information will be available to the google maps module, and can be shown in a block.'
),
'#default_value'
=>
variable_get
(
'gmap_node_'
.
$type
,
0
),
'#required'
=>
FALSE
,
'#description'
=>
t
(
'The location information will be available to the google maps module, and can be shown in a block.'
),
);
'#required'
=>
FALSE
,
$form
[
'gmap'
][
'gmap_node_marker_'
.
$type
]
=
array
(
);
'#type'
=>
'select'
,
$form
[
'gmap'
][
'gmap_node_marker_'
.
$type
]
=
array
(
'#title'
=>
t
(
'Marker for this nodetype'
),
'#type'
=>
'select'
,
'#default_value'
=>
variable_get
(
'gmap_node_marker_'
.
$type
,
variable_get
(
'gmap_user_map_marker'
,
'drupal'
)),
'#title'
=>
t
(
'Marker for this nodetype'
),
'#options'
=>
$markers
,
'#default_value'
=>
variable_get
(
'gmap_node_marker_'
.
$type
,
variable_get
(
'gmap_user_map_marker'
,
'drupal'
)),
);
'#options'
=>
gmap_get_markers
(),
break
;
);
case
$type
.
'_node_form'
:
break
;
if
(
variable_get
(
'gmap_node_'
.
$type
,
0
))
{
case
$type
.
'_node_form'
:
$edit
=
array
();
if
(
variable_get
(
'gmap_node_'
.
$type
,
0
))
{
_gmap_location_map_form
(
$form
,
$edit
,
'node'
);
$edit
=
array
();
}
_gmap_location_map_form
(
$form
,
$edit
,
'node'
);
break
;
}
break
;
}
}
}
}
}
...
...
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