protected override MapLayer CreateMapObject(int index)
 {
     AspNetCore.ReportingServices.ReportIntermediateFormat.MapLayer mapLayer = this.m_map.MapDef.MapLayers[index];
     if (mapLayer is AspNetCore.ReportingServices.ReportIntermediateFormat.MapTileLayer)
     {
         return(new MapTileLayer((AspNetCore.ReportingServices.ReportIntermediateFormat.MapTileLayer)mapLayer, this.m_map));
     }
     if (mapLayer is AspNetCore.ReportingServices.ReportIntermediateFormat.MapPolygonLayer)
     {
         return(new MapPolygonLayer((AspNetCore.ReportingServices.ReportIntermediateFormat.MapPolygonLayer)mapLayer, this.m_map));
     }
     if (mapLayer is AspNetCore.ReportingServices.ReportIntermediateFormat.MapPointLayer)
     {
         return(new MapPointLayer((AspNetCore.ReportingServices.ReportIntermediateFormat.MapPointLayer)mapLayer, this.m_map));
     }
     if (mapLayer is AspNetCore.ReportingServices.ReportIntermediateFormat.MapLineLayer)
     {
         return(new MapLineLayer((AspNetCore.ReportingServices.ReportIntermediateFormat.MapLineLayer)mapLayer, this.m_map));
     }
     return(null);
 }
        public virtual object PublishClone(AutomaticSubtotalContext context)
        {
            MapLayer mapLayer = (MapLayer)base.MemberwiseClone();

            mapLayer.m_map = context.CurrentMapClone;
            if (this.m_visibilityMode != null)
            {
                mapLayer.m_visibilityMode = (ExpressionInfo)this.m_visibilityMode.PublishClone(context);
            }
            if (this.m_minimumZoom != null)
            {
                mapLayer.m_minimumZoom = (ExpressionInfo)this.m_minimumZoom.PublishClone(context);
            }
            if (this.m_maximumZoom != null)
            {
                mapLayer.m_maximumZoom = (ExpressionInfo)this.m_maximumZoom.PublishClone(context);
            }
            if (this.m_transparency != null)
            {
                mapLayer.m_transparency = (ExpressionInfo)this.m_transparency.PublishClone(context);
            }
            return(mapLayer);
        }
 public MapLayer(AspNetCore.ReportingServices.ReportIntermediateFormat.MapLayer defObject, Map map)
 {
     this.m_defObject = defObject;
     this.m_map       = map;
 }
Example #4
0
 public override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
 {
     if (base.ExprHostID >= 0)
     {
         Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
         this.m_exprHost = reportExprHost.MapHostsRemotable[base.ExprHostID];
         base.ReportItemSetExprHost(this.m_exprHost, reportObjectModel);
         if (this.m_mapViewport != null && this.m_exprHost.MapViewportHost != null)
         {
             this.m_mapViewport.SetExprHost(this.m_exprHost.MapViewportHost, reportObjectModel);
         }
         IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = this.m_exprHost.MapPolygonLayersHostsRemotable;
         IList <MapPointLayerExprHost>   mapPointLayersHostsRemotable   = this.m_exprHost.MapPointLayersHostsRemotable;
         IList <MapLineLayerExprHost>    mapLineLayersHostsRemotable    = this.m_exprHost.MapLineLayersHostsRemotable;
         IList <MapTileLayerExprHost>    mapTileLayersHostsRemotable    = this.m_exprHost.MapTileLayersHostsRemotable;
         if (this.m_mapLayers != null)
         {
             for (int i = 0; i < this.m_mapLayers.Count; i++)
             {
                 MapLayer mapLayer = this.m_mapLayers[i];
                 if (mapLayer != null && mapLayer.ExpressionHostID > -1)
                 {
                     if (mapLayer is MapPolygonLayer)
                     {
                         if (mapPolygonLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapPolygonLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapPointLayer)
                     {
                         if (mapPointLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapPointLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapLineLayer)
                     {
                         if (mapLineLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapLineLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapTileLayer && mapTileLayersHostsRemotable != null)
                     {
                         mapLayer.SetExprHost(mapTileLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                     }
                 }
             }
         }
         IList <MapLegendExprHost> mapLegendsHostsRemotable = this.m_exprHost.MapLegendsHostsRemotable;
         if (this.m_mapLegends != null && mapLegendsHostsRemotable != null)
         {
             for (int j = 0; j < this.m_mapLegends.Count; j++)
             {
                 MapLegend mapLegend = this.m_mapLegends[j];
                 if (mapLegend != null && mapLegend.ExpressionHostID > -1)
                 {
                     mapLegend.SetExprHost(mapLegendsHostsRemotable[mapLegend.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <MapTitleExprHost> mapTitlesHostsRemotable = this.m_exprHost.MapTitlesHostsRemotable;
         if (this.m_mapTitles != null && mapTitlesHostsRemotable != null)
         {
             for (int k = 0; k < this.m_mapTitles.Count; k++)
             {
                 MapTitle mapTitle = this.m_mapTitles[k];
                 if (mapTitle != null && mapTitle.ExpressionHostID > -1)
                 {
                     mapTitle.SetExprHost(mapTitlesHostsRemotable[mapTitle.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         if (this.m_mapDistanceScale != null && this.m_exprHost.MapDistanceScaleHost != null)
         {
             this.m_mapDistanceScale.SetExprHost(this.m_exprHost.MapDistanceScaleHost, reportObjectModel);
         }
         if (this.m_mapColorScale != null && this.m_exprHost.MapColorScaleHost != null)
         {
             this.m_mapColorScale.SetExprHost(this.m_exprHost.MapColorScaleHost, reportObjectModel);
         }
         if (this.m_mapBorderSkin != null && this.m_exprHost.MapBorderSkinHost != null)
         {
             this.m_mapBorderSkin.SetExprHost(this.m_exprHost.MapBorderSkinHost, reportObjectModel);
         }
         if (this.m_action != null && this.m_exprHost.ActionInfoHost != null)
         {
             this.m_action.SetExprHost(this.m_exprHost.ActionInfoHost, reportObjectModel);
         }
         if (this.m_pageBreak != null && this.m_exprHost.PageBreakExprHost != null)
         {
             this.m_pageBreak.SetExprHost(this.m_exprHost.PageBreakExprHost, reportObjectModel);
         }
     }
 }