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.
Mostrar archivo Open project: ericnewton76/gmaps-api-net

Public Properties

Property Type Description
HttpUri System.Uri
HttpsUri System.Uri

Public Methods

Method 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 method

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

GetMap() public method

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
return byte[]

GetMap() public method

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
return byte[]

GetMap() public method

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
return byte[]

GetMapToStream() public method

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
return int

GetMapWithCenterMarked() public method

public GetMapWithCenterMarked ( Location center, int zoom, bool sensor ) : byte[]
center Location
zoom int
sensor bool
return byte[]

StaticMapService() public method

public StaticMapService ( ) : System
return System

StaticMapService() public method

public StaticMapService ( Uri baseUri ) : System
baseUri System.Uri
return System

Property Details

HttpUri public_oe static_oe property

public static Uri,System HttpUri
return System.Uri

HttpsUri public_oe static_oe property

public static Uri,System HttpsUri
return System.Uri