MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to restrict map area in ActiveX?

This is a discussion on How to restrict map area in ActiveX? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm making an application for displaying locations and routes within one city and woul'd like to prevent the user from ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-06-2004
Junior Member
White Belt
 
Join Date: Jul 2004
Posts: 1
How to restrict map area in ActiveX?

I'm making an application for displaying locations and routes within one city and woul'd like to prevent the user from panning away or zooming out to far, while still being able to zoom in on parts of the city.

I know that it is possible to disable zoom and pan completely, I just want to restrict the area.

Thanks for any tips,
/Erik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-26-2004
Junior Member
White Belt
 
Join Date: Jul 2004
Posts: 8
I'm planning on doing something very similar. For the zoom functionality I've done this...

Code:
Dim MaxAltitude As Interger
Private Sub Form_Load()
    MaxAltitude = objMap.Altitude
End Sub

Private Sub mpc_AfterViewChange()
    If objMap.Altitude > MaxAltitude Then objMap.Altitude = MaxAltitude
End Sub
If you have a mousewheel and spin it too fast you can get outside or your MaxAltitude although as soon as the view changes again it will reset. I'm working on the panning at the moment, will post as soon as I have something.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to restrict user from changing pushpin information... Learner MapPoint 2006/2009 Discussion 3 03-24-2006 01:23 AM
Surface Area Dazzer MapPoint 2006/2009 Discussion 9 01-05-2006 04:13 AM
is an address within an area? Anonymous MapPoint 2006/2009 Discussion 4 02-23-2005 01:51 PM
How to get the 4 map area coordinates ? Anonymous MapPoint 2006/2009 Discussion 1 01-22-2004 01:44 PM
Avoided Area? Anonymous MapPoint 2006/2009 Discussion 1 09-25-2003 12:46 AM


All times are GMT -5. The time now is 05:33 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Short Break Ski Holidays
Just want to book a short break? Short break ski holidays become great value when you book at Holiday Hypermarket. See the range of deals on offer.

Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.

Holidays to Thailand
The best cultures and backgrounds make Thailand an interesting and memorable country to visit. Book great value holidays to Thailand online at dealchecker.co.uk.

Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!

Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.

Inclusive late deals
For inclusive late deals, check out your options at Travel.co.uk and have fun!

Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51