Usage
Basic Options
Generate a static map with basic options.
Widgets
The SDK provides two widgets for generating static maps: StaticMapImage
and StaticMapBuilder
.
Make sure the SDK has been initialized before using one of the widgets below.
StaticMapImage
To generate a static map, use the StaticMapImage
widget. You can customize the map by passing in various parameters, such as the center, zoom level, and markers.
The code above will generate the following static map:
StaticMapBuilder
The StaticMapBuilder
widget generates an url you can use in a child widget of your choice. This is useful if you want to use a different widget than the built-in StaticMap
widget.
The static map builder will provide the following url
parameter: