Virtual Earth: Restrict Map to Specified Viewable Area(pietschsoft.com)
submitted by
crpietschmann(11.3k) 3 years, 9 months ago
This example demonstrates the ability to restrict the viewable area (and impose map boundaries) of a Virtual Earth map to be within a specified distance from the maps original center point (at time of initial load), and restrict to a maximum zoom level. Why might you want to do this? There are times when you may want to restrict your users from possibly getting "lost" when viewing your data on a map. Also, you may want to restrict the user from panning around the globe in an attempt to reduce the number of Virtual Earth Map Transactions that you'll end up paying for. Whatever the reasoning is; I've actually had this functionality requested a few times by clients, so I thought I'd write up a simple example.
|category: AJAX
|Views: 37
tags:
JavaScript Mapping AJAX VirtualEarth another
Everyones tags:
Your Tags: