#!/usr/bin/env python # coding: utf-8 # In[ ]: from ipyleaflet import ( Map, Marker, TileLayer, ImageOverlay, Polyline, Polygon, Rectangle, Circle, CircleMarker, GeoJSON, DrawControl ) # ## Custom TMS Server # In[ ]: center = [39.9610845, -75.1540457] zoom = 14 # In[ ]: m = Map(center=center, zoom=zoom) m # In[ ]: # Or any other appropriate url carto_url = ( 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png' ) m.clear_layers() m.add_layer(TileLayer(url=carto_url))