From 8c7ccc0035a2bc786eab6b72bc6a80cb3b061b8d Mon Sep 17 00:00:00 2001 From: S Godin Date: Tue, 28 Apr 2020 11:50:36 +0000 Subject: [PATCH] Poi URL links --- static/js/map/overlays/PoiOverlay.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 + "
"; + } } });