Open eruiz67 opened 1 year ago
Hello @eruiz67
the zoom should be determined automatically - in Your case it is calculated to 15.
Instead, you can set the zoom "manually" with context.set_zoom()
, e.g.
...
staticmaps.context.add_object(
staticmaps.Area(
[staticmaps.create_latlng(lat, lng) for lat, lng in polygon],
fill_color=staticmaps.parse_color("#00FF003F"),
width=2,
color=staticmaps.BLUE,
)
)
staticmaps.context.set_zoom(17)
...
Cheers, LT
Im trayin to represent a polygon in the map. But when I do so, The size of the polygon in the map is so little. I need a way to define a bounding box in the map, or a zoom level, so I can the the polygon bigger.
Here is the code: