Add shapefile
In [1]:
    from nclpy.nclpy import Map
In [2]:
    m = Map()
m
In [3]:
    style = {
    "stroke": True,
    "color": "#ff0000",
    "weight": 2,
    "opacity": 1,
    "fill": True,
    "fillColor": "#000000",
    "fillOpacity": 0.4,
}
In [4]:
    in_shp = "./data/countries.shp"
In [5]:
    m.add_shapefile(in_shp, style=style, layer_name="Shapefile")
In [6]:
    in_geojson = "./data/countries.json"
In [7]:
    m.add_geojson(in_geojson, layer_name="GeoJSON")
  
    
      Last update: 2021-05-03