mariusandra / pigeon-maps

ReactJS Maps without external dependencies
https://pigeon-maps.js.org/
MIT License
3.44k stars 142 forks source link

missing offset prop on map #136

Open alicerocheman opened 3 years ago

alicerocheman commented 3 years ago

Hello Pigeon maps :)

I'm creating a map that's only a few hundred pixels high, displaying a pin and an open Tooltip inside. The issue is display is broken because the Tooltip doesn't have enough room in height.

I'm looking to add an offset to the "center" of my map, so that the "center" is lower and everything can be displayed properly on top.

I've searched through the docs but this doesn't seem possible :(

mariusandra commented 3 years ago

I guess in this case the center should just get as input coordinates that are slightly above the marker's coordinates? It's hard to say without seeing code to be honest.

albjeremias commented 1 year ago

I guess in this case the center should just get as input coordinates that are slightly above the marker's coordinates? It's hard to say without seeing code to be honest.

that's not possible, because the coordinates, depending on the zoom they will change.

duplicate: https://github.com/mariusandra/pigeon-maps/issues/57

i will edit this with some code where we are using pigeon maps :)