#header-mark#
Layer-Like Objects
The ipyleaflet.Map.add() method supports “layer-like” objects; meaning any object with an as_leaflet_layer method. This interface can be especially useful for downstream developers who want their users to more easily be able to add their objects to an ipyleaflet.Map.
Downstream objects should implement an as_leaflet_layer
method that returns an ipyleaflet
type capable of being added to the Map.
基础用法
src/examples/vleaflet/layers/LayerLikeObjects