Tight loops
In [1]:
Copied!
import tight_loops
import tight_loops
In [2]:
Copied!
m = tight_loops.Map()
m
m = tight_loops.Map()
m
Map(center=[0, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text'…
In [3]:
Copied!
m.add_shp('countries.zip')
m.add_shp('countries.zip')
GeoJSON(data={'type': 'FeatureCollection', 'features': [{'id': '0', 'type': 'Feature', 'properties': {'NAME': …
In [3]:
Copied!
m.add_geojson('map.geojson', name='smokies')
m.add_geojson('map.geojson', name='smokies')
GeoJSON(data={'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'properties': {}, 'geometry': {'co…
In [3]:
Copied!
import xyzservices.providers as xyz
import xyzservices.providers as xyz
In [6]:
Copied!
xyz.HikeBike.keys()
xyz.HikeBike.keys()
Out[6]:
dict_keys(['HikeBike', 'HillShading'])
In [4]:
Copied!
url = xyz.Esri.WorldImagery.build_url()
m.add_tile_layer(url = url, name = "Satellite", attribution = "Esri")
url = xyz.Esri.WorldImagery.build_url()
m.add_tile_layer(url = url, name = "Satellite", attribution = "Esri")
TileLayer(attribution='Esri', name='Satellite', options=['attribution', 'bounds', 'detect_retina', 'max_native…
In [7]:
Copied!
m.add_basemap("HikeBike.HillShading")
m.add_basemap("HikeBike.HillShading")
In [3]:
Copied!
m.add_search_control(position = 'topright', zoom = 7)
m.add_search_control(position = 'topright', zoom = 7)
SearchControl(found_style={'fillColor': '#3f0', 'color': '#0f0'}, options=['animate_location', 'auto_collapse'…
In [4]:
Copied!
url = "http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}"
url = "http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}"
In [5]:
Copied!
m.add_tile_layer(url = url, name = "Google Satellite", attribution = "Google")
m.add_tile_layer(url = url, name = "Google Satellite", attribution = "Google")
TileLayer(attribution='Google', name='Google Satellite', options=['attribution', 'bounds', 'detect_retina', 'm…
In [ ]:
Copied!
Last update:
2023-05-12