简体   繁体   English

放大html时的灰色瓷砖

[英]gray tiles when zooming into html

I have the following script below: 我有以下脚本:

import folium
import csv


def map_it():

    m = folium.Map(location=[-33.868820, 151.209290],tiles='Mapbox Bright', zoom_start=11)

    with open('rent_details.csv', 'r') as csv_file:
        csv_reader = csv.DictReader(csv_file)

        for line in csv_reader:
            lat = float(line['LATITUDE'])
            lng = float(line['LONGITUDE'])

            folium.Marker(location=[lat, lng], tooltip='click for more info').add_to(m)

    m.save(outfile='map.html')

map_it()

When I run the script, the marks get placed and I can see the map fine. 当我运行脚本时,标记被放置,我可以看到地图很好。 However, once I zoom in, I get gray tiles. 但是,一旦我放大,我就会得到灰色的瓷砖。 I found that zoom=11 works but zoom=12 does not render. 我发现zoom = 11可以工作,但zoom = 12不会渲染。

working with zoom 11 使用缩放11

not working with zoom 12 不使用zoom 12

Does anyone know how to resolve this? 有谁知道如何解决这个问题? I opened the html file with firefox and safari but the issue persists 我用firefox和safari打开了html文件,但问题仍然存在

this is expected behaviour with tiles='Mapbox Bright' 这是tile ='Mapbox Bright'的预期行为

https://github.com/python-visualization/folium/issues/699 https://github.com/python-visualization/folium/issues/699

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM