C# Класс Google.Maps.StaticMaps.StaticMapService

The Google Static Maps API lets you embed a Google Maps image on your web page without requiring JavaScript or any dynamic page loading. The Google Static Map service creates your map based on URL parameters sent through a standard HTTP request and returns the map as an image you can display on your web page.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
HttpUri System.Uri
HttpsUri System.Uri

Открытые методы

Метод Описание
GetImageBytes ( StaticMapRequest mapOptions ) : byte[]

Retrieves a map and returns back the image bytes

GetMap ( Location center, int zoom, GMapsImageFormats imageFormat, bool sensor ) : byte[]

Retrieves a static map image at a default size of 512x512 and using the specified image format.

GetMap ( Location center, int zoom, System size, GMapsImageFormats imageFormat, bool sensor ) : byte[]

Retrieves a static map image at a default size of 512x512 and using the specified image format.

GetMap ( Location center, int zoom, bool sensor ) : byte[]

Retrieves a static map image at a default size of 512x512 with the given parameters.

GetMapToStream ( StaticMapRequest mapOptions, System outputStream ) : int

Retrieves the map with the given request and writes the image bytes to the given target stream.

GetMapWithCenterMarked ( Location center, int zoom, bool sensor ) : byte[]
StaticMapService ( ) : System
StaticMapService ( Uri baseUri ) : System

Описание методов

GetImageBytes() публичный Метод

Retrieves a map and returns back the image bytes
public GetImageBytes ( StaticMapRequest mapOptions ) : byte[]
mapOptions StaticMapRequest
Результат byte[]

GetMap() публичный Метод

Retrieves a static map image at a default size of 512x512 and using the specified image format.
public GetMap ( Location center, int zoom, GMapsImageFormats imageFormat, bool sensor ) : byte[]
center Location A location to center the map on
zoom int Zoom level to use
imageFormat GMapsImageFormats The format of the image
sensor bool Pass true if the location was provided via a sensor
Результат byte[]

GetMap() публичный Метод

Retrieves a static map image at a default size of 512x512 and using the specified image format.
public GetMap ( Location center, int zoom, System size, GMapsImageFormats imageFormat, bool sensor ) : byte[]
center Location A location to center the map on
zoom int Zoom level to use
size System
imageFormat GMapsImageFormats The format of the image
sensor bool Pass true if the location was provided via a sensor
Результат byte[]

GetMap() публичный Метод

Retrieves a static map image at a default size of 512x512 with the given parameters.
public GetMap ( Location center, int zoom, bool sensor ) : byte[]
center Location
zoom int
sensor bool
Результат byte[]

GetMapToStream() публичный Метод

Retrieves the map with the given request and writes the image bytes to the given target stream.
public GetMapToStream ( StaticMapRequest mapOptions, System outputStream ) : int
mapOptions StaticMapRequest
outputStream System
Результат int

GetMapWithCenterMarked() публичный Метод

public GetMapWithCenterMarked ( Location center, int zoom, bool sensor ) : byte[]
center Location
zoom int
sensor bool
Результат byte[]

StaticMapService() публичный Метод

public StaticMapService ( ) : System
Результат System

StaticMapService() публичный Метод

public StaticMapService ( Uri baseUri ) : System
baseUri System.Uri
Результат System

Описание свойств

HttpUri публичное статическое свойство

public static Uri,System HttpUri
Результат System.Uri

HttpsUri публичное статическое свойство

public static Uri,System HttpsUri
Результат System.Uri