こんにちは。「Zoom」リンクがあるポップアップのサンプルをいくつか見ているのですが、ポップアップにリンクを追加する方法がわかりません。見ていたサンプルの1つはこちらです。情報ウィンドウのコンテンツをフォーマットする | ArcGIS API for JavaScript
何か見落としているのはわかるのですが……何が足りないのでしょうか?
John,
when you use InfoTemplate | API Reference | ArcGIS API for JavaScript it should automatically be created.
Tim
Thank you Tim,
The zoom link is not being display. I am using the popup in a cluster layer...do you think that might be why it's not displaying?
var infoTemplate = new InfoTemplate();
infoTemplate.setTitle("Facility");
infoTemplate.setContent("<b>ID:</b>${FacilityID}<br/><b>Facility Type:</b>${FacilityType}<br/><a href='SWUViewInspectionDetail.htm?id=${ID}' target='_blank'>Details</a><br/>");
new ClusterLayer({
"data": photoInfo.data,
"distance": 50,
"id": "clusters",
"labelColor": "#fff",
"labelOffset": 10,
"resolution": map.extent.getWidth() / map.width,
"singleColor": "#888",
"singleTemplate": infoTemplate
I think the cluster layer is your issue. Look at this example, there is no zoom to either.
ArcGIS API for JavaScript Sandbox
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.