标记的bindPopup方法仅将HTML内容作为字符串,因此您还需要在标记周围加上引号-类似于
marker1.bindPopup( "<img src=" + icon_url + "/> Current temperature in " + location + " is: " + temp_f)
应该为您工作。

标记的bindPopup方法仅将HTML内容作为字符串,因此您还需要在标记周围加上引号-类似于
marker1.bindPopup( "<img src=" + icon_url + "/> Current temperature in " + location + " is: " + temp_f)
应该为您工作。