[Script] WME Street View Availability (2.1.1)

If there any way that you could add a filtering to the street view so that you could tell the age of the views? Possibly color coding by years or just select it to show a year range/all?
I’m seeing new SV’s in my area from 2018 and wanted to filter those to get in updated information.

Thank you!

I’m afraid I have zero control over the data that gets displayed :frowning:

Thank you for the quick reply, maybe someday it will be

Has this feature disappeared on purpose? Or is it due to a Google / SV change? How can I have the blue dots back, if possible?

Thanks!

I’m afraid I have no control over that either. We won’t see that any more should Google ever decide to not include those images from a certain point. I’m not aware of any recent changes though.

Thanks for the reply! It was worth asking, though.

Just released a patch version that improves the stability of the initialisation of the script. It somehow ran into some issues in beta (not entirely clear yet why though).

Hello Glodenox, great script,

have you tried to get shift+T working ? It will be very useful

I hadn’t looked into it any more as I had completely forgotten about it, so thanks for the reminder!

I’ll probably work on it today as I’ve been wanting to persist changes made to the width of the Street View sidepanel with the new drag handle and this userscript seems like a logical location to add this.

Version 0.8.0 has just been released with two new functionalities:

  • The keyboard shortcut Shift+T now toggles the blue lines showing where street view should be available
  • The script now restores the last used width of the Street View panorama.

There could be issues with restoring the street view panorama’s width if the screen resolution (or more likely: the window dimensions) were to differ drastically. I still need to look into the feasibility of storing the width as a percentage instead of pixels. But this should already be nice for the majority of use cases :slight_smile:

Hey there. I’m having a little problem with this latest feature - or at least how it interacts with a new feature in WME FixUI. It seems we’ve both been working on the same problem from different angles! :lol:

The problem is really down to bad design by the WME Devs. As initially loaded, the relative widths of the map and GSV panels are controlled by CSS classes setting the widths to 50%/50%. But, as soon as you drag the handle, WME adds inline CSS to the elements themselves setting width/drag handle positions in fixed pixel values.

My script will alter the default % values in the CSS classes to change the default split position. If you drag the handle, that position gets overridden by the dragged-to position set in the inline CSS.

It looks like you are restoring the previous position by storing the inline CSS values and restoring them on reload - but you are doing this even if the handle hasn’t been dragged and is therefore still at the default position and controlled by the CSS classes.

That’s where it’s interfering with WME FixUI. I think your script is looking for the inline CSS, not seeing any, then assuming the position is at 50% and setting/storing the corresponding inline CSS settings - even though FixUI has altered that default.

Perhaps you could change your code to not store/set a permission if no inline CSS setting is found? Or maybe look at the % position set in on these 3 CSS classes:

  • #editor-container #map.street-view-mode #waze-map-container {width}
  • #editor-container #map.street-view-mode #street-view-drag-handle {left}
  • #editor-container #map.street-view-mode #street-view-container {width}

I haven’t got FixUI running at the moment, I’ll do some testing tomorrow to make sure that what I’m saying below is actually right.

The script should not adjust the size if it was never dragged (the trigger is an adjustment to the style attribute where the width is set to something other than the empty string), so FixUI’s new default should still work as long as the user never adjusted it themselves. The idea of the feature in this userscript is exactly to make any adjustment by the user the new default from then on, so I don’t think it’s possible to make this function somehow work together with the FixUI default any further than that.

The only thing I can do is provide an option to disable this feature in the settings tab. That way people can decide for themselves whether they want to always have the width restored each time they open the Street View panorama. Because right now people are simply forced to accept this feature if they install this script, which admittedly isn’t ideal. I was already thinking about doing something like that, but I just wanted to get the feature out of the door already.

After the WME update this week, roads with available SV are not lighting up blue.

Version 0.8.1 has just been released to fix the issue with the new layer menu breaking the script. I still need to work on adding a toggle to choose whether to save the Street View window width though.

Hey there! Just started noticing an issue today where having the script on, and placing the SV pin to see SV, turns the screen white and I have to refresh to fix. Something seems to have broken the script.

I’m afraid I’m not seeing the same issue appear. Which browser do you use and on which version of the WME (beta/prod)?

The only thing I can imagine is that the sidescreen for the Street View is taking up the full width of the screen. That could maybe the case for you? Do you see a handle if you hover over the left side of that window?

Hey thanks for the quick response. WME version is prod and I’m using Chrome 78.0.3904.97 (Official Build) (64-bit). And now that I’m testing your theory of the side screen taking the full width, I’m actually finding the opposite and realizing what caused this. I have 2 large screens (extended monitor setup), and extended my Chrome window super-wide earlier this morning. I had SV open on the side. Once you resize the Chrome window to the left of the SV side screen edge, it turns the whole screen white. Nevertheless, I figured out the issue. Thanks!

Just a quick update to version 0.8.2 to adjust the code generation for the new element structure used by the WME in the layers menu. There should be no functional changes included in this release. I haven’t forgotten about the toggle to save/not save the width of the street view panel, but it won’t be for this release.

Street View does not display on the first try. If I drag the person icon for street view the second time, it loads. This has begun happening since the WME update yesterday.

I assume you’re talking about Street View itself not showing up and not the blue lines indicating where Street View can be found? I can’t say I’m experiencing the same issue, I’m afraid. I did see a couple of people saying something similar earlier today.

Either way, I’m pretty certain that is an issue that is not related to this userscript, so I can’t help with that.