diff --git a/static/js/map/overlays/PoiOverlay.js b/static/js/map/overlays/PoiOverlay.js index 06b902e..8c5ad62 100644 --- a/static/js/map/overlays/PoiOverlay.js +++ b/static/js/map/overlays/PoiOverlay.js @@ -18,7 +18,16 @@ export default AbstractIconOverlay.extend({ }, createPopup: function(poi){ - return "

" + poi.attributes.name + "


" + + if (poi.attributes.url) + { + return "" + + "

" + poi.attributes.name + "


" + "Owner: " + poi.attributes.owner + "
"; + } + else + { + return "

" + poi.attributes.name + "


" + + "Owner: " + poi.attributes.owner + "
"; + } } });