Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.

Map Scrolling Using DWR


The last sample in this chapter is a map scrolling sample using DWR. Browser-based, mouse-controlled scrolling maps have become popular since Google Maps was launched.

The principle idea, in the implementation of this sample, is to take a sufficiently large map and divide it to small squares of equal size. Then, based on the location, a certain number of the small squares are inserted into the visible map window, and when the user scrolls the map, by pressing the left mouse button, and dragging the mouse in the map window, new map squares are retrieved from the server (other implementations may also download map squares around the visible map window).

In this sample, we use a geological map of the Tempe-Mareotis region of Mars, provided by the U.S. Geological Survey Astrogeology Research Program (http://astrogeology.usgs.gov/). For a direct link to the map and additional information, refer to http://astrogeology.usgs.gov/Projects/MapBook/fulllisting.jsp?mapNumber...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
DWR Java AJAX Applications
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon