弹出时间戳EdgeoJSON

2024-05-18 15:46:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试为弹出窗口使用可变图像。图像链接更改每个颊“for”

image = https://photos.marinetraffic.com/ais/showphoto.aspx?photoid=2633134
 feature = {
        'type': 'Feature',
        'geometry': {
            'type':'Point',
            'coordinates':[row['lon'],row['lat']]
        },
        'properties': {
            'time': pd.to_datetime(row['date']).__str__(),
            'popup': "<iframe src=" + {image}.__str__() + "height='250'/>",
            'style': {'color' : ''},
            'icon': 'circle',
            'iconstyle':{
                'fillColor': row['fillColor'],
                'fillOpacity': 0.8,
                'radius': 5
            }

但我不能让它工作,有什么想法吗

Error: Not allowed to load local resource: file:///C:/Users/...

Tags: tohttps图像imagecomfor链接type

热门问题