Hide Zoom to Button in Infowindow

3928
6
Jump to solution
03-20-2013 06:31 AM
MattSheehan
Deactivated User
Is there a simple way to hide the default 'Zoom To' button in the InfoWindow.

http://www.webmapsolutions.com/blogimg/zoom_to.png

We have found in the mobile ArcGIS Online apps we are building this can cause the app to crash. 

Thanks

--Rory
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
HeatherGonzago
Esri Contributor
Is there a simple way to hide the default 'Zoom To' button in the InfoWindow.

http://www.webmapsolutions.com/blogimg/zoom_to.png

We have found in the mobile ArcGIS Online apps we are building this can cause the app to crash. 

Thanks

--Rory


Hi Rory,
There is a known-limit when working with pop-up windows in mobile applications created with version 3.1. If doing so, please note that you will need to either:

   1 -  add both mx.swc and sparkskins.swc to your project, or
  2 -   update the PopUpRendererSkin class and remove references to the RelationshipInspector component.

This is doc'd at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Mobile_applications_with_Flex/017p...
and also doc'd at the FAQ's as Why is my mobile application throwing errors when working with pop-up windows?
http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/FAQ/017p00000016000000/

HTH,
Heather

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Rory,

  Sure if you look at the PopUpInfo documentation you will see showZoomToButton:

http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/portal/supportClasses/PopUpInfo.htm...
0 Kudos
RhettZufelt
MVP Notable Contributor
Not sure about mobile, but the simplest way in flexviewer is to set that tag in the popupconfig.xml file and can be set differently for each sub layer.

      <showzoomtobutton>false</showzoomtobutton>

as documented here:  http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m3... at bottom of page.

R_
0 Kudos
HeatherGonzago
Esri Contributor
Is there a simple way to hide the default 'Zoom To' button in the InfoWindow.

http://www.webmapsolutions.com/blogimg/zoom_to.png

We have found in the mobile ArcGIS Online apps we are building this can cause the app to crash. 

Thanks

--Rory


Hi Rory,
There is a known-limit when working with pop-up windows in mobile applications created with version 3.1. If doing so, please note that you will need to either:

   1 -  add both mx.swc and sparkskins.swc to your project, or
  2 -   update the PopUpRendererSkin class and remove references to the RelationshipInspector component.

This is doc'd at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Mobile_applications_with_Flex/017p...
and also doc'd at the FAQ's as Why is my mobile application throwing errors when working with pop-up windows?
http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/FAQ/017p00000016000000/

HTH,
Heather
0 Kudos
MattSheehan
Deactivated User
Thanks for the replies all. It was a 3.1 issue. Just grabbed 3.2 and so far all looks good.

--Rory
0 Kudos
MattSheehan
Deactivated User
I should have added, I am also following Heathers advice. Thanks all again.
0 Kudos
KenBuja
MVP Esteemed Contributor
You should click the check mark on her post to signify it answered your question.
0 Kudos