WXforum.net
June 19, 2013, 09:57:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6697  •  Posts: 181440  •  Topics: 18421
Please welcome ThePontificator, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: WU-radar-inc - Map Zoom jumping around  (Read 282 times)
0 Members and 1 Guest are viewing this topic.
W3DRM
Forecaster
*****
Offline Offline

Posts: 1355



WWW
« on: July 06, 2012, 03:00:56 PM »

I think I've seen a reference to this issue somewhere in this forum but couldn't find it after a search. Pardon me if this has been brought up previously...

When I bring up the Local Radar screen, the radar map comes up fine but when I switch to one of the other zoom levels, using either the +, -, or the individual zoom arrows, the resulting screen image jumps up or down in all of my test browsers, except for Google Chrome. I test with IE, Opera, Pale Moon, Mozilla and Google Chrome and am running the current version of all of these browsers.

This has been happening for quite a while now but I've never mentioned since I wasn't running the latest version of Ken's scripts until now. Now that I am at current code levels, I don't think this issue is version related.

Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3784


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #1 on: July 06, 2012, 03:11:33 PM »

Hi Don,

If by "jumping around" you mean how the page scrolls up when you click one of the links for magnified local radar, it's due to a 'feature' I'd added in quite a while ago.  The URL in the browser has a '#WUtop' appended to it, so the browser will scroll to where it finds the <a name="WUtop" id="WUtop"></a> link, which happens to be placed just before the top of the display of the map.  It was intended to keep the map visible (at the top of the browser) when folks clicked on different maps.

If you find it more annoying than helpful, a change of WU-radar-inc.php from
Code:
</script>
<a name="WUtop" id="WUtop"></a>
to
Code:
</script>
<!-- a name="WUtop" id="WUtop"></a -->
will stop the jumping around.

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
W3DRM
Forecaster
*****
Offline Offline

Posts: 1355



WWW
« Reply #2 on: July 06, 2012, 03:21:10 PM »

Hi Don,

If by "jumping around" you mean how the page scrolls up when you click one of the links for magnified local radar, it's due to a 'feature' I'd added in quite a while ago.  The URL in the browser has a '#WUtop' appended to it, so the browser will scroll to where it finds the <a name="WUtop" id="WUtop"></a> link, which happens to be placed just before the top of the display of the map.  It was intended to keep the map visible (at the top of the browser) when folks clicked on different maps.

If you find it more annoying than helpful, a change of WU-radar-inc.php from
Code:
</script>
<a name="WUtop" id="WUtop"></a>
to
Code:
</script>
<!-- a name="WUtop" id="WUtop"></a -->
will stop the jumping around.

Best regards,
Ken

Yes, that is exactly what I am seeing. It wouldn't be so bad if it remained at the same vertical position with each zoom level but it doesn't and moves up and down depending on which zoom level you select as well as being dependent on which browser one is using.

I'll try the change and see what happens.

Thanks for the quick reply (as always)...

Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
W3DRM
Forecaster
*****
Offline Offline

Posts: 1355



WWW
« Reply #3 on: July 06, 2012, 03:38:09 PM »

Made the change suggested - works exactly as I wanted it to. No more up and down on the screen and, I can still see the full radar image. Can't ask for anything more than that!

Thanks again,
Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.108 seconds with 19 queries.
anything