parent
a421698a60
commit
fcd9a0eef1
1 changed files with 14 additions and 14 deletions
|
@ -138,8 +138,21 @@ L.U.PopupTemplate.Default = L.Class.extend({
|
|||
|
||||
});
|
||||
|
||||
L.U.PopupTemplate.BaseWithTitle = L.U.PopupTemplate.Default.extend({
|
||||
|
||||
L.U.PopupTemplate.Table = L.U.PopupTemplate.Default.extend({
|
||||
renderTitle: function () {
|
||||
var title;
|
||||
if (this.feature.getDisplayName()) {
|
||||
title = L.DomUtil.create('h3', 'popup-title');
|
||||
title.innerHTML = L.Util.escapeHTML(this.feature.getDisplayName());
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
L.U.PopupTemplate.Table = L.U.PopupTemplate.BaseWithTitle.extend({
|
||||
|
||||
formatRow: function (key, value) {
|
||||
if (value.indexOf('http') === 0) {
|
||||
|
@ -167,19 +180,6 @@ L.U.PopupTemplate.Table = L.U.PopupTemplate.Default.extend({
|
|||
|
||||
});
|
||||
|
||||
L.U.PopupTemplate.BaseWithTitle = L.U.PopupTemplate.Default.extend({
|
||||
|
||||
renderTitle: function () {
|
||||
var title;
|
||||
if (this.feature.getDisplayName()) {
|
||||
title = L.DomUtil.create('h3', 'popup-title');
|
||||
title.innerHTML = L.Util.escapeHTML(this.feature.getDisplayName());
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
L.U.PopupTemplate.GeoRSSImage = L.U.PopupTemplate.BaseWithTitle.extend({
|
||||
|
||||
options: {
|
||||
|
|
Loading…
Reference in a new issue