Skip to content

Commit 1ae63e3

Browse files
committed
Make link nicer and update data on re-center event
1 parent c410b1d commit 1ae63e3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

template/osm-map2.tpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ html, body {
6868
-moz-box-shadow: 0 0 2px #999;
6969
box-shadow: 0 0 2px #999;
7070
}
71-
#ribbon-map a:link {text-decoration: none; color: blue;}
72-
#ribbon-map a:visited {text-decoration: none; color: blue;}
73-
#ribbon-map a:active {text-decoration: none; color: blue;}
74-
#ribbon-map a:hover {text-decoration: underline overline; color: red;}
71+
#ribbon-map a:link {text-decoration: none; color: blue; text-shadow: none; transition: text-shadow 0.5s ease 0s;}
72+
#ribbon-map a:visited {text-decoration: none; color: blue; text-shadow: none; transition: text-shadow 0.5s ease 0s;}
73+
#ribbon-map a:active {text-decoration: none; color: blue; text-shadow: none; transition: text-shadow 0.5s ease 0s;}
74+
#ribbon-map a:hover {text-decoration: none; text-shadow: #0090ff 0px 0px 2px;}
7575

7676
.show, .hide{
7777
-webkit-transition: .4s ease-out;
@@ -293,6 +293,7 @@ function toggle(arrow)
293293
294294
function centerMap (e) {
295295
map.panTo(e.latlng);
296+
getMarkers(); /* Center on Map is not consider as Move so we have to update the data ourself */
296297
}
297298
298299
function zoomIn (e) {

0 commit comments

Comments
 (0)