Select to view content in your preferred language

Remove Powered by ESRI on map window

4924
4
Jump to solution
01-24-2012 12:50 PM
WesleyMarcell
Occasional Contributor
Is it possible to remove the Powered by ESRI logo on the bottom right corner of the viewer?

I have found in the map.xml for a site that I created the following code:
<esri:Map IsLogoVisible="False"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:sys="clr-namespace:System;assembly=mscorlib"
  xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
  xmlns:esriBing="clr-namespace:ESRI.ArcGIS.Client.Bing;assembly=ESRI.ArcGIS.Client.Bing"
  xmlns:esriMapping="http://schemas.esri.com/arcgis/mapping/2009"
  xmlns:esriExtensibility="http://schemas.esri.com/arcgis/client/extensibility/2010"
  xmlns:esriFSSymbols="clr-namespace:ESRI.ArcGIS.Client.FeatureService.Symbols;assembly=ESRI.ArcGIS.Client"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<esriMapping:ScaleBarExtensions.ScaleBarMapUnit>Meters</esriMapping:ScaleBarExtensions.ScaleBarMapUnit>
<esri:Map.IsLogoVisible>False</esri:Map.IsLogoVisible>

Of course there is more code.  My question is that I have the IsLogoVisible set to False much like in the VisualStudio based API but the logo still shows up.  Maybe I am looking in the wrong place.  FYI this is the new final release not the beta.
0 Kudos
1 Solution

Accepted Solutions
WesleyMarcell
Occasional Contributor
Ok I spent way too much time on this and one of our developers helped me get to the end point.  To remove the logo from the map you do the following:

If you are starting from scratch (havent made your web map yet or want the template to not have the logo) you will make these changes in the builder directory:
C:\inetpub\wwwroot\Builder_ArcGIS_Silverlight\Templates\Default\Config\Layouts
If you have a project that you have already created that you wish to remove the logo from work in this directory:
C:\inetpub\wwwroot\Apps_ArcGIS_Silverlight\<YourProject>\Config\Layouts

Find the template that your map uses or you wish to change for the builder.  For me it was accordion.xaml.  Beginning with line 522 you will see the following code:
<ContentControl x:Name="AttributionDisplayContainer"
                                HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                Margin="0,0,0,0"/>

Change this code to:
<ContentControl x:Name="AttributionDisplayContainer" Visibility="Collapsed"
                                HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                Margin="0,0,6,2"/>

View solution in original post

0 Kudos
4 Replies
MarkBryant
Regular Contributor
I have found that to suppress the logo you need two things:
Map.IsLogoVisible=False
and you also need to not be using one of ESRI's tile services.

Hope that helps.
Mark.
0 Kudos
WesleyMarcell
Occasional Contributor
Thanks Mark,
More than likely it was because I was using the ESRI imagery as you stated.  I will try to pull in a local cached version and see if that solves the problem.  Kudos to you!
0 Kudos
WesleyMarcell
Occasional Contributor
Well,
That did not seem to work.  I changed the basemap to point at a local cache of NAIP imagery that I know for a fact has no branding in it because we built the cache from scratch.  I changed it in the map.xml file in a project under the Apps_ArcGIS_Silverlight/Config folder.  I also went into the Builder_ArcGIS_Silverlight/App_Data folder and changed the Imagery layer in basemaps.xml and ConfigurationStore.xml to point at our local cache.  While this did let me pick our basemap from the default basemaps list within the ArcGIS for Silverlight Viewer application, it is still branded.  Perhaps it is hardcoded somewhere in there to force it to be branded if you use the ArcGIS for Silverlight program.  I will keep messing around with it as this is mainly an RD project and report any findings.  If anyone else has an idea please respond.  Thanks.
0 Kudos
WesleyMarcell
Occasional Contributor
Ok I spent way too much time on this and one of our developers helped me get to the end point.  To remove the logo from the map you do the following:

If you are starting from scratch (havent made your web map yet or want the template to not have the logo) you will make these changes in the builder directory:
C:\inetpub\wwwroot\Builder_ArcGIS_Silverlight\Templates\Default\Config\Layouts
If you have a project that you have already created that you wish to remove the logo from work in this directory:
C:\inetpub\wwwroot\Apps_ArcGIS_Silverlight\<YourProject>\Config\Layouts

Find the template that your map uses or you wish to change for the builder.  For me it was accordion.xaml.  Beginning with line 522 you will see the following code:
<ContentControl x:Name="AttributionDisplayContainer"
                                HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                Margin="0,0,0,0"/>

Change this code to:
<ContentControl x:Name="AttributionDisplayContainer" Visibility="Collapsed"
                                HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                Margin="0,0,6,2"/>
0 Kudos