1
0
forked from MTSR/mapserver

Poi URL links

This commit is contained in:
S Godin 2020-04-28 11:50:36 +00:00 committed by Buckaroo Banzai
parent c8af7bc9c5
commit 8c7ccc0035

View File

@ -18,7 +18,16 @@ export default AbstractIconOverlay.extend({
}, },
createPopup: function(poi){ createPopup: function(poi){
return "<h4>" + poi.attributes.name + "</h4><hr>" + if (poi.attributes.url)
{
return "<a href=\"" + poi.attributes.url + "\">" +
"<h4>" + poi.attributes.name + "</h4></a><hr>" +
"<b>Owner: </b> " + poi.attributes.owner + "<br>"; "<b>Owner: </b> " + poi.attributes.owner + "<br>";
}
else
{
return "<h4>" + poi.attributes.name + "</h4><hr>" +
"<b>Owner: </b> " + poi.attributes.owner + "<br>";
}
} }
}); });