First of all, if you want to render a static map, you will need to build one:
use Ivory\GoogleMap\Map;
$map = new Map();
Then, you can manipulate it as explained in the library documentation.
You can configure some global options related to the API in order to update its behavior.
The API key allows you to bypass Google limitation according to your account plan:
ivory_google_map:
static_map:
api_key: ~
The API secret allows you to sign your request (even without Premium account):
ivory_google_map:
static_map:
business_acount:
secret: ~
The business account allows you to use Google Premium account:
ivory_google_map:
static_map:
business_acount:
client_id: ~
secret: ~
channel: ~
Once, your map is ready to be rendered, you should rely on the built-in helpers allowing you to easily render your map according to your templating engine.
If you're using Twig, the most easy way to render a map is:
<img src="{{ ivory_google_map_static(map) }}" />