icssc / zotnfound-frontend

ZotNFound.com
2 stars 1 forks source link

Missing Fly image #24

Closed tyleryy closed 5 months ago

tyleryy commented 5 months ago

For the Marker component in Map.tsx, there is no "flyimg." At least, I don't see one.

Screen Shot 2024-01-16 at 9 58 39 PM
NwinNwin commented 5 months ago

Hi Tyler, Leaflet's fly animation function requires a marker to be displayed upon completing the animation. As we already have an item marker image, we don't want another one that would overlap it. To resolve this issue, I've implemented a workaround by adding a 1-pixel image (fly_img). This activate the fly animation when a marker or a card is clicked, without hiding the original marker image.

tyleryy commented 5 months ago

ah kk that makes sense!