Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
brandboat committed Jan 16, 2015
1 parent 83e140c commit 327ef5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var config = {
development: {
server: {
port: 3000,
hostname: 'localhost',
hostname: 'brandboat',
},
database: {
url: 'postgresql://127.0.0.1:5432',
Expand Down
5 changes: 5 additions & 0 deletions public/css/route.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ html, body {
opacity: 0.7;
}

.geometry-search.item:hover {
cursor: pointer;
opacity: 0.7;
}

h2 {
text-align: center !important;
}
Expand Down
15 changes: 6 additions & 9 deletions public/javascripts/ROSM.Geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,22 @@ ROSM.Geocoder = {
var lat = response.results[k].geometry.location.lat;
var lng = response.results[k].geometry.location.lng;
var name = response.results[k].address_components[0].long_name;
var n = name.split(' ').join('_');
it[k].onclick = function() {
if(ROSM.G.markers.tmp) {
ROSM.G.markers.tmp.hide();
}
ROSM.G.markers.setTmp(new L.latLng(lat, lng));
ROSM.G.markers.tmp.addPopup(
"<div class='ui grid'>" +
"<h3 class='ui center aligned header'>" +
"<i class='map marker large icon'></i>" +
"<div class='content'>" + name + "</div>" +
"</h3>" +
"<div class='ui divider'></div>" +
"<div class='ui segment'>" +
"<div class='ui top attached label'> POI </div>" +
"<h2>" + name + "</h2>" +
"<div class='ui center aligned basic segment'>" +
"<div class='ui tmp marker green button' onclick=ROSM.GUI.addVia('tmp'," + "\"\"," + lat + "," + lng + ")>" +
"<div class='ui tmp marker green button' onclick=ROSM.GUI.addVia('tmp'," + "\"\"," + lat + "," + lng + ",\"" + n + "\")>" +
"<i class='plus icon'></i>Add to Trip</div>" +
"</div></div>");
"</div></div></div>");
ROSM.G.markers.tmp.show();
ROSM.G.markers.tmp.centerView();
console.log(ROSM.G.markers.route);
};
})();
}
Expand Down

0 comments on commit 327ef5e

Please sign in to comment.