Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

какой уебок писал эту либку? кому в рот нассать? #363

Closed
sqlerrorthing opened this issue Jun 23, 2024 · 5 comments

Comments

@sqlerrorthing
Copy link

сука почему нельзя центрировать эту коченную карту полностью по размерам родительского div контейнера блять?!

@WhiteOligator
Copy link

ахахахаххахах

@sqlerrorthing
Copy link
Author

ахахахаххахах

нихуя не смешно, я все еще ее не центрировал.

@WhiteOligator
Copy link

WhiteOligator commented Dec 14, 2024

<ZoomableGroup
zoom={position.zoom}
center={position.coordinates}
onMoveEnd={handleMoveEnd}
onMove={handleMove}
maxZoom={maxZoom}
minZoom={defaultZoomNormal}
disablePanning
filterZoomEvent={(evt: any) => {
return evt.type !== 'wheel';
}}
translateExtent={[
[-1400, -400],
[2400, 800],
]}
>

слушай вот этим пропсом можно центрировать, но нужно координаты посчитать
translateExtent={[
[-1400, -400],
[2400, 800],
]}
и center = [5, 20]; тоже нужно самому прописывать

@WhiteOligator
Copy link

WhiteOligator commented Dec 14, 2024

Вообще библа умерла, давно не обдейтилась куча мерж реквестов никто не заливает
лучше другие варианты поискать https://unovis.dev/docs/maps/TopoJSONMap

@sqlerrorthing
Copy link
Author

ой спасибки <3

@sqlerrorthing sqlerrorthing closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants