Hola, he estado viendo ejemplos de ventanas emergentes con enlaces de «Zoom», pero no logro entender cómo poner los enlaces en la ventana emergente. Aquí hay uno de los ejemplos que estaba consultando: Dar formato al contenido de una ventana de información | API de ArcGIS para JavaScript
Sé que se me está escapando algo... ¿qué me falta?
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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.