这是我的密码:
var template = new InfoTemplate();
template.setTitle("<b>Parcel</b>");
template.setContent("<hr>Parcel No: <b>${APN}</b>" +
"<hr>Book No: <b>${BOOK}</b>" +
"<hr>Page No: <b>${PAGE}</b>" +
"<hr>Address: <b>${SitusAddress}</b>" +
"<hr>Appraised Value: <b>${Imps}</b> " +
"<hr>Year Built: <b>${YearBuilt}</b>" +
"<hr> View Assessor's Map: <a href=<b>www.acgov.org/MS/prop/index.aspx?PRINT_PARCEL=${APN}</b></a>" +
"<hr><img src='https://maps.googleapis.com/maps/api/streetview?size=270x150&location=${SitusAddress}&fov=120&pitch=-5&sensor=false&key=AIzfaNJyAak4_N4g0NaX-2LBqh2w3irnHZTtKJ2xKA'>");
//add features to map
var featureLayer = new FeatureLayer("https://services5.arcgis.com/ROBnTHSNjoZ2Wm1P/arcgis/rest/services/Parcels/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["APN", "BOOK", "PAGE", "SitusAddress", "Imps", "YearBuilt"],
infoTemplate: template});
这就是当我点击某个功能以显示其信息(包括APN)时该站点的外观:
但如果我点击它,它会指引我到这里:
file:///C:/Users/jsobryan/OneDrive/Desktop/%3Cb
奇怪的是,当我粘贴它时,b标记的末尾被转换为%3b
在浏览器中,我看到:
file:///C:/Users/jsobryan/OneDrive/Desktop/<b