Hoppa till huvudinnehållet

Don't want to display map service name in the viewer

Kommentarer

8 kommentarer

  • Permanently deleted user

    Hi Srikanth,

    In Geocortex Essentials Manager, on the Map tab, click the little down arrow to the right of the map service name and uncheck "Include Map Service In Layer List":

    /customer/servlet/servlet.FileDownload?file=00P6000000elzKmEAI

     There are also settings available on each layer in the map service if you want to hide individual layers from the layer list, legend, identify, global search, or map tips:

    /customer/servlet/servlet.FileDownload?file=00P6000000em1PuEAI

    Cheers,

    Stephanie

    0
  • Srikanth Pilli

    Hi Stephanie,

    Although, I did uncheck "Include Map Service in the Layer List", it still appears when I change it from "Show Layer List" to "Show Legend".

    Is there any way that we can hide the map service name in the "Show Legend" window, and also how can I make the viewer open the "Show Legend" window by default instead of "Show Layer List" window - when the application is opened?

     

     

    Thanks

    Srikanth

    0
  • Permanently deleted user

    I think in order to hide the map service from the legend you will have to uncheck "include in legend" on all of the layers in that map service.  You probably also want to check "Exclude all layers from layer list" for the map service that you are hiding -- this will make sure that any layers in that map service do not show up in the layer list.  I think if the layers show up then the map service will show up too; I don't think you can hide the map service if you are not hiding all of the layers within that map service as well.

    You can write a startup workflow to show the legend by default when the Silverlight application is opened.  Use the RunExternalCommand activity to ToggleDataFrame and SwitchToLegendView.  When you add the workflow in Essentials Manager, edit the Silverlight viewer, click on the Workflow tab, and under "Startup Workflow" choose the Workflow ID of your show legend workflow (that makes it run on startup).

     

    Example workflow here:

    <Activity mc:Ignorable="sap" x:Class="{x:Null}" sap:VirtualizedContainerService.HintSize="381,376" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:eac="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client" xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client" xmlns:gce="clr-namespace:Geocortex.Core.Extensions;assembly=Geocortex.Core" xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi" xmlns:gfci="clr-namespace:Geocortex.Forms.Client.Items;assembly=Geocortex.EssentialsWpfApi" xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting" xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow" xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=System.Core" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=mscorlib" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     

      <Sequence sap:VirtualizedContainerService.HintSize="341,336" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">

     

        <sap:WorkflowViewStateService.ViewState>

     

          <scg:Dictionary x:TypeArguments="x:String, x:Object">

     

            <x:Boolean x:Key="IsExpanded">True</x:Boolean>

     

          </scg:Dictionary>

     

        </sap:WorkflowViewStateService.ViewState>

     

        <gwa1:RunExternalCommand CommandName="ToggleDataFrame" sap:VirtualizedContainerService.HintSize="319,86" />

     

        <gwa1:RunExternalCommand CommandName="SwitchToLegendView" sap:VirtualizedContainerService.HintSize="319,86" />

     

      </Sequence>

     

    </Activity>
    0
  • Srikanth Pilli

    Hi Stephanie,

    I am confused as what should I pass in the command parameters box for  "ToggleDataFrame" and "SwitchToLegendView"  - in the work flow that you have provided.

     

    Thanks

    Srikanth

    0
  • Permanently deleted user

    You can leave those blank.  The workflow should work as is.

    0
  • Srikanth Pilli

    Hi Stephanie,

    It's working onloy with the silverlight version but not with the HTML5 viewer version.

    I also want to let you know that in the Desktop.json.js file ==> I did updated the following line :

    from : "startupWorkflows" : [ ],

    to : "startupWorkflows" : ["transtolegend"],

    "transtolegend" ==> is the workflow name

     

    Could you please let me know if I am missing anything?

     

    Thanks

    Srikanth

    0
  • Permanently deleted user

    Hi Srikanth,

    It will only work with the Silverlight viewer; the HTML5 Viewer doesn't have the capability of running a startup workflow as far as I know.

    0
  • Srikanth Pilli

    Got you Stephanie.

    Thanks

    Srikanth

     

    0

Du måste logga in om du vill lämna en kommentar.