JavaScript
  Home arrow JavaScript arrow Adding Pan Controls to Yahoo! Maps
IBM Rational Software Development Conference
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Adding Pan Controls to Yahoo! Maps
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-04-15

    Table of Contents:
  • Adding Pan Controls to Yahoo! Maps
  • Review: including short and long zoom control into an existing Yahoo! Map
  • Incorporating a useful pan control into a Yahoo! Map
  • Displaying a Yahoo! Map with zoom and pan controls

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

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

    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.

    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!

    More JavaScript Articles
    More By Alejandro Gervasio


       · Yahoo! Maps support the inclusion of panoramic controls, which can be used to...
     

    JAVASCRIPT ARTICLES

    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...
    - Bulleted Menu of Links
    - Creating Click Loggers and Basic Markers wit...
    - Adding Pan Controls to Yahoo! Maps
    - Adding Zoom Controls to Yahoo! Maps
    - Working with Yahoo! Maps
    - Building Image Zooming Controls with the DOM...
    - Working with Multiple Graphics for a Zoom Ap...
    - Improving an Image Zooming Application with ...
    - Zooming in on Images with JavaScript
    - JavaScript Date Objects: Universal Coordinat...
    - Javascript Objects: More Date Methods
    - JavaScript Objects: Dates
    - JavaScript Objects: Finishing Strings

    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway