Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for k in range(len(geo_data['features'])):
- county_coords=np.array(geo_data['features'][k]['geometry']['coordinates'][0])
- m, M =county_coords[:,0].min(), county_coords[:,0].max()
- lons.append(0.5*(m+M))
- m, M =county_coords[:,1].min(), county_coords[:,1].max()
- lats.append(0.5*(m+M))
- data = [dict(type='scattermapbox',
- lat=lats,
- lon=lons,
- mode='markers',
- text=text_win,
- marker=dict(size=1, color='white'),
- showlegend=False,
- hoverinfo='text'
- )]
- for a in range(1,len(text_list)):
- data.append(dict(type='scattermapbox',
- lat=lats,
- lon=lons,
- mode='markers',
- text=text_list[a],
- marker=dict(size=1, color='white'),
- showlegend=False,
- hoverinfo='text'
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement