08-07-2017 01:59 PM
I need to remove the overview map completely from the left panel displayed with gwmpub.aspx (including the little "V" you click for zoom checkbox and zoom factor selection)
I also would like to remove options on the Settings dropdown box also on that panel (above the overview map)
Any tips on what code needs modifying?
Thanks
Solved! Go to Solution.
08-09-2017 06:40 AM
Hi Jane,
Basically you have two options:
1) Once you deploy your custom Portal (there's an article how to do that) and make it available in AdminConsole, just uncheck the "Panel6" in the Layouts configuration.
2) In GWMPub.aspx remove
<ext:Panel ID="Panel6" runat="server" Anchor="100%, 40%"> <LayoutConfig Type="Fit" /> <Items> <wc_core:PreviewMapPanel ID="PreviewMapPanel" runat="server" MapStateId="preview" ControllingMapStateId="map" Mode="Dynamic" ... /> </Items> </ext:Panel>
In GWMPub.aspx.cs rewrite property MapStateIds to:
protected override IDictionary<string, IMapControlContainer> MapStateIds { get { return new Dictionary<string, IMapControlContainer> { {"map", this.mapControlContainer} }; } }
Rebuild the solution.
08-09-2017 02:14 PM
Thanks! I kept removing panel6 in gwmpub.aspx but wasn't making the additional change to gwmpub.aspx.cs to remove the "preview" reference.