PC Review


Reply
Thread Tools Rate Thread

Create map in VB.NET

 
 
JasonL
Guest
Posts: n/a
 
      26th Aug 2003
How do I create a map in VB.net where user can "drag" it using their stylus
as the map size is big and how to create a zoom in , zoom out function for
it? I would like to do something similar to those map in
http://www.mapopolis.com/

Thanks in advance



 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      26th Aug 2003
Jason,
Using the classes available in System.Drawing & System.Drawing.Drawing2D,
this is relatively painless.

To support zooming use the Graphics.ScaleTransform method.

To support panning (drag) use the Graphics.TranslateTransform method.

I would set Graphics.PageUnit & Graphics.PageScale to some reasonable
defaults for my data. For example Millimeter, then store all the data scaled
to Millimeters. You can then simply draw this data in the units stored.
Setting the Graphics.ScaleTransform would give you zoom ability...

Charles Petzold's book "Programming Microsoft Windows with Microsoft Visual
Basic.NET" from MS press has a number of chapters that describe how to use
the various objects in System.Drawing & System.Drawing.Drawing2D namespace.

Hope this helps
Jay

"JasonL" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How do I create a map in VB.net where user can "drag" it using their

stylus
> as the map size is big and how to create a zoom in , zoom out function for
> it? I would like to do something similar to those map in
> http://www.mapopolis.com/
>
> Thanks in advance
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a macro to create excel line graph with coloured pointers anddata lables anuj datta Microsoft Excel Charting 1 30th Sep 2009 04:04 PM
how to create an auto reply rule/macro that wont create a new mess squalltheonly Microsoft Outlook Discussion 4 15th Nov 2008 04:03 PM
reset button, create excel, import table, send e-mail, create back-up matthew nance Microsoft Access 0 27th Jul 2004 06:52 PM
Read Bitmap and create Method to Create Image at runtime Mark Johnson Microsoft Dot NET Framework 1 28th Nov 2003 08:26 PM
Create user on win2k domain does not create mailbox on ex2k server Jeff Howard Microsoft Windows 2000 0 1st Oct 2003 12:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 AM.