Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyBusMap
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
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
Anton Sarukhanov
PyBusMap
Commits
e1c7ee45
Commit
e1c7ee45
authored
9 years ago
by
Anton Sarukhanov
Browse files
Options
Downloads
Patches
Plain Diff
added zoom control, legalese
parent
e5128440
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
static/css/full-page-map.css
+15
-0
15 additions, 0 deletions
static/css/full-page-map.css
static/js/map.js
+1
-1
1 addition, 1 deletion
static/js/map.js
templates/map.html
+7
-2
7 additions, 2 deletions
templates/map.html
with
23 additions
and
3 deletions
static/css/full-page-map.css
+
15
−
0
View file @
e1c7ee45
...
...
@@ -38,6 +38,14 @@ html, body {
padding
:
.4em
;
}
/* Text, etc */
.legalese
{
text-align
:
center
;
font-style
:
italic
;
font-size
:
0.7em
;
opacity
:
0.75
;
}
/* Attribution link / "About" popup */
#map
.leaflet-control-attribution
{
background-color
:
rgba
(
0
,
0
,
0
,
.8
);
...
...
@@ -46,6 +54,11 @@ html, body {
border-top-left-radius
:
3px
;
color
:
#eee
;
}
#map
.leaflet-control-zoom
,
#map
.leaflet-control-zoom
a
{
border
:
1px
solid
#666
;
background-color
:
#222
;
}
#map
a
,
#map
a
:hover
,
#map
a
:visited
,
...
...
@@ -111,6 +124,7 @@ html, body {
.dialog
.close
{
float
:
right
;
}
.dialog
h1
,
.dialog
h2
{
text-align
:
center
;
}
...
...
@@ -122,6 +136,7 @@ html, body {
font-weight
:
bold
;
text-decoration
:
none
;
}
.dialog
h1
a
,
.dialog
h2
a
{
text-decoration
:
underline
;
}
...
...
This diff is collapsed.
Click to expand it.
static/js/map.js
+
1
−
1
View file @
e1c7ee45
...
...
@@ -20,7 +20,6 @@ BusMap.Map = function(opts) {
function
init
()
{
// Create Map
var
mapOptions
=
{
zoomControl
:
false
,
};
var
boundsOptions
=
{
animate
:
false
,
...
...
@@ -226,6 +225,7 @@ BusMap.Map = function(opts) {
var
popupOpts
=
{
closeButton
:
false
,
keepInView
:
true
,
offset
:
[
1
,
-
9
],
};
if
(
!
(
s
in
that
.
stopMarkers
))
{
// Stop marker doesn't exist yet - create it now.
...
...
This diff is collapsed.
Click to expand it.
templates/map.html
+
7
−
2
View file @
e1c7ee45
...
...
@@ -55,9 +55,14 @@
<p>
To see upcoming stops for a bus, click the bus
<img
height=
"20px"
src=
"static/img/bus.png"
alt=
"bus-icon"
>
.
</p>
<h
2
>
<h
1
>
<a
href=
"javascript:void(0);"
onclick=
"$('#welcome').hide();"
>
Let's Go!
</a>
</h2>
</h1>
<p
class=
"legalese"
>
Nothing displayed here is guaranteed to be correct. The creator of this
map takes no responsibility for you catching a bus, missing a bus, or
interacting with a bus in any other way.
</p>
</div>
<div
id=
"msg"
>
<span
id=
"msg-zoomForVehicles"
>
Zoom in to see vehicles.
</span>
...
...
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