Panorama - #1142
Conversation
Deploying falling-fruit-web with
|
| Latest commit: |
b71437d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e7b70290.falling-fruit-web.pages.dev |
| Branch Preview URL: | https://issue-1081.falling-fruit-web.pages.dev |
|
@wbazant The website and API are back! How come you opened a new PR rather than commit to the existing PR/branch? In order to trigger a Cloudflare Pages preview? |
|
Didn't hugely think about it, just had all these crappy commits and had to put the branch online somewhere! But seeing the preview is a bonus - currently the labels don't go over the other markers on hover as a regression. More great bugs: panorama on desktop doesn't let you click on locations, and the labels somehow come off when you move around. Also, clicking 'save' reloads it back to where it was first opened. |
Show the same dot markers and fruit-name labels in the Street View panorama as on the map, by extracting the map's marker/label rendering into a shared module (locationMarkerHelpers.js) and reusing it. The OverlayView labels attach to a StreetViewPanorama as well as a Map, so both views render identically. - All nearby locations get the map's dots (blue by default, orange when saved) plus their fruit-name label; labels use the satellite/hybrid style (white text, dark outline) since the panorama is imagery. - The selected/viewed location additionally gets the orange "here" pin above its dot, using the same boxicons Map glyph as the map's MapPin. - The map's own markers are hidden while Street View is open so they don't double up with the panorama's. - Guard against async re-entrancy so a superseded panorama can't leave orphaned overlays on the shared panorama. Closes #1081 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
This is now more ready! I still need to translate verbiage and check on an actual phone. |
Features: - remove Google Street View link from location pages - add the pegman control to the map (if zoomed in to level where locations are shown, and not editing position on mobile) - use the same SVG markers between map and panorama: dot for location, pins for positions of selected location - move the 'update position' mechanics to google maps event listeners: update on drop - disallow submitting location form if position changed and street view is open and show a warning that street view positions are inaccurate - clicking location dot selects it, now also in street view - set only full screen street view on mobile, disallow full screen on desktop - clicking the address link on location page moves the street view - if opening street view and a location is selected, try to face the location from wherever the pegman was dropped (on actual mobile, this only works if 'move phone to move panorama' is disabled) - apply 'show labels' settings in street view, interpreting 'when zoomed in' as a yes for street view - when moving around street view, fetch locations when coming to the edge. Show labels only within a select radius
|
@ezwelty Have a look! Features:
|
|
@sveder1 @wbazant Thanks for all this! I can see a lot of work went into this. Fun to play around with, especially on desktop where you have both street view and side pane in parallel and everything working together. Probably also fun in-situ on mobile surrounded by a tree inventory, but I'm not currently somewhere where I can test that.
Quirks
|
Closes #1081
Closes #647.
Based on #1135 , credit to @sveder1 for starting this off!