Select to view content in your preferred language

Remove Powered by ESRI in FlexViewer 2.1

3866
23
10-19-2010 05:30 AM
EricVenden
Frequent Contributor
I am pretty new to the Flex Viewer arena.  I am trying to find where the reference to the "Powered by ESRI" logo (lower right corner of the map window) is located.  I have found references in other older threads to the MapManager.mxml, but I cannot find this on the server (wondering if this is a version difference???)

Any help would be appreciated
Thanks
Eric Venden
Gurnee, IL
Tags (2)
0 Kudos
23 Replies
DasaPaddock
Esri Regular Contributor
The logo comes from the ArcGIS API for Flex. You can hide it by setting adding this to the MapManager's partAdded() function:

map.logoVisible = false;
0 Kudos
JoshuaCoates
Deactivated User
If you hide it, and replace with your own logo...How do you make it not open the ESRI website when I click my own logo? I am able to get my website to open, the ESRI site just opens simultaneously with it?!
0 Kudos
philippschnetzer
Frequent Contributor
i just removed the logo as has been suggested previously...then used the staticImage widget to place my logo. Then insert the 'click="xxxxxxxxxxx..." code shown below at the end of the staticImage.mxml and it makes your logo clickable with a link to a url.

 if (dataTable.key == IMAGE_URL)
                {
                    img.source = dataTable.collection[0];
                }
            }
        ]]>
    </fx:Script>

    <mx:VBox width="100%" height="100%">
  <!-- PS - added click event for url link -->
        <mx:Image id="img" width="205" click="navigateToURL(new URLRequest('http://www.gissolutions.ca'), 'quote')"
      useHandCursor="true"/>
    </mx:VBox>
</viewer:BaseWidget>
0 Kudos
JoshuaCoates
Deactivated User
Thanks, I got it working perfectly! Is there anyway to make it where there is a hand instead of the regular mouse arrow so that Users know it is click able?
0 Kudos
DasaPaddock
Esri Regular Contributor
Try also setting the buttonMode to true on the Image.
0 Kudos
JoshuaCoates
Deactivated User
How do you do this? I do not see buttonMode??
0 Kudos
JoshuaCoates
Deactivated User
How do you do this? I do not see buttonMode??
0 Kudos
CynthiaMatney
Emerging Contributor
Thanks - this was helpful.  However, I am wanting to get my city logo (static image) to be at the bottom right hand corner of my map - and I cannot get it to that location.

What do I need to do to change the location?

Thanks!
0 Kudos
philippschnetzer
Frequent Contributor
You can specify location in the config.xml.  Specifically, put the following line under

<!-- UI elements --> in your main config.xml...

<widget bottom="2" right="27"  config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>   
       

To change the size of the image you will need to change the 'width="xxx"' property found in a code block shown above in red...
0 Kudos