[x] 1. I have a list filled with text, ie ['text1', 'text2', 'text3']
[x] 2. If I use only one item from the list with the infobox parameter then, as expected, an infobox containing that single text is attached to each marker.
[ ] 3. However, if I use the entire list with the infobox parameter, the map doesn't load at all.
See my code from views.py
@app.route('/')
@app.route('/index', methods=['GET', 'POST'])
@login_required
def index():
coords = pickle.load(open("coordinates.p", "rb"))
addresses = pickle.load(open("addresses.p", "rb"))
mymap = Map(
identifier="view-side",
style="height:100%; width:100%; left:0; position:absolute;z-index:200;",
lat=coords[0][0],
lng=coords[0][1],
zoom='5',
infobox=addresses, # does not work, but if I change it to addresses[0] it works with out issue
markers=coords
)
return render_template('index.html', mymap=mymap)
See my code from views.py