Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2XB3FinalProject
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
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
Christopher Schankula
2XB3FinalProject
Commits
36a2d6ae
Commit
36a2d6ae
authored
6 years ago
by
Ray Liu
Browse files
Options
Downloads
Patches
Plain Diff
Finished info window
parent
946e972b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tomcat/webapps/Trawl/infoWindow.js
+32
-0
32 additions, 0 deletions
tomcat/webapps/Trawl/infoWindow.js
tomcat/webapps/Trawl/map.js
+1
-1
1 addition, 1 deletion
tomcat/webapps/Trawl/map.js
tomcat/webapps/Trawl/map.jsp
+1
-1
1 addition, 1 deletion
tomcat/webapps/Trawl/map.jsp
with
34 additions
and
2 deletions
tomcat/webapps/Trawl/infoWindow.js
0 → 100644
+
32
−
0
View file @
36a2d6ae
//*This code references the info window google maps API
//https://developers.google.com/maps/documentation/javascript/infowindows
// This example displays a marker at the center of Australia.
// When the user clicks the marker, an info window opens.
function
initMap
(
lati
,
longi
,
info
)
{
for
(
int
i
=
0
;
i
<
lati
.
length
;
i
++
){
var
map
=
new
google
.
maps
.
Map
(
document
.
getElementById
(
'
map
'
),
{
zoom
:
5.5
,
center
:
{
lat
:
45.0349575
,
lng
:
-
88.6941305
};
});
var
contentString
=
info
[
i
];
var
infowindow
=
new
google
.
maps
.
InfoWindow
({
content
:
contentString
});
var
marker
=
new
google
.
maps
.
Marker
({
position
:
{
lat
:
lati
[
i
],
lng
:
longi
[
i
]}
,
map
:
map
,
});
marker
.
addListener
(
'
click
'
,
function
()
{
infowindow
.
open
(
map
,
marker
);
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tomcat/webapps/Trawl/map.js
+
1
−
1
View file @
36a2d6ae
//*This code references the google heat maps API
//https://developers.google.com/maps/documentation/javascript/examples/layer-heatmap
// This example requires the Visualization library. Include the libraries=visualization
// parameter when you first load the API. For example:
...
...
This diff is collapsed.
Click to expand it.
tomcat/webapps/Trawl/map.jsp
+
1
−
1
View file @
36a2d6ae
...
...
@@ -33,8 +33,8 @@
count
.
add
(
r
.
getCount
());
}
js
.
put
(
"longitude"
,
longitude
);
js
.
put
(
"latitude"
,
latitude
);
js
.
put
(
"longitude"
,
longitude
);
js
.
put
(
"name"
,
name
);
js
.
put
(
"date"
,
date
);
js
.
put
(
"individual count"
,
count
);
...
...
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