View Single Post
Old 12-31-2012, 10:34 PM   PM User | #9
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
Okay, thank you Old Pedant.

As I 'm still learning, I do not yet know exactly how to implement this...

I gather I have to do something here;
Code:
			$(".map-control a").click(function() {//control panel
				var viewport = $("#viewport2");
				//this.className is same as method to be called
				if (this.className == "zoom" || this.className == "back") {
					viewport.mapbox(this.className, 2);//step twice
				} else {
					viewport.mapbox(this.className);
				}
				return false;
			});
And again elsewhere for the mouse-wheel?

Sorry for my lack of knowledge and I am so grateful for your help!
MrTIMarshall is offline   Reply With Quote