New answers tagged

2

It's possible via combination of three informations All layers inherit from class Layer https://github.com/python-visualization/folium/blob/master/folium/map.py#L30 and one of the option states the following control : bool, default True Whether the Layer will be included in LayerControls. You can set the tiles to None to not add automatically the ...


1

The problem is with draft.crs = {'init' : 'epsg:3857'} It does not transform the coordinates of your polygon. Simply sets the crs. Instead you need to explicitly transform coordinates of your polygon using pyproj Transformer.transform function to convert the projected coordinate system or better use to_crs function of geopandas as shown. import folium map = ...


Top 50 recent answers are included