forked from MTSR/mapserver
Poi URL links
This commit is contained in:
parent
c8af7bc9c5
commit
8c7ccc0035
@ -18,7 +18,16 @@ export default AbstractIconOverlay.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
createPopup: function(poi){
|
createPopup: function(poi){
|
||||||
|
if (poi.attributes.url)
|
||||||
|
{
|
||||||
|
return "<a href=\"" + poi.attributes.url + "\">" +
|
||||||
|
"<h4>" + poi.attributes.name + "</h4></a><hr>" +
|
||||||
|
"<b>Owner: </b> " + poi.attributes.owner + "<br>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return "<h4>" + poi.attributes.name + "</h4><hr>" +
|
return "<h4>" + poi.attributes.name + "</h4><hr>" +
|
||||||
"<b>Owner: </b> " + poi.attributes.owner + "<br>";
|
"<b>Owner: </b> " + poi.attributes.owner + "<br>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user