Adding Queenstown bus ride + map legend
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -73,7 +73,7 @@ oSpot.pageInit = function(asHash)
|
|||||||
{
|
{
|
||||||
options:
|
options:
|
||||||
{
|
{
|
||||||
url:'http://spot.lutran.fr/kml/TeAraroaTrail_simplified.kml?v4',
|
url:'https://cloud.lutran.fr/index.php/s/hX9src9948nbqrs/download?v2',
|
||||||
opts:{preserveViewport: true}
|
opts:{preserveViewport: true}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -99,6 +99,19 @@ oSpot.pageInit = function(asHash)
|
|||||||
if(infowindow) infowindow.close();
|
if(infowindow) infowindow.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
panel:
|
||||||
|
{
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
content:'<div id="legend">'+
|
||||||
|
'<div class="line green">Te Araroa</div>'+
|
||||||
|
'<div class="line blue">Routeburn Track</div>'+
|
||||||
|
'<div class="line red">Hors rando</div>'+
|
||||||
|
'</div>',
|
||||||
|
bottom: true,
|
||||||
|
left: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
self.tmp('map', $Map.gmap3("get"));
|
self.tmp('map', $Map.gmap3("get"));
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,17 +11,53 @@
|
|||||||
bottom:0;
|
bottom:0;
|
||||||
width:70%;
|
width:70%;
|
||||||
background:#EEE;
|
background:#EEE;
|
||||||
}
|
|
||||||
|
.loader {
|
||||||
#map .loader {
|
position:absolute;
|
||||||
position:absolute;
|
font-size:3em;
|
||||||
font-size:3em;
|
width:1em;
|
||||||
width:1em;
|
height:1em;
|
||||||
height:1em;
|
top:calc(50% - 0.5em);
|
||||||
top:calc(50% - 0.5em);
|
left:calc(50% - 0.5em);
|
||||||
left:calc(50% - 0.5em);
|
color:#666;
|
||||||
color:#666;
|
@extend .flicker;
|
||||||
@extend .flicker;
|
}
|
||||||
|
|
||||||
|
#legend {
|
||||||
|
background:white;
|
||||||
|
font-family:Arial;
|
||||||
|
margin-top:-3em;
|
||||||
|
margin-left:2em;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
font-family: Arial;
|
||||||
|
|
||||||
|
.line {
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 2em solid;
|
||||||
|
line-height: 2px;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
margin: 1em;
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
&.green {
|
||||||
|
color:#00ff78;
|
||||||
|
border-color: #00ff78;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.blue {
|
||||||
|
color:#0000ff;
|
||||||
|
border-color: #0000ff;
|
||||||
|
}
|
||||||
|
&.red {
|
||||||
|
color:#FF7814;
|
||||||
|
border-color:#FF7814;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ .line {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#feed {
|
#feed {
|
||||||
|
|||||||
Reference in New Issue
Block a user