class_docstr: Widget for a collection of GeoJSON features.
  
  Prefer to use the `geojson_layer` function to construct this,
  rather than making them explicitly.
  
  Use the `features` attribute on this class to change the style
  of the features in this layer.
class_docstr_tok: ["Widget","for","a","collection","of","GeoJSON","features",".","Prefer","to","use","the","`","geojson_layer","`","function","to","construct","this",",","rather","than","making","them","explicitly",".","Use","the","`","features","`","attribute","on","this","class","to","change","the","style","of","the","features","in","this","layer","."]
code: def _set_bounds(self, features):
      longitudes, latitudes = [], []
      for feature in features:
          feature_coords = feature.get_coords()
          feature_longitudes, feature_latitudes = zip(*feature_coords)
          longitudes.extend(feature_longitudes)
          latitudes.extend(feature_latitudes)
      min_latitude, max_latitude = bounds.latitude_bounds(latitudes)
      min_longitude, max_longitude = bounds.longitude_bounds(longitudes)
      self.data_bounds = [
          (min_latitude, min_longitude),
          (max_latitude, max_longitude),
      ]
  
imports: import json
  import copy
  import ipywidgets
  from traitlets import Unicode, Dict, List, observe, Float
  import geojson
  from .None import geotraitlets
  from .None import bounds
  from .options import merge_option_dicts, broadcast_if_atomic, broadcast_if_color_atomic
  from .maps import GMapsWidgetMixin
label_desc: Use image node_id 1 for calling the GeoJson obj's underlying member method code with example usage: obj._set_bounds(features) without return types