Python Forum
Showing only one country in Folium
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Showing only one country in Folium
#1
I have a script that generates a folium map using Python and Folium. Please click on the link below to see.

http://airport-metars.ddns.net/

As you can see, it shows the map of the world. How can I show only the map of US?
Reply
#2
Start with a higher zoom level, so less of the world is visible?
I don't think you can choose to just not render the rest of the map, if that's what you mean.
Reply
#3
(Oct-31-2019, 07:06 PM)nilamo Wrote: Start with a higher zoom level, so less of the world is visible?
I don't think you can choose to just not render the rest of the map, if that's what you mean.

Thanks for the reply, that's what I'm already doing. So its not possible to NOT render the rest of the map?
Reply
#4
Anything is possible, if you try hard enough :p

https://python-visualization.github.io/folium/ Wrote:The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys

So if none of those providers support it (I know at least OpenStreetMaps can't render only specific countries), then you could make your own map tiles and use those.

Or maybe you can use overlays to just try hiding everything else? https://python-visualization.github.io/f...N-Overlays
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  encode/decode to show correct country letters in a CTk combobox janeik 2 661 Sep-02-2023, 09:46 AM
Last Post: janeik
  Using locationtagger to extract locations found in a specific country/region lord_of_cinder 1 1,222 Oct-04-2022, 12:46 AM
Last Post: Larz60+
  Folium: Conflict with Font Awesome Kit jgomes_eu 0 1,182 Apr-23-2022, 03:18 PM
Last Post: jgomes_eu
  Control Mouse and Keyboard Across the Country Without VNC on Target PC Khuber79 5 2,932 Feb-21-2021, 02:42 AM
Last Post: NullAdmin
  Folium import error kashif_flavio 2 3,568 Dec-07-2020, 08:58 AM
Last Post: bowlofred
  How to select language/country in search () module Val 0 1,562 Mar-17-2020, 08:28 PM
Last Post: Val
  Folium map from another website tantony 8 3,116 Oct-15-2019, 07:33 PM
Last Post: Larz60+
  Map with folium vandelouw 0 2,215 Jun-29-2018, 08:36 PM
Last Post: vandelouw

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020