-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidewalk Gallery: label placement different on small card vs. expanded modal #2660
Comments
@jonfroehlich I was able to reproduce this going back to our earliest version! |
Oh right, this is really just this issue that I've been needing to fix 😅 #2485 It's just the issue of not making the crops correctly either. Projecting onto the static SV image is just not working correctly yet. |
Gotcha. I'm gonna go ahead and make the video then. And we'll deal with this when we can. Sound good? |
Perfect, yep! |
Yeah, definitely might be worth doing a deeper analysis (expand on our regression analysis) to gain more accuracy in both crops and label placement on static images. |
I think the regression analysis you're talking about was in estimating the lat/lng of labels, not their location on the images and the crops. The bad crops seem to more likely be a problem with our math that desperately needs to be resolved :) |
Here's a video example. I'm hoping @uditpatwal's work will help solve this. LabelJumpingAround.mp4 |
This is a sub-problem of #3095. The reason that this is happening is because GSV's static API, which we use to get images for the small cards, has a maximum image size of 640 x 480 pixels while we are actually requesting images with dimensions of 720 x 480 (bc those are the dimensions of the Explore page GSV window). In #3173 I made some small improvements to make the location of the labels on the cards much more accurate, but there is still going to be slight discrepancies until we deal with #3095. |
You'll notice that the blue label location is different on the small card (drawn on street) vs. on the expanded card:
The text was updated successfully, but these errors were encountered: