C# Class 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.
Afficher le fichier Open project: ericnewton76/gmaps-api-net

Méthodes publiques

Свойство Type Description
HttpUri System.Uri
HttpsUri System.Uri

Méthodes publiques

Méthode Description
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

Method Details

GetImageBytes() public méthode

Retrieves a map and returns back the image bytes
public GetImageBytes ( StaticMapRequest mapOptions ) : byte[]
mapOptions StaticMapRequest
Résultat byte[]

GetMap() public méthode

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
Résultat byte[]

GetMap() public méthode

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
Résultat byte[]

GetMap() public méthode

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
Résultat byte[]

GetMapToStream() public méthode

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
Résultat int

GetMapWithCenterMarked() public méthode

public GetMapWithCenterMarked ( Location center, int zoom, bool sensor ) : byte[]
center Location
zoom int
sensor bool
Résultat byte[]

StaticMapService() public méthode

public StaticMapService ( ) : System
Résultat System

StaticMapService() public méthode

public StaticMapService ( Uri baseUri ) : System
baseUri System.Uri
Résultat System

Property Details

HttpUri public_oe static_oe property

public static Uri,System HttpUri
Résultat System.Uri

HttpsUri public_oe static_oe property

public static Uri,System HttpsUri
Résultat System.Uri