Add shapefile
In [1]:
Copied!
import geohydrodemo
import geohydrodemo
In [2]:
Copied!
m = geohydrodemo.Map()
m = geohydrodemo.Map()
In [3]:
Copied!
m
m
Out[3]:
In [4]:
Copied!
in_shp = './data/countries.shp'
in_shp = './data/countries.shp'
In [5]:
Copied!
style = {
"stroke": True,
'color' : '#ff0000',
'weight': 2,
'opacity': 1,
'fill': True,
'fillColor':'#0000ff',
'fillOpacity':0.4,
}
style = {
"stroke": True,
'color' : '#ff0000',
'weight': 2,
'opacity': 1,
'fill': True,
'fillColor':'#0000ff',
'fillOpacity':0.4,
}
In [6]:
Copied!
m.add_shapefile(in_shp,layer_name = 'shapefile', style=style)
m.add_shapefile(in_shp,layer_name = 'shapefile', style=style)
In [ ]:
Copied!
Last update:
2023-08-01
Created: 2023-08-01
Created: 2023-08-01