I have a bunch of images that are being rendered using dbc.Carousel. The images are saved as a list of dicts that are iterated over and displayed in the carousel. Snippet of code below:
img_dict = ast.literal_eval(img_dict)
# Add labels for carousel items property
img_list = []
for key, values in img_dict.items():
for v in values:
img_dict1 = {"key": c, "src": v, "img_style": {"width": "300px", "height": "300px"}}
img_list.append(img_dict1)
carousel = dbc.Carousel(
items=img_list,
controls=True,
indicators=True
)
I’d like to embed google streetview map instead of images. Specifically, streetview mode from the documentation here: Embedding a map | Maps Embed API | Google Developers
Looks something like this: Discover Street View and contribute your own imagery to Google Maps.
Does dbc.Carousel support this?
2 posts - 1 participant









