Hallo, ich habe mir Beispiele für Pop-ups mit „Zoom“-Links angesehen, kann aber nicht herausfinden, wie ich die Links im Pop-up einfügen kann. Hier ist eines der Beispiele, die ich mir angesehen habe: Inhalt des Infofensters formatieren | ArcGIS API for JavaScript
Ich weiß, dass mir etwas entgeht … was übersehe ich?
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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.