Map Container Not Found - No Matter What I Do

2 posts / 0 new
Last post
jb0925
Map Container Not Found - No Matter What I Do

Hi, I am working on an application where, on the server side I am rendering data from a database (in Python). I'd like each of these divs to get a map. I've found the example code and tested it out independently from my project in a separate file just to get a feel for it. Everything worked perfectly. However, with my current project, when I run a forEach (there are five divs that need a map), I consistently get "Map Container not found", even though I can put in a "console.log()" of the element itself in my function and it returns as expected. 
Long story short, is it possible to render these maps dynamically? As in, content that gets appended to the DOM? Thanks for your time.

 

 

 

 

 

 


jb0925
Figured it out:

I was selecting by class instead of id. Oi.