page_type | languages | products | |||
---|---|---|---|---|---|
sample |
|
|
These code samples show common scenario operations with the Azure Maps Render client library.
Authenticate the client with a Azure Maps Render API Key Credential:
samples authentication (async version)
Then for common Azure Maps Render operations:
-
Perform Get Map tile: sample_get_map_tile.py (async version)
-
Perform Get Map tileset: sample_get_map_tileset.py (async version)
-
Perform Get Map static image: sample_get_map_static_image.py (async version)
-
Perform Get Map Attribution: sample_get_map_attribution.py (async version)
-
Perform Get Copyright from bounding box: sample_get_copyright_from_bounding_box.py (async version)
-
Perform Get Copyright fpr world: sample_get_copyright_for_world.py (async version)
-
Perform Get Copyright for tile: sample_get_copyright_for_tile.py (async version)
-
Perform Get Copyright caption: sample_get_copyright_caption.py (async version)
- Python 3.8 or later is required to use this package
- You must have an Azure subscription
- A deployed Maps Services resource. You can create the resource via Azure Portal or Azure CLI.
-
Install the Azure Maps Render client library for Python with pip:
pip install azure-maps-render --pre
-
Clone or download this repository
-
Open this sample folder in Visual Studio Code or your IDE of choice.
- Open a terminal window and
cd
to the directory that the samples are saved in. - Set the environment variables specified in the sample file you wish to run.
- Follow the usage described in the file, e.g.
python sample_get_map_tile.py
Check out the API reference documentation to learn more about what you can do with the Azure Maps Render client library.