Home arrow JavaScript arrow Adding Pan Controls to Yahoo! Maps

Adding Pan Controls to Yahoo! Maps

Welcome to the third chapter of the series “Working with Yahoo! Maps.” If you’re an enthusiastic web developer who wants to incorporate these powerful interactive maps into your own web site, then in this article series, you’ll find a step-by-step guide on how to implement their features, including numerous hands-on examples.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
April 15, 2008
  1. · Adding Pan Controls to Yahoo! Maps
  2. · Review: including short and long zoom control into an existing Yahoo! Map
  3. · Incorporating a useful pan control into a Yahoo! Map
  4. · Displaying a Yahoo! Map with zoom and pan controls

print this article

Adding Pan Controls to Yahoo! Maps
(Page 1 of 4 )

Very often, the demands of modern web development require the utilization of third-party JavaScript frameworks to build full-blown Ajax-based applications without having to get your hands dirty writing complex and time-consuming client-side scripts. One good example of an Ajax framework that you’ll probably find quite useful is the popular Yahoo! Maps. Thus, if you wish to learn how to put it to work for you in a short amount of time, then you’ve come to the right place.

Having already introduced the main subject of this series, I’d like to spend a few moments refreshing the topics that were discussed in the last article. It will surely help you understand how the contents of that particular article can be linked with the themes that I plan to explore in this one.

As you’ll possibly recall, in the preceding article of the series, I showed you how to expand the functionality of an existing Yahoo! Map by adding a pair of zoom controls to it via the “addLongZoom()” and “addShortZoom()” methods, which belong to the “YMap” that you learned in earlier tutorials.

Indeed, incorporating these handy zoom controls make these interactive maps even more usable and efficient, since they’re a fundamental feature of the overall Yahoo! Map framework. Hence, they can’t be omitted when building the maps in question.

However, the aforementioned Yahoo! Map framework comes equipped with many other features that can be really helpful when constructing different types of maps. In the previous article, you learned how to provide a selected map with the capacity for zooming in and out over selected geographical locations using both short and long zoom controls. The next feature that should be added to those maps is undoubtedly the ability to scroll over any targeted location using a typical set of “up/down/left/right" buttons.

What I’m talking about here is incorporating a pan mechanism into the maps. Of course, the good news is that any Yahoo! Map supports the inclusion of pan controls. So in the next few lines, I’m going to show you how to add these controls to an existing Yahoo! Map with minor hassles.

Are you ready to see how to incorporate pan capabilities to a selected map? Great, let’s begin now!

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials