Lab 6¶
In [1]:
Copied!
import tight_loops
import tight_loops
In [2]:
Copied!
m = tight_loops.Map(center=(40.7128, -74.0060), zoom=7, layers_control=False)
m
m = tight_loops.Map(center=(40.7128, -74.0060), zoom=7, layers_control=False)
m
Map(center=[40.7128, -74.006], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zo…
In [3]:
Copied!
m.add_search_control()
m.add_search_control()
SearchControl(found_style={'fillColor': '#3f0', 'color': '#0f0'}, options=['animate_location', 'auto_collapse'…
In [4]:
Copied!
m.add_draw_control()
m.add_draw_control()
DrawControl(circle={'shapeOptions': {'fillColor': '#efed69', 'color': '#efed69', 'fillOpacity': 1.0}}, circlem…
In [5]:
Copied!
m.add_layers_control()
m.add_layers_control()
LayersControl(options=['position'], position='topright')
In [6]:
Copied!
m.add_fullscreen_control()
m.add_fullscreen_control()
FullScreenControl(options=['position'])
In [7]:
Copied!
m.add_tile_layer(url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", name="Satellite", attribution="Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community")
m.add_tile_layer(url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", name="Satellite", attribution="Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community")
TileLayer(attribution='Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID…
In [8]:
Copied!
m.add_basemap("roadmap")
m.add_basemap("roadmap")
In [9]:
Copied!
m.add_geojson('map.geojson')
m.add_geojson('map.geojson')
GeoJSON(data={'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'properties': {}, 'geometry': {'co…
In [10]:
Copied!
m.add_shp('countries.zip')
m.add_shp('countries.zip')
GeoJSON(data={'type': 'FeatureCollection', 'features': [{'id': '0', 'type': 'Feature', 'properties': {'NAME': …
In [ ]:
Copied!
Last update:
2023-05-12