Если вы можете (хотя бы приблизительно) получить размеры этой части телефона, вы можете решить ее с помощью css:
body {
background: goldenrod;
height: 100vh /* optional */
}
#map {
position: relative; /* needed if #page != body */
background: url(your/path/to/map);
display: flex;
justify-content: center; /* center the green elem horizontally */
height: 100vh; /* optional */
}
#box {
background: goldenrod; /* (color of page bg, so we hack transparency) */
position: fixed; /* or absolute, as you need */
top: 0;
width: 200px ; /* that phone part s width */
height: 30px ; /* same workaround */
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px; /* the magic, complete with actual radius of phone part corner */
}
, и этот код должен остаться в силе:
<body>
<div id=map>
<div id=box></div>
</div>
</body>
добавление border-radius: 30px; на #page дает ему «телефонный» аспект
Надеюсь, это помогло :)