class_docstr: Test ability to marshall deck_gl_json_chart protos via st.map.
class_docstr_tok: ["Test","ability","to","marshall","deck_gl_json_chart","protos","via","st.map","."]
docstr: Test that _DEFAULT_ZOOM_LEVEL is set if zoom is not provided and distance is too small.
docstr_tok: ["Test","that","_DEFAULT_ZOOM_LEVEL","is","set","if","zoom","is","not","provided","and","distance","is","too","small","."]
code: def test_default_zoom_level(self):
      """Test that _DEFAULT_ZOOM_LEVEL is set if zoom is not provided and distance is too small."""
      df = pd.DataFrame({"lat": [1], "lon": [1]})
      st.map(df)
  
      c = json.loads(
          self.get_delta_from_queue().new_element.deck_gl_json_chart.json
      )
      self.assertEqual(
          c.get("initialViewState").get("zoom"), _DEFAULT_ZOOM_LEVEL
      )
  
imports: import itertools
  import json
  import numpy
  import pandas
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.elements.map import _DEFAULT_MAP, _DEFAULT_ZOOM_LEVEL
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
  from tests.streamlit import pyspark_mocks
  from tests.streamlit.snowpark_mocks import DataFrame
  from tests.streamlit.snowpark_mocks import Table
  from tests.testutil import create_snowpark_session, patch_config_options
label_desc: Use image node_id 11 for calling the StMapTest obj's underlying member method code with example usage: obj.test_default_zoom_level() without return types