Skip to main content
better
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

I incorporated this addMarker function into my app and it showed the list of articles in the info window (though the articles don't have "links"). So I "tweaked" articles (specifically articles; changed
return jsonify(lookup(request.args.get("geo"))) and got a similar result to yours
return jsonify([lookup(request.args.get("geo"))]) .
In other words, (3 "• undefined")added another level of "list" with []. Perhaps the problem is inIt gave the articles route?same result you are seeing.

I incorporated this addMarker function into my app and it showed the list of articles in the info window (though the articles don't have "links"). So I "tweaked" articles (specifically return jsonify("geo") and got a similar result to yours, (3 "• undefined"). Perhaps the problem is in the articles route?

I incorporated this addMarker function into my app and it showed the list of articles in the info window (though the articles don't have "links"). So I "tweaked" articles; changed
return jsonify(lookup(request.args.get("geo"))) to
return jsonify([lookup(request.args.get("geo"))]) .
In other words, added another level of "list" with []. It gave the same result you are seeing.

Post Undeleted by DinoCoderSaurus
exercising my prerogative
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

I forget where I foundincorporated this addMarker function into my app and it showed the list of articles in the info window (on a CS50 forum orthough the internet-at-largearticles don't have "links"), but the problem is here showInfo(marker, tmp.innerHTML);. It'sSo I "tweaked" articles (like) a scope problem. Change it tospecifically showInfo(this,return tmp.innerHTMLjsonify("geo");. I will continue and got a similar result to search for my original sourceyours, and (hopefully3 "• undefined") update this answer with a reference. Perhaps the problem is in the articles route?

I forget where I found it (on a CS50 forum or the internet-at-large), but the problem is here showInfo(marker, tmp.innerHTML);. It's (like) a scope problem. Change it to showInfo(this, tmp.innerHTML);. I will continue to search for my original source, and (hopefully) update this answer with a reference.

I incorporated this addMarker function into my app and it showed the list of articles in the info window (though the articles don't have "links"). So I "tweaked" articles (specifically return jsonify("geo") and got a similar result to yours, (3 "• undefined"). Perhaps the problem is in the articles route?

Post Deleted by DinoCoderSaurus
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

I forget where I found it (on a CS50 forum or the internet-at-large), but the problem is here showInfo(marker, tmp.innerHTML);. It's (like) a scope problem. Change it to showInfo(this, tmp.innerHTML);. I will continue to search for my original source, and (hopefully) update this answer with a reference.