Closed mgregor-oa closed 4 years ago
I updated the functionality of the class. It now requires you to pass a url to the class. I have removed all reference to mapbox and access_tokens. This should now work for any tms service passed to it.
url = r"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png" img = TmsImage(url=url, zoom=18) img2 = TmsImage(url=url, zoom=18, bbox=bbox) aoi = img.aoi(bbox=bbox) print(img) print(aoi) print(img2) aoi.plot(), img2.plot()
Tests pass locally for me
Looks good, thanks for the fix
I updated the functionality of the class. It now requires you to pass a url to the class. I have removed all reference to mapbox and access_tokens. This should now work for any tms service passed to it.