Select to view content in your preferred language

How to create Zoom link on popup

2750
3
04-27-2015 11:32 AM
JohnPreston
Deactivated User

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?

Tags (2)
0 Kudos
3 Replies
TimWitt2
MVP Alum

John,

when you use InfoTemplate | API Reference | ArcGIS API for JavaScript  it should automatically be created.

Tim

JohnPreston
Deactivated User

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

0 Kudos
TimWitt2
MVP Alum

John,

I think the cluster layer is your issue. Look at this example, there is no zoom to either.

ArcGIS API for JavaScript Sandbox

Tim

0 Kudos