Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Scaled Maps

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2009, 05:56 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,826
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Scaled Maps

Here is an application for displaying scaled maps.

The project began already in this thread http://www.basic4ppc.com/forum/chit-...html#post20687 , but ceasar and myself find that it's right place is here.

What can be done:
- Different maps can be loaded.
- The maps can be scaled, and the scaling saved (two points only yet).
- Drawings can be made onto the maps on 3 different layers:
- polylines with different colors, line widths
- circles with radius in meters, different colors, line widths, filled or empty
- texts with different colors, font sizes, font styles, with or without background color
- bitmaps, with or without background color, 4 bitmaps are predefined, these can be deleted and others loaded.
- Select any element of the drawing and modify, or delete it. To change the position of an element, click on it, move it and release, or change the coordinates.
- New points can be added to polylines.
- Save and load drawings. The saved data is just the geometry of the drawing elements, with a reference to the map. To load drawings, the program shows only those belonging to the map.
- Calculate the length of a polyline
- 2 maps of Cape Town are included, one with a km scaling and the other one with long, lat in degrees, sources Google Maps and Google Earth.

What can not be done yet:
- Scaling with 3 points
- Undo and redo

What is still missing:
- no GPS support

The help file is here.
www.basic4ppc.com/files/ScaledMapHelpE.zip
It contains the help file itself and the map I used to create this help file.

I would be pleased to have some feedback of what is missing, improvement suggestions and bug reports.

Best regards.

EDIT: 2009.11.21
Version 2.0 bug renoval and some minor changes.

EDIT: 2011.02.27
Version 3.0 with a beginning of GPS support not really tested.
Leave it as it is.
Attached Images
File Type: jpg ScaledMap.jpg (32.9 KB, 175 views)
Attached Files
File Type: zip ScaledMap3_0.zip (352.8 KB, 59 views)
__________________
Klaus
Switzerland

Last edited by klaus : 02-27-2011 at 09:47 PM.
Reply With Quote
  #2 (permalink)  
Old 01-09-2009, 08:34 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Hi Klaus

Thanks for your effort and input. To be honest with you, I did not get a chance to play with it yet. I am trying very hard to get the Surveying program that I had running on the Workabout (from Psion) to run on a Windows Mobile device. I am nearly finished, but there are still some hicups that I need to sort out. Every surveyor that is using the old program is breathing down my neck to test out the new program.

At the moment I am sitting here with 7 different surveying instruments that I need to interface and the approach is a bit different than in "OPL" or NSBasic.
(I wasted my time with NSBasic!)

This should take about another week, then I will work through your Mapping program and give you some feedback.

Klaus, once again I say thank you very much for your help.

Regards
Michael
Reply With Quote
  #3 (permalink)  
Old 01-10-2009, 08:32 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,826
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

Don't worry, I saw with your other posts that you were quite busy with other problems. I did interface measurement instruments and a computer with serial port years ago in VB, but don't remember all details.

There is now a help file in the first post.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #4 (permalink)  
Old 11-14-2009, 08:04 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

It's an amazing program, but there's a bug in it: If you zoom in to the maximun, scroll to the right-bottom corner, and then zoom out, there is a strech of the image. Then, when zooming in, an error ocurred in line 578 in module Map.bas.
Reply With Quote
  #5 (permalink)  
Old 11-21-2009, 07:13 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,826
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Ariel,
Thank you for the bug report.

A new version is updated in the first post with some minor changes.
The help has also been updated.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #6 (permalink)  
Old 12-03-2009, 03:01 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Klaus

it would be very cool to get the Scaling3points and GPS support in Version Scaled Map 2.0 to work. that would really be great, and a killer source, to learn from!

Best regards
William
Reply With Quote
  #7 (permalink)  
Old 12-03-2009, 07:10 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,826
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi William,

I don't plan it in a short time.
If there is any interest from other users I could consider it.
Probably not the GPS support because I am writing another GPS program.

But feel free to take it and add your own code.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #8 (permalink)  
Old 12-03-2009, 08:03 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I understand.

Best regards
William
Reply With Quote
  #9 (permalink)  
Old 12-23-2009, 12:18 AM
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default

Hi Klaus

I have been looking at your program scaled map with the idea of adding the gps part to it.

Did you ever work out the code for converting a lat/long coord set to your program's map-scale coordinate?

If I could convert a lat / long (or utm) coordinate set to your scaled map coordinate system I could add the gps functionality.

Sarah
Reply With Quote
  #10 (permalink)  
Old 12-23-2009, 12:24 AM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Sarah Ward

Thats sounds fantastic!

PS. i am able to set a pizel on the Map, and thats all yet. Ha, ha.

I am a bit slow with Variables and constants, and a few other.

Best regards

William

Last edited by wm.chatman : 12-23-2009 at 01:07 AM.
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Google Maps bish0p Questions (Windows Mobile) 2 11-25-2008 03:07 PM
Display maps klaus Share Your Creations 4 11-11-2008 06:05 PM
Google Maps trckashyap Questions (Windows Mobile) 0 10-31-2008 07:34 AM


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0