by pa7rhm@amsat.org ( UI-View is written by Roger Barker G4IDE )
This UI-View32 map server is based on the principle of MapTool; getting UIView map images from the internet
The map server facility is a standard technology of UIView32.
Based on user input (Pan, Zoom, enlarge) or UIView32 actions like the tracking of objects a request is send from UIView32 to the map server which is then responding by providing UIView32 with a best fitting map for the required latitude and longitude and scale.
This map server can also store maps it retrieved from internet on your disk drive so your collection of maps grows while you have the map server running.
UI-View32 map servers are ActiveX DLLs, and must be registered. They can be installed anywhere, and it is strongly recommended that they are not installed in the UI-View32 program folder.
UI-View32 map servers provide a map image for UI-View32. UI-View32 calls the server, passing it a PictureBox, and some information about the desired latitude and longitude of the map. The server draws the map in the PictureBox, and returns information about the actual latitude and longitude of the map.
The map returned by the server does not have to correspond exactly to what UI-View32 requests.
A map server appears in the UI-View32 'Load A Map' list, and is loaded exactly like a normal map. The INF file name for a map server is the server's name preceded by "!!".
Disclaimer, important restrictions: This program may not be used for commercial purposes. The author can not be held responsible for any damage as a result from the programs output
Using PA7RHMsvr map server |
top |
If Alternative Mouse Actions on the Options menu is NOT checked
If Alternative Mouse Actions on the Options menu IS checked
UI-View32 allows the user to create Favourite Views of a server map. The server does not have to do any special processing when a favourite view is selected, it is all done in UI-View32.
To get to the Favourite Views:
The Control Panel is used for:
To see the messages click on the status bar or resize the Control panel window.
Menu options |
top |
The ControlPanel menu
|
Menu |
Option |
Sub-Option |
Purpose |
|---|---|---|---|
| File | Close Control Panel | Close the Control Panel window | |
|
Logging |
|
Save Copies |
|
|
|
Show no messages |
|
Do not log messages |
|
|
Show only error messages |
|
Show only error messages |
|
|
Show all messages |
|
Show all messages |
| Maps | Do not save a copy of the map | No copies will be made of maps retrieved by the server | |
| Save map copies in 8.3 filename format | When selected a copy of the maps retrieved by the server will be saved in the UIView32 Extra Map Path folder. The filename is in the 8.3 filename format. (<maidenhead-locator>.gif) | ||
| Save map copies in long filename format | When selected a copy of the maps retrieved by the server will be saved in the UIView32 Extra Map Path folder. The filename is in the long filename format (<maidenhead-locator>_<range in kilometers>.gif) | ||
|
Help |
Help (F1) |
|
This will show the online help information. |
|
|
About |
|
This will show the About screen |
The UIView32 Map menu
| Menu | Option | Sub-Option | Purpose |
|---|---|---|---|
| Map | Load a map F2 | standard UIView32 | |
| Previous Ctrl+P | idem | ||
| Next Ctrl+N | idem | ||
| Refresh Maplist | idem | ||
| Control Panel | Show the control panel of the mapserver | ||
| MapServer Help | Load this document | ||
| Zoom All Ctrl+A | Ask the mapserver to load a map of the entire globe. | ||
| About the MapServer | Show the About window of the mapserver | ||
| Use OpenStreetMap | Select the OpenStreetMap map source | ||
| Use Google Maps | Select the Google Maps map source | ||
| Use Google Maps satellite | Select the Google Maps map source, with satellite imagery | ||
| Use Google Maps Hybrid | Select the Google Maps map source, with combined satellite imagery and road data | ||
| Load a Favourite View | a list of your favourite views | Retrieve a map based on the users shortname | |
| Add to Favourite Views | Store map information of the current map and give it a shortname for later retrieval (Load a Favourite View) | ||
| Delete a Favourite View | Delete the information of a Favourite View | ||
| Make a Button | standard UIView32 |
Installing the map server |
top |
| Foldename | Filename | meaning/remark |
| mapserver folder (example :C:\Program Files\PA7RHM\Map server) |
PA7RHMsvr.dll | This is the map server ActiveX DLL |
| idem | PA7RHMsvr.html | this is the online helpfile |
| idem | PA7RHMsvr.ini | this is a file that holds certain setting of the map server |
| idem | PA7RHMsvr.fav | this is the file is created at runtime, it holds the favourite maps. See menu Maps, Favourite views |
| idem | InitPA7RHMSvr.exe | this creates the !!PA7RHMsvr.inf file in the UIView32 MAPS folder during installation. Whenever the !!PA7RHMsvr.inf file is missing you can re-create it by running this program |
| UIView32 MAPS folder | !!PA7RHMsvr.inf | copied here by the installation program |
| UIView32 Extra Maps folder | <maidenhead>.gif | this is the file is created at runtime, it is a copy of the image file created by the map server in 8.3 file format |
| idem | <maidenhead>.inf | this is the file is created at runtime, it is the .inf file to image file in 8.3 file format |
| idem | <maidenhead>_<range>.gif | this is the file is created at runtime, it is a copy of the image file created by the map server in long file format |
| idem | <maidenhead>_<range>.inf | this is the file is created at runtime, it is the .inf file to image file in long file format |
| Windows-TEMP folder (%TEMP%) | PA7RHMsvr.log | this is the file is created at runtime, it is a logfile that holds all operations and status codes of the map server. You may delete this file if you like. In case of problems this is the file that may hold the answer. |
Error messages |
top |
If loading the PA7RHMsvr map server results in an error then you probably did not register it correctly, see the Installing section
If the PA7RHMsvr map server is loaded ok, but is not working properly a white map with a red diagonal cross is displayed. Here are some thing's you could do to see what is causing the error:
Settings (.INI file) |
top |
Most of the values and options you enter in the MapServer screen are saved in the PA7RHMsvr.ini file.
When you close down the program these values are saved.
When you start PA7RHMsvr map server again , these values are restored from the PA7RHMsvr.ini file.
The followings items are stored in the PA7RHMsvr.ini file:
| Item | Meaning/purpose | Default value |
|
Section [SETUP] |
||
| LEFT | Left position of the top left corner of the MapServer window | If value of LEFT is outside screen area LEFT will be calculated so that the window is centered on the screen. |
| TOP | Top position of the top left corner of the MapServer window | If value of HELP TOP is outside screen area HELP TOP will be calculated so that the window is centered on the screen. |
| MINIMIZED | True if the MapServer window is minimized | FALSE |
| LOGGING | The setting of the logging of messages. | 2 (log all messages) |
| SAVE_COPIES | The setting of the save map copies option, if this value is greater then 0 maps are saved in the UIView32 Extra Map Path | 0 (No copies) |
!!! If you are not sure what you are doing, DO NOT edit the PA7RHMsvr.ini file !!!
Release Notes |
top |
Thank you Bart PA3CSX,
Ben PD0B, Finn OZ5Z, Michael VE3LKI and Roger G4IDE for testing this program and
providing useful feedback.
Version 1.0.0 release date 14-oct-2003
Bugs reported
New features
Version 1.0.1 release date 18-oct-2003
Bugs reported
Symptoms:
- your panning controls (the arrows at the border of the map) are not shown (this happens when you shrink the UIView32 window)
- the map image from internet does not fill the available space in the UIView map area (this happens when you enlarge the UIView32 window)
Root cause: the map server does not adjust for the new width and height of the UIView map window.
Workaround:
Whenever you resize the UIView32 window: unload the map server by selecting a 'normal' map, then select the map server again (by clicking on the blue left arrow on the toolbar).Resolution: This bug has not been fixed.
New features
Version 1.0.2 release date 28-oct-2003
Bugs reported
- your panning controls (the arrows at the border of the map) are not shown (this happens when you shrink the UIView32 window)
- the map image from internet does not fill the available space in the UIView map area (this happens when you enlarge the UIView32 window)
Root cause: the map server does not adjust for the new width and height of the UIView map window.
Workaround:
Whenever you resize the UIView32 window: unload the map server by selecting a 'normal' map, then select the map server again (by clicking on the blue left arrow on the toolbar).Resolution: This problem has now been fixed.
"If you hit Ctrl-F5 or Ctrl-F4, or use the top menu for these options, which
are show map symbols, or enable exclusions, the Map server zooms the map in
slightly. This happens each time these functions are executed. It just
keeps zooming."
Root cause: the scale was not correctly calculated
Resolution: This problem has now been fixed
New features
Version 1.0.3 release date 14-nov-2003
Bugs reported
Root cause: the scale was not correctly calculated
Resolution: This problem has now been fixed
New features
Version 1.0.5 release date 11-apr-2004
Bugs reported
New features
Version 1.0.6 release date 31-mar-2006
Bugs reported
New features
Version 1.0.7 release date 2-jan-2007
Bugs reported
New features
Version 1.0.11 release date 17-may-2010
Bugs reported
New features
Version 1.0.14 release date 7-jan-2012
A big thanks to Keith G4MSF, Jeff G4WAX, Gary W2CEA and Joe KA1MZY for testing the mapserver and giving usefull feedback
Bugs reported
New features / changes
Known errors: