Skip to content

Commit

Permalink
Popup title is the same as popup name
Browse files Browse the repository at this point in the history
For the sake of consistency, when no name is provided, the popup title
may be taken from "ref" or "operator" as in getName()
  • Loading branch information
edewaele committed Jun 25, 2015
1 parent 8764353 commit 1ff3a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ POI.prototype.getInfoBox = function(){
content+='<div class="tab-pane active container" id="basic" style="margin:0px;width:400px">';

//name
content+='<h4><a href=\'http://osm24.eu/index.php?id='+this.element.id+'#!18/'+this.element.lat+'/'+this.element.lon+'/\'>' +((this.element.tags.hasOwnProperty("name")) ? this.element.tags["name"]:"----")+'</a><div id="plusone-div" data-size="small" data-href=\'http://osm24.eu/index.php?id='+this.element.id+'#!18/'+this.element.lat+'/'+this.element.lon+'/\'></div></h4>';
content+='<h4><a href=\'http://osm24.eu/index.php?id='+this.element.id+'#!18/'+this.element.lat+'/'+this.element.lon+'/\'>' +(this.getName()?this.getName():"---")+'</a><div id="plusone-div" data-size="small" data-href=\'http://osm24.eu/index.php?id='+this.element.id+'#!18/'+this.element.lat+'/'+this.element.lon+'/\'></div></h4>';
//addr
content+='<small>'+((this.element.tags.hasOwnProperty("addr:city")) ? this.element.tags["addr:city"]+', ' : "")+((this.element.tags.hasOwnProperty("addr:street")) ? this.element.tags["addr:street"]+', ' : "")+((this.element.tags.hasOwnProperty("addr:housenumber")) ? this.element.tags["addr:housenumber"]+', ' : "")+'</small>';

Expand Down

1 comment on commit 1ff3a56

@edewaele
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit addresses issue dotevo#47

Please sign in to comment.