Make the map center static when map reloads
This commit is contained in:
1 parent
cab7eada1f
commit
79488d75e8
4 files changed
+94
-14
No files matched your search
@@ -13,7 +13,10 @@
|
||||
style=""
|
||||
id="leaflet-map"
|
||||
data-city="@Model.City"
|
||||
data-date="@Model.Date.ToString("yyyy-MM-dd")">
|
||||
data-date="@Model.Date.ToString("yyyy-MM-dd")"
|
||||
data-initial-zoom="@Model.mapLocation.zoom"
|
||||
data-initial-lon="@Model.mapLocation.lon"
|
||||
data-initial-lat="@Model.mapLocation.lat">
|
||||
</div>
|
||||
|
||||
<table class="uk-table uk-table-striped">
|
||||
@@ -35,7 +38,8 @@
|
||||
@Html.ActionLink(stats.Date.ToString("yyyy-MM-dd"),
|
||||
"City",
|
||||
"Home",
|
||||
new { City = Model.City, Date = stats.Date.ToString("yyyy-MM-dd"), })
|
||||
new { City = Model.City, Date = stats.Date.ToString("yyyy-MM-dd"), },
|
||||
htmlAttributes: new {@class = "map-link"})
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
|
||||
<hr/>
|
||||
<footer>
|
||||
source: <a href="https://gitlab.com/all-dressed-programming/yongestreet">https://gitlab.com/all-dressed-programming/yongestreet</a>
|
||||
source: <a href="https://gitlab.com/all-dressed-programming/yongestreet" target="_blank">
|
||||
https://gitlab.com/all-dressed-programming/yongestreet
|
||||
</a>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user