MCPcopy Create free account
hub / github.com/python-visualization/folium / _get_self_bounds

Method _get_self_bounds

folium/map.py:466–472  ·  view source on GitHub ↗

Computes the bounds of the object itself. Because a marker has only single coordinates, we repeat them.

(self)

Source from the content-addressed store, hash-verified

464 )
465
466 def _get_self_bounds(self) -> TypeBoundsReturn:
467 """Computes the bounds of the object itself.
468
469 Because a marker has only single coordinates, we repeat them.
470 """
471 assert self.location is not None
472 return cast(TypeBoundsReturn, [self.location, self.location])
473
474 def render(self):
475 if self.location is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected