import os
from ipyleaflet import Map, SearchControl, Marker, AwesomeIcon
center = [19.1646, 72.8493]
m = Map(center=center, zoom=3)
marker = Marker(icon=AwesomeIcon(name="check", marker_color='green', icon_color='darkgreen'))
search = SearchControl(position="topleft",
url='https://nominatim.openstreetmap.org/search?format=json&q={s}',
zoom=5,
property_name='display_name',
marker=marker
)
m.add_control(search)
m
marker.icon = AwesomeIcon(name="check", marker_color='red', icon_color='darkred')