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
a10e6d00
Commit
a10e6d00
authored
14 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
Fix some $ in js files.
parent
aecfc6d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/gmap_shapes.js
+6
-6
6 additions, 6 deletions
js/gmap_shapes.js
js/shapeloader_static.js
+2
-2
2 additions, 2 deletions
js/shapeloader_static.js
with
8 additions
and
8 deletions
js/gmap_shapes.js
+
6
−
6
View file @
a10e6d00
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* GMap API version / Base case
* GMap API version / Base case
*/
*/
/*global
$
, Drupal, GEvent, GLatLng, GPolygon, GPolyline */
/*global
jQuery
, Drupal, GEvent, GLatLng, GPolygon, GPolyline */
Drupal
.
gmap
.
addHandler
(
'
gmap
'
,
function
(
elem
)
{
Drupal
.
gmap
.
addHandler
(
'
gmap
'
,
function
(
elem
)
{
var
obj
=
this
;
var
obj
=
this
;
...
@@ -32,12 +32,12 @@ Drupal.gmap.addHandler('gmap', function (elem) {
...
@@ -32,12 +32,12 @@ Drupal.gmap.addHandler('gmap', function (elem) {
pa
=
obj
.
poly
.
calcPolyPoints
(
shape
.
center
,
radius
,
shape
.
numpoints
);
pa
=
obj
.
poly
.
calcPolyPoints
(
shape
.
center
,
radius
,
shape
.
numpoints
);
}
}
else
if
(
shape
.
type
===
'
polygon
'
)
{
else
if
(
shape
.
type
===
'
polygon
'
)
{
$
.
each
(
shape
.
points
,
function
(
i
,
n
)
{
jQuery
.
each
(
shape
.
points
,
function
(
i
,
n
)
{
pa
.
push
(
new
GLatLng
(
n
[
0
],
n
[
1
]));
pa
.
push
(
new
GLatLng
(
n
[
0
],
n
[
1
]));
});
});
}
}
else
if
(
shape
.
type
===
'
line
'
)
{
else
if
(
shape
.
type
===
'
line
'
)
{
$
.
each
(
shape
.
points
,
function
(
i
,
n
)
{
jQuery
.
each
(
shape
.
points
,
function
(
i
,
n
)
{
pa
.
push
(
new
GLatLng
(
n
[
0
],
n
[
1
]));
pa
.
push
(
new
GLatLng
(
n
[
0
],
n
[
1
]));
});
});
fillstyle
=
false
;
fillstyle
=
false
;
...
@@ -75,7 +75,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
...
@@ -75,7 +75,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
shape
.
opacity
=
style
[
2
];
shape
.
opacity
=
style
[
2
];
}
}
else
if
(
shape
.
type
==
'
encoded_polygon
'
)
{
else
if
(
shape
.
type
==
'
encoded_polygon
'
)
{
$
.
each
(
shape
.
polylines
,
function
(
i
,
polyline
)
{
jQuery
.
each
(
shape
.
polylines
,
function
(
i
,
polyline
)
{
polyline
.
color
=
style
[
0
];
polyline
.
color
=
style
[
0
];
polyline
.
weight
=
style
[
1
];
polyline
.
weight
=
style
[
1
];
polyline
.
opacity
=
style
[
2
];
polyline
.
opacity
=
style
[
2
];
...
@@ -86,7 +86,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
...
@@ -86,7 +86,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
shape
.
outline
=
true
;
shape
.
outline
=
true
;
}
}
$
.
each
(
style
,
function
(
i
,
n
)
{
jQuery
.
each
(
style
,
function
(
i
,
n
)
{
cargs
.
push
(
n
);
cargs
.
push
(
n
);
});
});
if
(
shape
.
opts
)
{
if
(
shape
.
opts
)
{
...
@@ -138,7 +138,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
...
@@ -138,7 +138,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
obj
.
bind
(
'
clearshapes
'
,
function
()
{
obj
.
bind
(
'
clearshapes
'
,
function
()
{
if
(
obj
.
vars
.
shapes
)
{
if
(
obj
.
vars
.
shapes
)
{
$
.
each
(
obj
.
vars
.
shapes
,
function
(
i
,
n
)
{
jQuery
.
each
(
obj
.
vars
.
shapes
,
function
(
i
,
n
)
{
obj
.
change
(
'
delshape
'
,
-
1
,
n
);
obj
.
change
(
'
delshape
'
,
-
1
,
n
);
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
js/shapeloader_static.js
+
2
−
2
View file @
a10e6d00
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Commonly used with macros.
* Commonly used with macros.
*/
*/
/*global
$
, Drupal */
/*global
jQuery
, Drupal */
// Add a gmap handler
// Add a gmap handler
Drupal
.
gmap
.
addHandler
(
'
gmap
'
,
function
(
elem
)
{
Drupal
.
gmap
.
addHandler
(
'
gmap
'
,
function
(
elem
)
{
...
@@ -21,7 +21,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
...
@@ -21,7 +21,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
// Store the shapes in s and reset obj.vars.shapes.
// Store the shapes in s and reset obj.vars.shapes.
var
s
=
obj
.
vars
.
shapes
;
var
s
=
obj
.
vars
.
shapes
;
obj
.
vars
.
shapes
=
[];
obj
.
vars
.
shapes
=
[];
$
.
each
(
s
,
function
(
i
,
shape
)
{
jQuery
.
each
(
s
,
function
(
i
,
shape
)
{
if
(
!
shape
.
opts
)
{
if
(
!
shape
.
opts
)
{
shape
.
opts
=
{};
shape
.
opts
=
{};
}
}
...
...
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