title: Vega-Lite / Altair: How to Center or Crop a Map of Europe?
body: <p>I have some data on European countries. I'm trying to create a visualization in Altair / Vega-Lite using the world-110m data. Everything technically works fine, except that coded boundaries of the countries also include far-away territories, producing a terrible map that looks like this: </p>
  
  <p><a href="https://i.stack.imgur.com/7FRYo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7FRYo.png" alt="Bad Europe Map"></a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>countries = alt.topo_feature(data.world_110m.url, 'countries')
  source = df.copy()
  
  map = alt.Chart(countries).mark_geoshape(
      stroke='black'
      ).encode(
      color=alt.Color('SomeStat:Q', sort="descending", scale=alt.Scale(
          scheme='inferno', domain=(min_value,max_value)), legend=alt.Legend(title="", tickCount=6))
  ).transform_lookup(
      lookup='id',
      from_=alt.LookupData(source, 'CountryId', ['SomeStat', 'CountryName'])
  ).project(
      type='mercator'
  )
  </code></pre>
  
  <p>Is there a way to crop this map or center it so that I'm only getting Europe and not far-flung territories all over the world? </p>
  
  <p>Alternatively, is there a better public dataset I should be using that only includes Europe? </p>