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

GetEntireImage() public method

根据指定的图层范围获取地图的全幅显示图片。
public GetEntireImage ( string mapName, string layerName, MapParameter mapParameter, ImageOutputOption imageOutputOption ) : MapImage
mapName string 地图名称。
layerName string 指定图层,以该图层内容的最小外接矩形作为全幅显示的地理范围。
mapParameter SuperMap.Connector.Utility.MapParameter 地图参数。
imageOutputOption SuperMap.Connector.Utility.ImageOutputOption 图片输出设置。
return SuperMap.Connector.Utility.MapImage
        public MapImage GetEntireImage(string mapName, string layerName, MapParameter mapParameter, ImageOutputOption imageOutputOption)
        {
            return _mapProvider.GetEntireImage(mapName, layerName, mapParameter, imageOutputOption);
        }

Same methods

Map::GetEntireImage ( string mapName, 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