Ipyleafleat
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import ipyleaflet
import leafmap
import ipyleaflet
In [3]:
Copied!
from ipyleaflet import Map, basemaps, basemap_to_tiles
m = Map(
basemap=basemap_to_tiles(basemaps.NASAGIBS.ModisTerraTrueColorCR, "2017-04-08"),
center=(52.204793, 360.121558),
zoom=4
)
m
from ipyleaflet import Map, basemaps, basemap_to_tiles
m = Map(
basemap=basemap_to_tiles(basemaps.NASAGIBS.ModisTerraTrueColorCR, "2017-04-08"),
center=(52.204793, 360.121558),
zoom=4
)
m
In [4]:
Copied!
#m.clear_layers() #clears layers above
#m.clear_layers() #clears layers above
In [5]:
Copied!
from ipyleaflet import Map, basemaps, basemap_to_tiles
m = Map(
basemap=basemap_to_tiles(basemaps.OpenTopoMap),
center=(52.204793, 360.121558),
zoom=4
)
m
from ipyleaflet import Map, basemaps, basemap_to_tiles
m = Map(
basemap=basemap_to_tiles(basemaps.OpenTopoMap),
center=(52.204793, 360.121558),
zoom=4
)
m
In [6]:
Copied!
import leafmap
import leafmap
In [7]:
Copied!
m = leafmap.Map()
m
m = leafmap.Map()
m
In [8]:
Copied!
m = leafmap.Map()
m.add_basemap()
m
m = leafmap.Map()
m.add_basemap()
m
In [9]:
Copied!
##11_a: Adding the layers control to the map using the newly created function on geosdemo.py
import geosdemo
##11_a: Adding the layers control to the map using the newly created function on geosdemo.py
import geosdemo
In [10]:
Copied!
m = geosdemo.Map()
m
m = geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [11]:
Copied!
#Add layers control coomes inherited from ipyleaflet and created on geos demo
m.add_layers_control(layers_control = False) #tHGIS PRODUCES AN ERROR
#Add layers control coomes inherited from ipyleaflet and created on geos demo
m.add_layers_control(layers_control = False) #tHGIS PRODUCES AN ERROR
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[11], line 3 1 #Add layers control coomes inherited from ipyleaflet and created on geos demo ----> 3 m.add_layers_control(layers_control = False) #tHGIS PRODUCES AN ERROR TypeError: add_layers_control() got an unexpected keyword argument 'layers_control'
In [12]:
Copied!
m= geosdemo.Map(layers_control= False)
m
m= geosdemo.Map(layers_control= False)
m
this is what the user is providing:{'layers_control': False, 'scroll_wheel_zoom': True} {'layers_control': False, 'scroll_wheel_zoom': True} {'layers_control': False, 'scroll_wheel_zoom': True} {'layers_control': False, 'scroll_wheel_zoom': True, 'fullscreen_control': True}
In [13]:
Copied!
import geosdemo
m = geosdemo.Map() #full_Screen just works outside
import geosdemo
m = geosdemo.Map() #full_Screen just works outside
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [14]:
Copied!
m
m
In [15]:
Copied!
#Putting basemap
import geosdemo
m = geosdemo.Map(layers_control= True)
m
#Putting basemap
import geosdemo
m = geosdemo.Map(layers_control= True)
m
this is what the user is providing:{'layers_control': True, 'scroll_wheel_zoom': True} {'layers_control': True, 'scroll_wheel_zoom': True} {'layers_control': True, 'scroll_wheel_zoom': True} {'layers_control': True, 'scroll_wheel_zoom': True, 'fullscreen_control': True}
In [16]:
Copied!
#base map addition results cells above
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
import ipyleaflet
layer = ipyleaflet.TileLayer(url=url, name = "google satellite", attribution = "Google")
m.add_layer(layer)
#base map addition results cells above
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
import ipyleaflet
layer = ipyleaflet.TileLayer(url=url, name = "google satellite", attribution = "Google")
m.add_layer(layer)
In [17]:
Copied!
#using geos demo with added function
import geosdemo
#using geos demo with added function
import geosdemo
In [18]:
Copied!
m =geosdemo.Map() #this gives you the flat map
m
m =geosdemo.Map() #this gives you the flat map
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [19]:
Copied!
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
m.add_tile_layer(url=url, name='Google maps', attribution='xxxx')
url = 'http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}'
m.add_tile_layer(url=url, name='Google maps', attribution='xxxx')
In [20]:
Copied!
#road map
import geosdemo
m =geosdemo.Map()
m
#road map
import geosdemo
m =geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [21]:
Copied!
m.add_basemap("roadmap")
m.add_basemap("roadmap")
In [22]:
Copied!
m.add_basemap("satellite")
m.add_basemap("satellite")
In [23]:
Copied!
#using xyz
import xyzservices.providers as xyz
#using xyz
import xyzservices.providers as xyz
In [24]:
Copied!
xyz.Esri
xyz.Esri
Out[24]:
xyzservices.Bunch
15 items
-
xyzservices.TileProviderEsri.WorldStreetMap
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Street_Map
- html_attribution
- Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012
- attribution
- Tiles (C) Esri -- Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012
-
xyzservices.TileProviderEsri.DeLorme
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- Specialty/DeLorme_World_Base_Map
- html_attribution
- Tiles © Esri — Copyright: ©2012 DeLorme
- attribution
- Tiles (C) Esri -- Copyright: (C)2012 DeLorme
- min_zoom
- 1
- max_zoom
- 11
-
xyzservices.TileProviderEsri.WorldTopoMap
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Topo_Map
- html_attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
- attribution
- Tiles (C) Esri -- Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
-
xyzservices.TileProviderEsri.WorldImagery
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Imagery
- html_attribution
- Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
- attribution
- Tiles (C) Esri -- Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
-
xyzservices.TileProviderEsri.WorldTerrain
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Terrain_Base
- html_attribution
- Tiles © Esri — Source: USGS, Esri, TANA, DeLorme, and NPS
- attribution
- Tiles (C) Esri -- Source: USGS, Esri, TANA, DeLorme, and NPS
- max_zoom
- 13
-
xyzservices.TileProviderEsri.WorldShadedRelief
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Shaded_Relief
- html_attribution
- Tiles © Esri — Source: Esri
- attribution
- Tiles (C) Esri -- Source: Esri
- max_zoom
- 13
-
xyzservices.TileProviderEsri.WorldPhysical
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Physical_Map
- html_attribution
- Tiles © Esri — Source: US National Park Service
- attribution
- Tiles (C) Esri -- Source: US National Park Service
- max_zoom
- 8
-
xyzservices.TileProviderEsri.OceanBasemap
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- Ocean/World_Ocean_Base
- html_attribution
- Tiles © Esri — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri
- attribution
- Tiles (C) Esri -- Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri
- max_zoom
- 13
-
xyzservices.TileProviderEsri.NatGeoWorldMap
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- NatGeo_World_Map
- html_attribution
- Tiles © Esri — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC
- attribution
- Tiles (C) Esri -- National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC
- max_zoom
- 16
-
xyzservices.TileProviderEsri.WorldGrayCanvas
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- Canvas/World_Light_Gray_Base
- html_attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ
- attribution
- Tiles (C) Esri -- Esri, DeLorme, NAVTEQ
- max_zoom
- 16
-
xyzservices.TileProviderEsri.ArcticImagery
- url
- http://server.arcgisonline.com/ArcGIS/rest/services/Polar/Arctic_Imagery/MapServer/tile/{z}/{y}/{x}
- variant
- Arctic_Imagery
- html_attribution
- Earthstar Geographics
- attribution
- Earthstar Geographics
- max_zoom
- 24
- crs
- EPSG:5936
- bounds
- [[-2623285.8808999993, -2623285.8808999993], [6623285.8803, 6623285.8803]]
-
xyzservices.TileProviderEsri.ArcticOceanBase
- url
- http://server.arcgisonline.com/ArcGIS/rest/services/Polar/Arctic_Ocean_Base/MapServer/tile/{z}/{y}/{x}
- variant
- Arctic_Ocean_Base
- html_attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
- attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
- max_zoom
- 24
- crs
- EPSG:5936
- bounds
- [[-2623285.8808999993, -2623285.8808999993], [6623285.8803, 6623285.8803]]
-
xyzservices.TileProviderEsri.ArcticOceanReference
- url
- http://server.arcgisonline.com/ArcGIS/rest/services/Polar/Arctic_Ocean_Reference/MapServer/tile/{z}/{y}/{x}
- variant
- Arctic_Ocean_Reference
- html_attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
- attribution
- Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community
- max_zoom
- 24
- crs
- EPSG:5936
- bounds
- [[-2623285.8808999993, -2623285.8808999993], [6623285.8803, 6623285.8803]]
-
xyzservices.TileProviderEsri.AntarcticImagery
- url
- http://server.arcgisonline.com/ArcGIS/rest/services/Polar/Antarctic_Imagery/MapServer/tile/{z}/{y}/{x}
- variant
- Antarctic_Imagery
- html_attribution
- Earthstar Geographics
- attribution
- Earthstar Geographics
- max_zoom
- 24
- crs
- EPSG:3031
- bounds
- [[-9913957.327914657, -5730886.461772691], [9913957.327914657, 5730886.461773157]]
-
xyzservices.TileProviderEsri.AntarcticBasemap
- url
- https://tiles.arcgis.com/tiles/C8EMgrsFcRFL6LrL/arcgis/rest/services/Antarctic_Basemap/MapServer/tile/{z}/{y}/{x}
- variant
- Antarctic_Basemap
- html_attribution
- Imagery provided by NOAA National Centers for Environmental Information (NCEI); International Bathymetric Chart of the Southern Ocean (IBCSO); General Bathymetric Chart of the Oceans (GEBCO).
- attribution
- Imagery provided by NOAA National Centers for Environmental Information (NCEI); International Bathymetric Chart of the Southern Ocean (IBCSO); General Bathymetric Chart of the Oceans (GEBCO).
- max_zoom
- 9
- crs
- EPSG:3031
- bounds
- [[-4524583.19363305, -4524449.487765655], [4524449.4877656475, 4524583.193633042]]
In [25]:
Copied!
xyz.Esri.WorldImagery
xyz.Esri.WorldImagery
Out[25]:
xyzservices.TileProvider
Esri.WorldImagery
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Imagery
- html_attribution
- Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
- attribution
- Tiles (C) Esri -- Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
In [26]:
Copied!
xyz.Esri.WorldImagery.build_url()
xyz.Esri.WorldImagery.build_url()
Out[26]:
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'
In [27]:
Copied!
url = xyz.Esri.WorldImagery.build_url()
m.add_tile_layer(url=url, name='Esri', attribution='xxxx')
m
url = xyz.Esri.WorldImagery.build_url()
m.add_tile_layer(url=url, name='Esri', attribution='xxxx')
m
In [28]:
Copied!
xyz.Esri.WorldImagery
'xyz.Esri.WorldImagery'#string
xyz.Esri.WorldImagery
'xyz.Esri.WorldImagery'#string
Out[28]:
'xyz.Esri.WorldImagery'
In [29]:
Copied!
eval('xyz.Esri.WorldImagery')
eval('xyz.Esri.WorldImagery')
Out[29]:
xyzservices.TileProvider
Esri.WorldImagery
- url
- https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}
- variant
- World_Imagery
- html_attribution
- Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
- attribution
- Tiles (C) Esri -- Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community
In [30]:
Copied!
eval('xyz.Esri.WorldImagery jsjsj') #makes sense because jsjs is not part of the library
eval('xyz.Esri.WorldImagery jsjsj') #makes sense because jsjs is not part of the library
Traceback (most recent call last): File ~/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code exec(code_obj, self.user_global_ns, self.user_ns) Cell In[30], line 1 eval('xyz.Esri.WorldImagery jsjsj') #makes sense because jsjs is not part of the library File <string>:1 xyz.Esri.WorldImagery jsjsj ^ SyntaxError: unexpected EOF while parsing
In [31]:
Copied!
import geosdemo
m = geosdemo.Map()
m
import geosdemo
m = geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [32]:
Copied!
m.add_basemap('Esri.WorldImagery')
m.add_basemap('Esri.WorldImagery')
In [33]:
Copied!
#what there is inside
xyz.keys()
#what there is inside
xyz.keys()
Out[33]:
dict_keys(['OpenStreetMap', 'MapTilesAPI', 'OpenSeaMap', 'OPNVKarte', 'OpenTopoMap', 'OpenRailwayMap', 'OpenFireMap', 'SafeCast', 'Stadia', 'Thunderforest', 'CyclOSM', 'Jawg', 'MapBox', 'MapTiler', 'Stamen', 'TomTom', 'Esri', 'OpenWeatherMap', 'HERE', 'HEREv3', 'FreeMapSK', 'MtbMap', 'CartoDB', 'HikeBike', 'BasemapAT', 'nlmaps', 'NASAGIBS', 'NLS', 'JusticeMap', 'GeoportailFrance', 'OneMapSG', 'USGS', 'WaymarkedTrails', 'OpenAIP', 'OpenSnowMap', 'AzureMaps', 'SwissFederalGeoportal', 'Gaode', 'Strava'])
In [34]:
Copied!
xyz.Esri.keys()
xyz.Esri.keys()
Out[34]:
dict_keys(['WorldStreetMap', 'DeLorme', 'WorldTopoMap', 'WorldImagery', 'WorldTerrain', 'WorldShadedRelief', 'WorldPhysical', 'OceanBasemap', 'NatGeoWorldMap', 'WorldGrayCanvas', 'ArcticImagery', 'ArcticOceanBase', 'ArcticOceanReference', 'AntarcticImagery', 'AntarcticBasemap'])
In [35]:
Copied!
m.add_basemap('Esri.NatGeoWorldMap')
m
m.add_basemap('Esri.NatGeoWorldMap')
m
In [36]:
Copied!
import xyzservices.providers as xyz
xyz.CartoDB.keys()
import xyzservices.providers as xyz
xyz.CartoDB.keys()
Out[36]:
dict_keys(['Positron', 'PositronNoLabels', 'PositronOnlyLabels', 'DarkMatter', 'DarkMatterNoLabels', 'DarkMatterOnlyLabels', 'Voyager', 'VoyagerNoLabels', 'VoyagerOnlyLabels', 'VoyagerLabelsUnder'])
In [37]:
Copied!
m.add_basemap('CartoDB.DarkMatter')
m
m.add_basemap('CartoDB.DarkMatter')
m
In [38]:
Copied!
#geojson
import geosdemo
import leafmap
m = geosdemo.Map()
m
#geojson
import geosdemo
import leafmap
m = geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [39]:
Copied!
#dOWNLOADING MISSING DATA
# links = [
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/countries.cpg',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.dbf',
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/countries.prj',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.shp',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.shx',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.zip',
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/sample.geojson'
# ]
# leafmap.download_files(links)
#AFTER THIS MOVE THE FILES TO THE DAT FOLDER
#dOWNLOADING MISSING DATA
# links = [
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/countries.cpg',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.dbf',
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/countries.prj',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.shp',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.shx',
# 'https://github.com/giswqs/geosdemo/blob/master/docs/examples/data/countries.zip',
# 'https://raw.githubusercontent.com/giswqs/geosdemo/master/docs/examples/data/sample.geojson'
# ]
# leafmap.download_files(links)
#AFTER THIS MOVE THE FILES TO THE DAT FOLDER
In [40]:
Copied!
m.add_geojson('data/sample.geojson')
m.add_geojson('data/sample.geojson')
In [41]:
Copied!
m
m
In [42]:
Copied!
import geosdemo
import leafmap
m = geosdemo.Map()
m
import geosdemo
import leafmap
m = geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [43]:
Copied!
#geopandas reading zip
m.add_shp('data/countries.zip', name='countries')
#geopandas reading zip
m.add_shp('data/countries.zip', name='countries')
In [44]:
Copied!
style ={
'opacitty': 2, 'dashArray': '10', 'fillOpacity': 0.1, 'weight': 1
}
style ={
'opacitty': 2, 'dashArray': '10', 'fillOpacity': 0.1, 'weight': 1
}
In [45]:
Copied!
#geopandas reading zip
m.add_shp('data/countries.zip', name='countries', style=style)
#geopandas reading zip
m.add_shp('data/countries.zip', name='countries', style=style)
In [46]:
Copied!
m
m
In [ ]:
Copied!
Last update:
2023-05-11