Lab9
Vector Map¶
In [1]:
Copied!
## change the directory of spatialtsp to the current directory
import sys
sys.path.insert(0, 'D:\\GIS program\\Github\\spatialtsp\\spatialtsp-5')
import spatialtsp
print(spatialtsp.__file__)
## change the directory of spatialtsp to the current directory
import sys
sys.path.insert(0, 'D:\\GIS program\\Github\\spatialtsp\\spatialtsp-5')
import spatialtsp
print(spatialtsp.__file__)
D:\GIS program\Github\spatialtsp\spatialtsp-5\spatialtsp\__init__.py
In [2]:
Copied!
m = spatialtsp.Map()
m.add_basemap_gui()
m
m = spatialtsp.Map()
m.add_basemap_gui()
m
Out[2]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [4]:
Copied!
## add the toolbar
from spatialtsp import Map
#Create a map
m = spatialtsp.Map()
#add toolbar using the add_toolbar function
#explore the buttons at your leisure
m.add_toolbar()
m
## add the toolbar
from spatialtsp import Map
#Create a map
m = spatialtsp.Map()
#add toolbar using the add_toolbar function
#explore the buttons at your leisure
m.add_toolbar()
m
Out[4]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…