SuperMap.Connector.Map.GetEntireImage C# (CSharp) Method

GetEntireImage() public method

获取地图的全幅显示图片。
public GetEntireImage ( string mapName, MapParameter mapParameter, ImageOutputOption imageOutputOption ) : MapImage
mapName string 地图名称。
mapParameter SuperMap.Connector.Utility.MapParameter 地图参数。
imageOutputOption SuperMap.Connector.Utility.ImageOutputOption 图片输出设置。
return SuperMap.Connector.Utility.MapImage
        public MapImage GetEntireImage(string mapName, MapParameter mapParameter, ImageOutputOption imageOutputOption)
        {
            return _mapProvider.GetEntireImage(mapName, mapParameter, imageOutputOption);
        }

Same methods

Map::GetEntireImage ( string mapName, string layerName, MapParameter mapParameter, ImageOutputOption imageOutputOption ) : MapImage

Usage Example

コード例 #1
0
        public void GetEntireImageTest_Error()
        {
            Map map = new Map("http://" + ip + ":8090/iserver/services/map-world/rest");
            string mapName = "";

            ImageOutputOption option = new ImageOutputOption();
            option.ImageOutputFormat = ImageOutputFormat.PNG;
            option.ImageReturnType = ImageReturnType.URL;
            MapImage image = null;
            try
            {
                image = map.GetEntireImage(mapName, string.Empty, new MapParameter(), option);
            }
            catch (ArgumentNullException e)
            {
                Assert.AreEqual(e.Message, "参数不能为空。\r\n参数名: mapName");
            }
        }
All Usage Examples Of SuperMap.Connector.Map::GetEntireImage