Select to view content in your preferred language

Infowindow zoomto - problem with points

591
2
10-24-2013 04:19 PM
NickWeinmann
Deactivated User
Default behaviour of the infowindow's zoomto link is to pan with a point feature, rather than zoom. I'm guessing this is because a point does not have a valid extent associated with it.

How can I override this behaviour?

Nick
0 Kudos
2 Replies
ManishkumarPatel
Deactivated User
Default behaviour of the infowindow's zoomto link is to pan with a point feature, rather than zoom. I'm guessing this is because a point does not have a valid extent associated with it.

How can I override this behaviour?

Nick


Please have a look at this link:

http://gis.stackexchange.com/questions/28017/arcgis-javascript-api-override-infowindow-zoom-to-funct...

if you would like to remove the Zoom To from the info window you can use the below code in the <style> tag


.esriPopup .actionsPane .zoomTo {      display: none; }


If required you can add your custom button to perform the zoom to actions.

Hope this helps.

Regards,
Manish
0 Kudos
NickWeinmann
Deactivated User
Please have a look at this link:

http://gis.stackexchange.com/questions/28017/arcgis-javascript-api-override-infowindow-zoom-to-funct...

if you would like to remove the Zoom To from the info window you can use the below code in the <style> tag


.esriPopup .actionsPane .zoomTo {      display: none; }


If required you can add your custom button to perform the zoom to actions.

Hope this helps.

Regards,
Manish


Thanks - I disabled the zoom to box using the css you provided.

Interestingly - in another web app I have that also uses a point layer, the zoomto works fine - ie: it both pans to the point and zooms in. I'm unsure as to why the default behaviour on this point layer in this web page is only panning.

Regards,

Nick
0 Kudos