Hi,
I want to show only polygons of my geojson data on the map and don’t want to show any lines, names of palces on the mapbox map. I want nothing in the background. I tried style = 'white-bg'
option in go.layout.Mapbox()
but it is concealing everything under white layer. When I mouse over on the map, the tooltip is getting showed but not any polygons and markers.
The code below:
`
traces.append(go.Scattermapbox(
lat=d_frame['Lat'],
lon=d_frame['Lng'],
mode='markers',
marker=go.scattermapbox.Marker(
size=11,
color='#e65c00'
),
text=d_frame['Service']
))
layout = dict(
title='Service Locations',
autosize=True,
height=900,
#width='100%',
hovermode='closest',
showlegend=False,
mapbox=go.layout.Mapbox(
accesstoken=mapbox_access_token,
style='white-bg',
bearing=0,
layers=[
dict(
below='water',
sourcetype='geojson',
source=j_file,
type='fill',
color='#dadce0',
opacity=1),
dict(
below="water",
sourcetype='geojson',
source=j_file,
type='line',
color='#000000', #black
line=dict(width=0.5)),
`
Where am I getting wrong? Please help me. Thanks for your time and help.