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

Method keep_in_front

folium/folium.py:473–486  ·  view source on GitHub ↗

Pass one or multiple layers that must stay in front. The ordering matters, the last one is put on top. Parameters ---------- *args : Variable length argument list. Any folium object that counts as an overlay. For example FeatureGroup or TileL

(self, *args: Layer)

Source from the content-addressed store, hash-verified

471 )
472
473 def keep_in_front(self, *args: Layer) -> None:
474 """Pass one or multiple layers that must stay in front.
475
476 The ordering matters, the last one is put on top.
477
478 Parameters
479 ----------
480 *args :
481 Variable length argument list. Any folium object that counts as an
482 overlay. For example FeatureGroup or TileLayer.
483 Does not work with markers, for those use z_index_offset.
484 """
485 for obj in args:
486 self.objects_to_stay_in_front.append(obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected