Skip to content

Commit

Permalink
luci-app-lime-location: set zoom=0 if location not set
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Escrich <p4u@dabax.net>
  • Loading branch information
p4u committed Aug 7, 2016
1 parent edf72dd commit f0042b1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h3> <%=hostname%> <%:at%> <%=community%></h3>
if (isNaN(community_lat) || isNaN(community_lon)){
// if neither community nor node coordinates are set, try to center the map to the user geolocation
map.locate({setView: true, maxZoom: 16});
map.setView([0, 0], 0);
}
// if the node position is not set, use the community coordinates to center the map
else {
Expand Down

0 comments on commit f0042b1

Please sign in to comment.