|
197 | 197 | function addStopMarker(stopId, stopName, stopLat, stopLon, locationType, selected, text) { |
198 | 198 | if (stopMarkersSelected[stopId]) { |
199 | 199 | // stop was selected |
200 | | - var marker = stopMarkersSelected[stopId]; |
201 | | - if (text) { |
| 200 | + var marker = stopMarkersSelected[stopId]; |
| 201 | + if (text) { |
202 | 202 | oldText = marker.getText(); |
203 | 203 | if (oldText) { |
204 | 204 | oldText = oldText + "<br>"; |
205 | 205 | } |
206 | 206 | marker.setText(oldText + text); |
207 | | - } |
| 207 | + } |
208 | 208 | return marker; |
209 | 209 | } |
210 | 210 | if (stopMarkersBackground[stopId]) { |
|
264 | 264 | */ |
265 | 265 | function changeStopLocation(marker) { |
266 | 266 | var url = "/json/setstoplocation?id=" + |
267 | | - encodeURIComponent(marker.stopId) + |
| 267 | + encodeURIComponent(marker.stopId) + |
268 | 268 | "&lat=" + encodeURIComponent(marker.getLatLng().lat()) + |
269 | 269 | "&lng=" + encodeURIComponent(marker.getLatLng().lng()); |
270 | 270 | GDownloadUrl(url, function(data, responseCode) { |
|
591 | 591 | label = formatTime(arrivalTimes[i]) |
592 | 592 | if (departureTimes && departureTimes[i] != null && |
593 | 593 | arrivalTimes[i] != departureTimes[i]) { |
594 | | - label += '-' + formatTime(departureTimes[i]) |
| 594 | + label += '-' + formatTime(departureTimes[i]) |
595 | 595 | } |
596 | 596 | marker = addStopMarkerFromList(stops[i], true, label); |
597 | 597 | } else { |
|
722 | 722 | <div id="agencyHeader">[agency]</div> |
723 | 723 | </div> |
724 | 724 | <div id='content'> |
725 | | - <div id='sidebar-wrapper'><div id='sidebar'> |
726 | | - Time: <input type="text" value="8:00" width="9" id="timeInput"><br> |
727 | | - Date: <input type="text" value="" size="8" id="startDateInput" name="startDateInput"> <a href="#" onclick="calStartDate.select(document.getElementById('startDateInput'),'startDateInput','yyyyMMdd'); return false;">select</a><br> |
728 | | - <form onSubmit="stopTextSearchSubmit(); return false;"> |
729 | | - Find Station: <input type="text" id="stopTextSearchInput"><input value="Search" type="submit"></form><br> |
730 | | - <form onSubmit="tripTextSearchSubmit(); return false;"> |
731 | | - Find Trip ID: <input type="text" id="tripTextSearchInput"><input value="Search" type="submit"></form><br> |
| 725 | + <div id='sidebar-wrapper'><div id='sidebar'> |
| 726 | + Time: <input type="text" value="8:00" width="9" id="timeInput"><br> |
| 727 | + Date: <input type="text" value="" size="8" id="startDateInput" name="startDateInput"> <a href="#" onclick="calStartDate.select(document.getElementById('startDateInput'),'startDateInput','yyyyMMdd'); return false;">select</a><br> |
| 728 | + <form onSubmit="stopTextSearchSubmit(); return false;"> |
| 729 | + Find Station: <input type="text" id="stopTextSearchInput"><input value="Search" type="submit"></form><br> |
| 730 | + <form onSubmit="tripTextSearchSubmit(); return false;"> |
| 731 | + Find Trip ID: <input type="text" id="tripTextSearchInput"><input value="Search" type="submit"></form><br> |
732 | 732 | <div id="routeList">routelist</div> |
733 | | - </div></div> |
| 733 | + </div></div> |
734 | 734 |
|
735 | | - <div id='map-wrapper'> <div id='map'></div> </div> |
| 735 | + <div id='map-wrapper'> <div id='map'></div> </div> |
736 | 736 | </div> |
737 | 737 |
|
738 | 738 | <div id='bottombar'>bottom bar</div> |
|
0 commit comments