C# Class Google.Maps.StaticMaps.StaticMapRequest

The Google Static Maps API returns an image (either GIF, PNG or JPEG) in response to a HTTP request via a URL. For each request, you can specify the location of the map, the size of the image, the zoom level, the type of map, and the placement of optional markers at locations on the map.
Show file Open project: ericnewton76/gmaps-api-net Class Usage Examples

Public Properties

Property Type Description
BaseUri System.Uri

Public Methods

Method Description
StaticMapRequest ( ) : System
ToUri ( ) : Uri

Private Methods

Method Description
EnsureSensor ( bool throwIfNotSet ) : void
GetColorEncoded ( System.Drawing.Color color, bool useNamedColorIfPossible ) : string

The color encoding for google static maps API puts the alpha last (0xrrggbbaa) whereas .NET encodes it alpha first by default (0xaarrggbb).

GetMarkersStr ( ) : string

Builds markers uri parameter(s)

GetPathEncoded ( Path currentPath ) : string
GetPathsStr ( ) : string

Builds path uri parameter

GetVisibleStr ( ) : string

Builds visible uri parameter

Method Details

StaticMapRequest() public method

public StaticMapRequest ( ) : System
return System

ToUri() public method

public ToUri ( ) : Uri
return System.Uri

Property Details

BaseUri public static property

public static Uri,System BaseUri
return System.Uri