Python 地图扭曲且位置错误

Python 地图扭曲且位置错误,python,plotly,geojson,Python,Plotly,Geojson,我试图使用这个链接中的geojson数据,它可以在“map”键下找到。但是,当我尝试使用plotly绘制时,结果完全扭曲,并且位于错误的位置 使用此highcharts演示可以获得正确的结果 我在这里使用此代码: import plotly.graph_objects as go import json import urllib.request import random import plotly.express as px import pandas as pd def read_g

我试图使用这个链接中的geojson数据,它可以在“map”键下找到。但是,当我尝试使用plotly绘制时,结果完全扭曲,并且位于错误的位置

使用此highcharts演示可以获得正确的结果

我在这里使用此代码:

import plotly.graph_objects as go
import json
import urllib.request
import random
import plotly.express as px
import pandas as pd

def read_geojson(url):
    with urllib.request.urlopen(url) as url:
        jdata = json.loads(url.read().decode())
    return jdata['map']

irish_url = 'https://www.nordpoolgroup.com/api/map/775/geojson/'

geojson = read_geojson(irish_url)

features = geojson['features']
locations =  [item['properties']['name'] for item in features] 
z = [random.randint(0,10) for _ in locations]


fig = go.Figure(go.Choroplethmapbox(geojson=geojson, locations=locations,z=z, featureidkey='properties.name',
                                    colorscale='Cividis',zmin=0,zmax=17,
                                    marker_opacity=0.5, marker_line_width=0))
fig.update_geos(visible=False)
fig.update_layout(mapbox_style="carto-positron", margin={"r":0,"t":0,"l":0,"b":0})
fig.show()
我做错了什么