Mapuv intro
In [1]:
Copied!
import mapvu
import mapvu
In [ ]:
Copied!
m = mapvu.Map()
m
m = mapvu.Map()
m
In [3]:
Copied!
m.add_layer_control()
m.add_layer_control()
In [11]:
Copied!
m.add_search_control()
m.add_search_control()
In [8]:
Copied!
m.add_draw_control()
m.add_draw_control()
In [ ]:
Copied!
m.add_tile_layer(url=url, name="google Maps", attribution="Google")
m.add_tile_layer(url=url, name="google Maps", attribution="Google")
In [9]:
Copied!
m.add_basemap('roadmap')
m.add_basemap('roadmap')
In [3]:
Copied!
m.add_basemap("satellite")
m.add_basemap("satellite")
In [4]:
Copied!
m.add_basemap("hybrid")
m.add_basemap("hybrid")
In [5]:
Copied!
m.add_basemap("Esri.WorldImagery")
m.add_basemap("Esri.WorldImagery")
In [2]:
Copied!
m = mapvu.Map()
m
m = mapvu.Map()
m
Out[2]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [3]:
Copied!
m.add_geojson("data/samples.geojson",name="country")
m.add_geojson("data/samples.geojson",name="country")
In [ ]:
Copied!
In [4]:
Copied!
m.add_shp("data/countries.shp", name="countries")
m.add_shp("data/countries.shp", name="countries")