[Script] WME Aerial Shifter 1.6.5 / 06.06.2016

What is Aerial Shifter?
This script helps you adjust the position and opacity of underlying satellite imagery.
Download links:
> For Chrome browser please download the script at Chrome Web Store
> For Firefox browser please download the script at GreasyFork.org
Note: for Firefox browser you also need Greasemonkey or Tampermonkey installed.
Screenshots:
WAS-annotated-screenshot.png

Changelog:
05.06.2016 v1.6.5

  • Merged ragacs changes

10.09.2014 v1.5:

  • Updated to the latest WME beta
  • Other minor changes

05.02.2014 v1.4.5:

  • Added ‘Reset defaults’ icon
  • Fixed right-to-left languages
  • Updated to the latest WME beta

10.01.2014 v1.4.4:

  • fixed panel width
  • other minor changes

08.01.2014 v1.4.3:

  • back to absolute rather than fixed position
    08.01.2014 v1.4.2:
  • fixed WAS position
  • other minor changes
    06.12.2013 v1.4.1:
  • opacity of satellite imagery by iainhouse
  • spinners for the inputs (seems does not work in Firefox)
  • settings are now in local storage rather than cookies
  • autoupdates
    07.10.2013 v1.3.2:
  • new WME paths
  • fixed text position and color in prod WME
    28.08.2013 v1.3.1:
  • updated to new WME beta path
    27.08.2013 v1.3:
  • updated to Google satellite imagery
  • merged WME prod and beta branches
  • tested in Firefox
    16.07.2013 v1.2.15 released for WME beta 1.2-68
    24.06.2013 v1.2.14:
  • map panning fixed (thanks to iainhouse)
    22.06.2013 v1.2.13:
  • fixed to work with WME v 1.2

Known issues:

  • Sometimes empty tiles appear around the map border.

Author: byo
Contributors: berestovskyy and iainhouse

Damn good work, that man. :mrgreen: I tried (& failed) to fix it myself - I’ll have to dig in and see what you did. :slight_smile:

If the quality of the aerials increases with the addition of Google Aerials, this script is only going to become more useful.

Oh, I just changed a line, after “// Apply the shift”, but spent like 2 hours creating my first CRX :lol:

The link at the Wiki page points to a closed part of the forum, so I created this topic :wink:

Could you update the wiki page?

I’ve updated the wiki, but I left that old link as well. Shall I remove it?

If it’s no longer relevant, it should be removed. Wiki history will still have it.

Do you guys have the same issue, when you pan the map it’s shifting back to (0,0)?

Yes, I’m afraid so. Didn’t see this happening before - maybe something minor has changed in WME?

I’m pretty sure that after you got it working, it was almost the opposite: changing the values had no effect until panning the map.

[EDIT] Ignore the above (for the moment). Just realised I had another aerial shifter script installed. That was definitely responsible for the map not shifting as I changed the values. :oops:

I’ll post again when I’ve done some more testing.

OK, definitely still reverting back to an un-shifted state after panning the map.

What I said above (not shifting when the values in the input boxes are changed) - not a real problem. It was caused by the other (non-working) script.

I do have a solution. Since I freely admit I only have a vague idea what I’m messing with, this could be elegant or it could be a major kludge. :lol:

I have added the following code to force a shift update after panning:

wazeMap.events.on({ moveend : update });

There’s probably a proper syntax to combine it with the “zoomend” event trigger, but I don’t know what it is. :oops:

Cool, thanks! Works for me! :wink:

I’ve updated the script.

Hi!
I got a PM today that the attached ZIP is not available for download anymore. I tried to download it myself and also got “The selected attachment does not exist anymore” message, so I had to reupload the attachment.

Anyone knows if Waze forum auto-deletes ZIPs after some time?

Nice tool to wish we could see older aerials…

Version 1.2.15 for WME beta 1.2-68 released. Please see my original post.

Plz remember to update http://www.waze.com/wiki/index.php?title=Community_Plugins,_Extensions_and_Tools#Waze_Aerial_Shifter as necessary (date/version info, etc.)

Done.

Hey Alan, thanks for tidying up there! Looks much neater now! :wink:

Thanks and thanks! I felt a little consistency was needed. :slight_smile:

any thoughts on updating WAS to work with the new Google aerials?

I can offer some help. I can’t fix the script proper, but I have identified the changes necessary and you can patch your own script until the author can update the proper script.

You will need to locate the un-packaged script where it is stored on your computer. First, open your Chrome Extensions tab. Each extension tab has a long ID: for my Waze Aerial Shifter, that ID is mjbppgkbhhfenndnpmblmdkegklllppk.

You then need to locate the script. I found it at %userprofile%\Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\mjbppgkbhhfenndnpmblmdkegklllppk\1.2.13_0 - on Windows, obviously! If you have a version other than XP, I’m not sure where it would be. It might be easier to search for a file containing the string “@name Waze Aerial Shifter” that appears in a similar location.

Once you’ve found the script, the change is relatively simple using a text editor such as Notepad. There are 2 instances of the string “OpenLayers.Layer.Bing_43” - change them both to “OpenLayers.Layer.Google_47”. Save the script & refresh your browser.

Hey, I’ve learnt some new tricks! :lol:

Please find v1.3 in my original post.

Things change rapidly: v1.3.1 updated to new WME beta path