pub struct StaticMapBuilder { /* private fields */ }
Expand description

Builder for StaticMap.

Implementations

Create a new builder with defaults.

Image width, in pixels. Default is 300.

Image height, in pixels. Default is 300.

Padding between map features and edge of map in x and y direction. Default is (0, 0).

Map zoom, usually between 1-17. Determined based on map features if not specified.

Latitude center of the map. Determined based on map features if not specified.

Longitude center of the map. Determined based on map features if not specified.

URL template, e.g. “https://example.com/{z}/{x}/{y}.png”. Default is “https://a.tile.osm.org/{z}/{x}/{y}.png”.

Tile size, in pixels. Default is 256.

Consumes the builder.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.