Hi I've been looking at popup samples with "Zoom" links but am unable to figure out how to put the links on the popup. Here is one of the samples I was looking at Format info window content | ArcGIS API for JavaScript
I know I am missing something...what am I missing?
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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.