this will help I have two textblocks and they are after each other on the page - name & surname. I am binding data to this so the size depends of the length of them. What's the best way to do them working with variable size?
To fix this issue Here is an example of an input file: , Here's a start:
import os, re
path = 'C:/Temp/Folder1/allTexts'
listing = os.listdir(path)
for infile in listing:
text = open(path + '/' + infile).read()
match = re.search('<div id="text-interesting1">', text)
if match is None:
start = match.start()
end = re.search('<div id="text-interesting2">', text).start()
loop through an array one time to populate an iFrame then go to another page when loop is finished
help you fix your problem The html option of your numberIcon object is assigned the value of number at creation, i.e. before your loop. So html is undefined. This assignment is not re-evaluated later on, so it remains at undefined, no matter what the variable number becomes. You could try re-assigning directly the html option within your loop (numberIcon.options.html = '11'), so that if your marker creates its icon right away, it will use an updated value of html. However, as pointed out by user 6502, all your markers now use the exact same icon object. So if for some reason, one of the marker needs to re-create its icon element (this happens for example when the marker is removed from map and added back), it will read the last value of html, which is probably not what you want.
How to loop thorugh mongoDB with a promise and a forEach loop? I want to populate an Array