Load a local shapefile and visualize on the map¶

If a shapefile named roads.shp is present in the current folder (the same from where the notebook is executed), with all its files .dbf, .shx and .prj, this example demonstrates how to load it and display on the interactive map.

In [ ]:
map = Map()
map
In [ ]:
v = inter.loadLocalVector("roads.shp")
v.remove('all')
v.set('line','stroke','#009900')
v.set('line','stroke-width','3.0')
map.clear()
tlayer = map.addLayer(v.toLayer())
In [ ]: