fix(tradein): MapCard клик по пину + честная ДКП-легенда (#786) (#787)
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m33s
Deploy Trade-In / deploy (push) Successful in 34s
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m33s
Deploy Trade-In / deploy (push) Successful in 34s
Co-authored-by: bot-frontend <bot-frontend@gendsgn.local> Co-committed-by: bot-frontend <bot-frontend@gendsgn.local>
This commit is contained in:
parent
8f2ff10a1c
commit
a45d4b3cf4
1 changed files with 17 additions and 5 deletions
|
|
@ -174,6 +174,10 @@ export function MapCard({ estimate }: Props) {
|
||||||
weight: 1,
|
weight: 1,
|
||||||
fillColor: COLOR_TARGET,
|
fillColor: COLOR_TARGET,
|
||||||
fillOpacity: 0.05,
|
fillOpacity: 0.05,
|
||||||
|
// Декоративный радиус-круг рисуется ПОСЛЕ маркеров и по умолчанию
|
||||||
|
// перехватывал бы клики по пинам под ним (#786) → bindPopup не
|
||||||
|
// срабатывал. interactive:false пропускает клики к маркерам.
|
||||||
|
interactive: false,
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
L.circleMarker(ll, {
|
L.circleMarker(ll, {
|
||||||
radius: 9,
|
radius: 9,
|
||||||
|
|
@ -218,9 +222,11 @@ export function MapCard({ estimate }: Props) {
|
||||||
<div>
|
<div>
|
||||||
<span style={{ color: COLOR_ANALOG }}>●</span> объявления · {analogs.length}
|
<span style={{ color: COLOR_ANALOG }}>●</span> объявления · {analogs.length}
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginTop: 4 }}>
|
{deals.length > 0 && (
|
||||||
<span style={{ color: COLOR_DEAL }}>●</span> сделки ДКП · {deals.length}
|
<div style={{ marginTop: 4 }}>
|
||||||
</div>
|
<span style={{ color: COLOR_DEAL }}>●</span> сделки ДКП · {deals.length}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -241,8 +247,14 @@ export function MapCard({ estimate }: Props) {
|
||||||
<div className="table-foot">
|
<div className="table-foot">
|
||||||
<span>
|
<span>
|
||||||
<span style={{ color: COLOR_TARGET }}>●</span> ваша квартира ·{" "}
|
<span style={{ color: COLOR_TARGET }}>●</span> ваша квартира ·{" "}
|
||||||
<span style={{ color: COLOR_ANALOG }}>●</span> asking ·{" "}
|
<span style={{ color: COLOR_ANALOG }}>●</span> asking
|
||||||
<span style={{ color: COLOR_DEAL }}>●</span> ДКП · клик по пину — детали
|
{deals.length > 0 && (
|
||||||
|
<>
|
||||||
|
{" · "}
|
||||||
|
<span style={{ color: COLOR_DEAL }}>●</span> ДКП
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{" · клик по пину — детали"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue