Skip to content

Commit

Permalink
Close #49
Browse files Browse the repository at this point in the history
  • Loading branch information
trivisonno committed Jun 28, 2023
1 parent 784f740 commit a71cc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions crosssection.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
html {
font-family: sans-serif;
}

table.streetmix {
table-layout: fixed;
}
table.streetmix td {
/* word-break: break-all; */
}
</style>
<link rel="stylesheet" href="css/main.css" />
</style>
Expand Down Expand Up @@ -481,7 +474,7 @@
<div style="float:right;width:70%;height:100%">
<div id="content" style="float:right;width:100%;"></div>
<div id="map" style="float:right;width:100%;height:400px">Loading map geometry...</div>
<input type="number" id="centerlineOffset" name="centerlineOffset" step="0.5" value="0">
<span style="border-top:2px solid red; border-bottom:2px solid blue;padding:0px;margin:5px;float:left"><input type="number" id="centerlineOffset" name="centerlineOffset" step="0.5" value="0"></span>
<br><button id="newTileLayer" type="button" class="btn btn-primary">Switch tile layer</button>
</div>

Expand Down Expand Up @@ -997,7 +990,7 @@ <h5 id="offcanvasRightLabel">Aerial Lane Viewer</h5>
html = "<pre>" + tagString + "</pre>"
$('#code').html(html);
$('#streetName').html($('#streetName').text() + " (" + Math.round(widthPixels / pixelsPerInch) +"')");

document.title = $('#streetName').text() + " - CrossSection+"


}
Expand Down
2 changes: 1 addition & 1 deletion js/osmtostreetmix.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,6 @@ function generateCrossSectionTable(feature) {

html = '<table class="streetmix" cellspacing="0" style="background:white;min-width:'+(totalStreetWidth*pixelsPerInch)+'px;"><tr>' + html

// console.log(offsetArray, totalStreetWidth)
console.log(offsetArray, totalStreetWidth)
return {'html': html, 'offsetArray': offsetArray }
}

0 comments on commit a71cc8d

Please sign in to comment.