Choropleth map in dash

@chris-ssg Here is an example of a map with two filled regions, as for a choropleth: https://plot.ly/~empet/14398
If you want to hide the points, just color them with the same color used in the filled region, and set a small size. Then the point will not be displayed, but on hover its lon and lat will be shown:

 data=[ dict(type='scattermapbox',
            lat= lat,
            lon=lon,
            mode='markers',
            text=regions,
            marker=dict(size=0.5, color= '#a490bd'),
            showlegend=False,
            hoverinfo='text'
            )]
layers=[dict(sourcetype = 'geojson',
                   source =shape,
                   below="water", 
                   type = 'fill',   
                   color = '#a490bd',
                   opacity=0.8
   )      ]
1 Like