Select to view content in your preferred language

infowindow

658
2
11-12-2013 11:05 AM
MohammadAnouti
Emerging Contributor
Hi,

How can I change the zoom of infowindow to zoom to a certain scale of 1/xxx when I click on map and get the selected feature.
0 Kudos
2 Replies
KellyHutchins
Esri Notable Contributor
You can use zoomFactor to define the number of levels to zoom. For example, the following will zoom in two levels.


map.infoWindow.set("zoomFactor", 2);
0 Kudos
JasonZou
Frequent Contributor
Kelly, I don't see anywhere in the JS API that Popup class has set method and zoomFactor property. I understand that Popup is a dijit that has setters and getters. But should the ESRI Javascript API mention it and add zoomFactor property to Popup dijit? Such simple additions might save us lots of time to figure out solutions for simple tasks.
0 Kudos