@Ud29 wrote:
Hello Plotly Community,
I would like to display the location of oil and gas wells over an open-street-map as markers along with static text ( well names on the map).
I have the following code:
data = [ { 'lon': longs, 'lat': lats, 'text': text, 'type': 'scattermapbox', 'mode': "markers+text", 'marker':{ 'color': '#636efa', 'size': 8, }, } ]where longs -> list of longitude points, lats-> list of latitude points -> list of Well names
layout = { 'title': 'Well locations', 'mapbox': {'style': "open-street-map", 'center': {'lat': 80, 'lon': 80},'zoom': 8}, 'autosize': False, 'margin': {"r": 0, "t": 0, "l": 0, "b": 0}, 'hovermode': 'closest', 'showlegend': False, 'height': 1080 }With this code, neither the marker points nor the text appears on the map. If I use mode as “markers” it works alright.
Could you please point me to what could be wrong with this code?
Thanks!
Posts: 3
Participants: 3







