Open street map
Folium defaults to using openstreetmap tiles. You can also access these tiles with:
1
|
folium.TileLayer('openstreetmap').add_to(my_map)
|
Map Quest Open
Similar to open street map, mapquestopen tiles are a good general purpose tile set.
1
|
folium.TileLayer('mapquestopen').add_to(my_map)
|
MapQuest Open Aerial
Mapquest also provides open aerial photography to use as map tiles:
1
|
folium.TileLayer('MapQuest Open Aerial').add_to(my_map)
|
Mapbox Bright
Mapbox makes some nice map tiles, but the free versions only have limited levels of zoom available (i.e. you can’t zoom close in).
1
|
folium.TileLayer('Mapbox Bright').add_to(my_map)
|
Mapbox Control Room
Control Room is another set of MapBox tiles. Again there are only limited levels of zoom available for the free version, but they do look cool.
1
|
folium.TileLayer('Mapbox Control Room').add_to(my_map)
|
Stamen Terrain
Stamen also produce some cool map tiles which typically work at all zoom levels. These terrain tiles are only available for the USA unfortunately.
1
|
folium.TileLayer('stamenterrain').add_to(my_map)
|
Stamen Toner
The Stamen toner map tiles produce a black and white map that both looks striking and would be more suitable for printing than some of the other Folium map tiles.
1
|
folium.TileLayer('stamentoner').add_to(my_map)
|
Stamen Watercolor
To be honest I’m not sure where the Stamen Watercolor map tiles would be useful, but they look very cool.
1
|
folium.TileLayer('stamenwatercolor').add_to(my_map)
|
CartoDB Positron
The CartoDB folium map tiles are cool looking tiles and are available in the lighter “positron”, or “dark matter” (below)
1
|
folium.TileLayer('cartodbpositron').add_to(my_map)
|
CartoDB Dark Matter
The CartoDB Dark Matter tiles are essentially a darker version of the above positron tiles.
1
|
folium.TileLayer('cartodbdark_matter').add_to(my_map)
|
출처
https://deparkes.co.uk/2016/06/10/folium-map-tiles/
'🖥️ IT, 컴퓨터 > 🐍 Python' 카테고리의 다른 글
[Python] 시각화 라이브러리 matplotlib의 cheat sheet (0) | 2023.01.09 |
---|---|
[Python] 파이썬으로 지도 그리기 (2) color map 선택 (feat. branca) (0) | 2023.01.09 |
[Python] 부동산 지수 데이터 시각화하기 (feat. matplotlib) (0) | 2023.01.03 |
[Python] 'utf-8' codec can't decode byte 0xbb in position 1: invalid start byte 오류 해결 (0) | 2022.12.02 |
[Python] 파이썬 테이블 열 이름이 밀려나는 오류 (0) | 2022.11.27 |
댓글