voxcity 0.6.12__py3-none-any.whl → 0.6.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of voxcity might be problematic. Click here for more details.

@@ -33,7 +33,8 @@ from ipyleaflet import (
33
33
  WidgetControl,
34
34
  Circle,
35
35
  basemaps,
36
- basemap_to_tiles
36
+ basemap_to_tiles,
37
+ TileLayer
37
38
  )
38
39
  from geopy import distance
39
40
  import shapely.geometry as geom
@@ -885,12 +886,21 @@ def draw_additional_trees(tree_gdf=None, initial_center=None, zoom=17, rectangle
885
886
 
886
887
  # Create map
887
888
  m = Map(center=(center_lat, center_lon), zoom=zoom, scroll_wheel_zoom=True)
888
- # Add aerial/satellite basemap
889
+ # Add Google Satellite basemap with Esri fallback
889
890
  try:
890
- m.add_layer(basemap_to_tiles(basemaps.Esri.WorldImagery))
891
+ google_sat = TileLayer(
892
+ url='https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',
893
+ name='Google Satellite',
894
+ attribution='Google Satellite'
895
+ )
896
+ # Replace default base layer with Google Satellite
897
+ m.layers = tuple([google_sat])
891
898
  except Exception:
892
- # Fallback silently if basemap cannot be added
893
- pass
899
+ try:
900
+ m.layers = tuple([basemap_to_tiles(basemaps.Esri.WorldImagery)])
901
+ except Exception:
902
+ # Fallback silently if basemap cannot be added
903
+ pass
894
904
 
895
905
  # If rectangle_vertices provided, draw its edges on the map
896
906
  if rectangle_vertices is not None and len(rectangle_vertices) >= 4:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: voxcity
3
- Version: 0.6.12
3
+ Version: 0.6.13
4
4
  Summary: voxcity is an easy and one-stop tool to output 3d city models for microclimate simulation by integrating multiple geospatial open-data
5
5
  License: MIT
6
6
  Author: Kunihiko Fujiwara
@@ -15,7 +15,7 @@ voxcity/exporter/magicavoxel.py,sha256=SfGEgTZRlossKx3Xrv9d3iKSX-HmfQJEL9lZHgWMD
15
15
  voxcity/exporter/obj.py,sha256=h1_aInpemcsu96fSTwjKMqX2VZAFYbZbElWd4M1ogyI,27973
16
16
  voxcity/generator.py,sha256=ok0LqVk9k0xVqXD9Ybar-CWmqi-vooJmrAFi9WjsaKE,58327
17
17
  voxcity/geoprocessor/__init__.py,sha256=WYxcAQrjGucIvGHF0JTC6rONZzL3kCms1S2vpzS6KaU,127
18
- voxcity/geoprocessor/draw.py,sha256=5LsV2L5vSmpDZIo7dMIYsOFEQB5jtVesKcmfxCTbsxk,46113
18
+ voxcity/geoprocessor/draw.py,sha256=VCrPuYVFnbdRXCgpUXykJgtFW8nwPzcKcwzp5Sdu4wY,46495
19
19
  voxcity/geoprocessor/grid.py,sha256=D4sqoIGK2P1U8uuVQZ-447SD0Yrv6qS_zlmDtKoLDe8,71257
20
20
  voxcity/geoprocessor/mesh.py,sha256=A7uaCMWfm82KEoYPfQYpxv6xMtQKaU2PBVDfKTpngqg,32027
21
21
  voxcity/geoprocessor/network.py,sha256=YynqR0nq_NUra_cQ3Z_56KxfRia1b6-hIzGCj3QT-wE,25137
@@ -30,8 +30,8 @@ voxcity/utils/lc.py,sha256=722Gz3lPbgAp0mmTZ-g-QKBbAnbxrcgaYwb1sa7q8Sk,16189
30
30
  voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
31
31
  voxcity/utils/visualization.py,sha256=TQKMmATpAqSDTPMvMi1a-n2CvvzE2KcYVsss7iiShS4,116877
32
32
  voxcity/utils/weather.py,sha256=2Jtg-rIVJcsTtiKE-KuDnhIqS1-MSS16_zFRzj6zmu4,36435
33
- voxcity-0.6.12.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
- voxcity-0.6.12.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
- voxcity-0.6.12.dist-info/METADATA,sha256=ccDjxA6M8K0knd5zm_BN_fPUtayqf6a_-4PfaAa4sh0,26092
36
- voxcity-0.6.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
- voxcity-0.6.12.dist-info/RECORD,,
33
+ voxcity-0.6.13.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
+ voxcity-0.6.13.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
+ voxcity-0.6.13.dist-info/METADATA,sha256=YIYA3mtfOVm8-_0ZjTtDCKG8cYTOR-hz_SOsdiGJZe8,26092
36
+ voxcity-0.6.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
+ voxcity-0.6.13.dist-info/RECORD,,